狀況
客戶工作表中 – 列印報表顯示不同的結果中角色量身訂做用戶端 (RTC) 比傳統的用戶端,義大利文版本的 Microsoft 動態航行點 2009年中。在傳統的用戶端中列印的報表會顯示正確的結果。不過,會列印在 RTC 報告不正確的。請依照下列程式碼變更一節,若要解決這個問題的步驟。下列產品中,就會發生這個問題︰
-
義大利文版本的 Microsoft 動態航行點 2009 R2
-
義大利文版本的 Microsoft 動態航行點 2009 SP1
解決方案
Hotfix 資訊
已經可以從 Microsoft 取得支援的 hotfix。不過,它只被用來修正本文所述的問題。它只適用於發生此特定問題的系統上。此 hotfix 可能會接受其他測試。因此,如果此問題不會嚴重影響,我們建議您等候下一步的 Microsoft 動態航行點 2009 service pack 或包含此 hotfix 的下一個 Microsoft 動態航行點版本。
注意 在特殊的情況下,通常會支援呼叫可能已被取消如果技術支援專業人員的 Microsoft 動態及相關的產品所產生的費用會決定某特定更新程式可以解決您的問題。收取支援費用會套用,如果有其他支援問題是,不能限定的特定更新程式。
安裝資訊
Microsoft 會提供程式設計範例僅供說明,而不做任何明示或默示的保證。這包括,但不限於適售性或適合某特定用途之默示擔保責任。本文假設您已相當熟悉使用的我們所示範的程式設計語言以及建立和偵錯程序所使用的工具。Microsoft 技術支援工程師可以協助解釋特定程序的功能。不過,它們不會修改這些範例以提供附加功能或建構程序來滿足您特定需求。
注意套用此 hotfix 之前,請確認所有的 Microsoft 動態航行點用戶端使用者會登出系統。這包括 Microsoft 動態航行點應用程式伺服器 (NAS) 服務。您應該是唯一的用戶端使用者已登入,當您實作此 hotfix。
若要實作此 hotfix,您必須有開發人員授權。
我們建議您在 Windows 登入] 視窗中的色彩,或資料庫登入] 視窗中的使用者帳戶被指派 「 進階 」 的角色識別碼。如果使用者帳戶不能指派為 「 超級 」 的角色識別碼,您必須確認使用者帳戶具有下列權限︰
-
您將會變更物件的 [修改] 權限。
-
執行權限的系統物件 ID 5210物件和系統物件 ID 9015
物件。
注意您沒有擁有資料存放區的權限,除非您需要執行資料修復。
程式碼變更
注意永遠測試程式碼修正在受控制的環境中才能套用到實際執行電腦的修正程式。
若要解決這個問題,請依照下列步驟執行:
-
變更客戶的工作表中的程式碼-列印報表 (12104),如下所示︰
現有的程式碼 1... ForeColor=65535;
SourceExpr=Text000;
DataSetFieldName=Text000 }
}
}
{ PROPERTIES
...取代程式碼 1
... ForeColor=65535;
SourceExpr=Text000;
DataSetFieldName=Text000 }
// Add the following lines.
{ 1130009;TextBox ;19650;1269 ;150 ;423 ;Name=TotalAmt_RTC;
Visible=No;
ForeColor=65535;
SourceExpr=TotalAmt_RTC;
DataSetFieldName=TotalAmt_RTC }
{ 1130023;TextBox ;19950;1269 ;150 ;423 ;Name=TotalIcreasesAmt_RTC;
Visible=No;
ForeColor=65535;
SourceExpr=TotalIcreasesAmt_RTC;
DataSetFieldName=TotalIcreasesAmt_RTC }
{ 1130024;TextBox ;20250;1269 ;150 ;423 ;Name=TotalDecreasesAmt_RTC;
Visible=No;
ForeColor=65535;
SourceExpr=TotalDecreasesAmt_RTC;
DataSetFieldName=TotalDecreasesAmt_RTC }
{ 1130025;TextBox ;20550;1269 ;150 ;423 ;Name=TotalAmountLCY_RTC;
Visible=No;
ForeColor=65535;
SourceExpr=TotalAmountLCY_RTC;
DataSetFieldName=TotalAmountLCY_RTC }
// End of the added lines.
}
}
{ PROPERTIES
...現有的程式碼 2
... // IT0002.begin
//CurrReport.CREATETOTALS("Amount (LCY)",IcreasesAmnt,DecreasesAmnt);
CurrReport.CREATETOTALS(AmountLCY,IcreasesAmnt,DecreasesAmnt);
// IT0002.end
END;
...取代程式碼 2
...// IT0002.begin
//CurrReport.CREATETOTALS("Amount (LCY)",IcreasesAmnt,DecreasesAmnt);
CurrReport.CREATETOTALS(AmountLCY,IcreasesAmnt,DecreasesAmnt);
// Add the following lines.
TotalAmt_RTC := 0;
TotalIcreasesAmt_RTC := 0;
TotalDecreasesAmt_RTC := 0;
TotalAmountLCY_RTC := 0;
// End of the added lines.
// IT0002.end
END;
...現有的程式碼 3
... IcreasesAmnt2 := IcreasesAmnt;
DecreasesAmnt2 := DecreasesAmnt;
AmountLCY2 := AmountLCY;
END;
// IT008.end
END;
...取代程式碼 3
...IcreasesAmnt2 := IcreasesAmnt;
DecreasesAmnt2 := DecreasesAmnt;
AmountLCY2 := AmountLCY;
// Add the following lines.
TotalAmt_RTC += Amnt2;
TotalIcreasesAmt_RTC += IcreasesAmnt2;
TotalDecreasesAmt_RTC += DecreasesAmnt2;
TotalAmountLCY_RTC += AmountLCY2;
// End of the added lines.
END;
// IT008.end
END;
... -
變更全域變數,在客戶的工作表中的程式碼-列印報表 (12104),如下所示︰
現有的程式碼 1...IcreasesAmnt2@1130006 : Decimal;
DecreasesAmnt2@1130016 : Decimal;
AmountLCY2@1130017 : Decimal;
BEGIN
{
...取代程式碼 1
... IcreasesAmnt2@1130006 : Decimal;
DecreasesAmnt2@1130016 : Decimal;
AmountLCY2@1130017 : Decimal;
// Add the following lines.
TotalAmt_RTC@1130033 : Decimal;
TotalIcreasesAmt_RTC@1130030 : Decimal;
TotalDecreasesAmt_RTC@1130029 : Decimal;
TotalAmountLCY_RTC@1130028 : Decimal;
// End of the added lines.
BEGIN
{
... -
變更客戶的工作表中的程式碼-列印報表 (12104),如下所示︰
現有的程式碼 1... <PaddingTop>2pt</PaddingTop>
<VerticalAlign>Middle</VerticalAlign>
</Style>
// Delete the following line.
<Value>=Sum(Fields!IcreasesAmnt.Value)</Value>
// End of the deleted line.
<ZIndex>20</ZIndex>
</Textbox>
</ReportItems>
...取代程式碼 1
... <PaddingTop>2pt</PaddingTop>
<VerticalAlign>Middle</VerticalAlign>
</Style>
// Add the following line.
<Value>=Last(Fields!TotalIcreasesAmt_RTC.Value)</Value>
// End of the added line.
<ZIndex>20</ZIndex>
</Textbox>
</ReportItems>
...現有的程式碼 2
...<PaddingTop>2pt</PaddingTop>
<VerticalAlign>Middle</VerticalAlign>
</Style>
// Delete the following line.
<Value>=Sum(Fields!DecreasesAmnt.Value)</Value>
// End of the deleted line.
<ZIndex>19</ZIndex>
</Textbox>
</ReportItems>
...取代程式碼 2
...<PaddingTop>2pt</PaddingTop>
<VerticalAlign>Middle</VerticalAlign>
</Style>
// Add the following line.
<Value>=Last(Fields!TotalDecreasesAmt_RTC.Value)</Value>
// End of the added line.
<ZIndex>19</ZIndex>
</Textbox>
</ReportItems>...現有的程式碼 3
...<PaddingTop>2pt</PaddingTop>
<VerticalAlign>Middle</VerticalAlign>
</Style>
// Delete the following line.
<Value>=Sum(Fields!AmountLCY.Value)</Value>
// End of the deleted line.
<ZIndex>18</ZIndex>
</Textbox>
</ReportItems>
...取代程式碼 3
...<PaddingTop>2pt</PaddingTop>
<VerticalAlign>Middle</VerticalAlign>
</Style>
// Add the following line.
<Value>=Last(Fields!TotalAmountLCY_RTC.Value)</Value>
// End of the added line.
<ZIndex>18</ZIndex>
</Textbox>
</ReportItems>
...現有的程式碼 4
... <PaddingTop>2pt</PaddingTop>
<VerticalAlign>Middle</VerticalAlign>
</Style>
// Delete the following line.
<Value>=Sum(Fields!AmountLCY.Value) + Last(Fields!StartOnHand.Value)</Value>
// End of the deleted line.
<ZIndex>24</ZIndex>
</Textbox>
</ReportItems>
...取代程式碼 4
... <PaddingTop>2pt</PaddingTop>
<VerticalAlign>Middle</VerticalAlign>
</Style>
// Add the following line.
<Value>=Last(Fields!TotalAmountLCY_RTC.Value) + Last(Fields!StartOnHand.Value)</Value>
// End of the added line.
<ZIndex>24</ZIndex>
</Textbox>
</ReportItems>
...現有的程式碼 5
... <Field Name="Text000">
<DataField>Text000</DataField>
</Field>
<Field Name="IcreasesAmntCaption">
<DataField>IcreasesAmntCaption</DataField>
</Field>
...取代程式碼 5
...<Field Name="Text000">
<DataField>Text000</DataField>
</Field>
// Add the following lines.
<Field Name="TotalAmt_RTC">
<DataField>TotalAmt_RTC</DataField>
</Field>
<Field Name="TotalAmt_RTCFormat">
<DataField>TotalAmt_RTCFormat</DataField>
</Field>
<Field Name="TotalIcreasesAmt_RTC">
<DataField>TotalIcreasesAmt_RTC</DataField>
</Field>
<Field Name="TotalIcreasesAmt_RTCFormat">
<DataField>TotalIcreasesAmt_RTCFormat</DataField>
</Field>
<Field Name="TotalDecreasesAmt_RTC">
<DataField>TotalDecreasesAmt_RTC</DataField>
</Field>
<Field Name="TotalDecreasesAmt_RTCFormat">
<DataField>TotalDecreasesAmt_RTCFormat</DataField>
</Field>
<Field Name="TotalAmountLCY_RTC">
<DataField>TotalAmountLCY_RTC</DataField>
</Field>
<Field Name="TotalAmountLCY_RTCFormat">
<DataField>TotalAmountLCY_RTCFormat</DataField>
</Field>
// End of the added lines.
<Field Name="IcreasesAmntCaption">
<DataField>IcreasesAmntCaption</DataField>
</Field>
...
先決條件
您必須具備套用此 hotfix 之後安裝下列產品的其中一個︰
-
義大利文版本的 Microsoft 動態航行點 2009 R2
-
義大利文版本的 Microsoft 動態航行點 2009 SP1
移除資訊
您無法移除此 hotfix。
狀態
Microsoft 已確認這是<套用>一節所列出的 Microsoft 產品的問題。
注意這是直接從 Microsoft 支援組織內建立的「快速發行」文件。本文件所包含的現狀資訊是針對新興問題的回應。為縮短使其可用的時程,資料可能會包含印刷錯誤,且可能會隨時進行修改而不另行通知。如其他考量,請參閱 「使用規定」。