Installation information
Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements.Note Before you install this hotfix, verify that all Microsoft Navision client users are logged off the system. This includes Microsoft Navision Application Services (NAS) client users. You should be the only client user who is logged on when you implement this hotfix.To implement this hotfix, you must have a developer license.
We recommend that the user account in the Windows Logins window or in the Database Logins window be assigned the "SUPER" role ID. If the user account cannot be assigned the "SUPER" role ID, you must verify that the user account has the following permissions: - The Modify permission for the object that you will be changing.
- The Execute permission for the System Object ID 5210 object and for the System Object ID 9015 object.
Note You do not have to have rights to the data stores unless you have to perform data repair.
Code changes
Note Always test code fixes in a controlled environment before you apply the fixes to your production computers. To resolve this problem, change the code in the
SkipReversedUnapplied function in the Statement report (116) as follows:
Existing code 1...
<Report xmlns="http://schemas.microsoft.com/sqlserver/reporting/2005/01/reportdefinition" xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner">
<Body>
<Height>6.24199cm</Height>
<ReportItems>
<List Name="list1">
<Grouping Name="list1_Details_Group">
<GroupExpressions>
<GroupExpression>=Fields!Customer_No_.Value</GroupExpression>
</GroupExpressions>
<PageBreakAtEnd>true</PageBreakAtEnd>
...
Replacement code 1...
<Report xmlns="http://schemas.microsoft.com/sqlserver/reporting/2005/01/reportdefinition" xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner">
<Body>
<Height>6.24199cm</Height>
<ReportItems>
<List Name="list1">
// Add the following line.
<DataSetName>DataSet_Result</DataSetName>
<Grouping Name="list1_Details_Group">
<GroupExpressions>
<GroupExpression>=Fields!Customer_No_.Value</GroupExpression>
</GroupExpressions>
<PageBreakAtEnd>true</PageBreakAtEnd>
...
Existing code 2...
<Table Name="Table1">
<DataSetName>DataSet_Result</DataSetName>
<Details>
<TableRows>
<TableRow>
// Delete the following line.
<Height>0.423cm</Height>
<TableCells>
<TableCell>
<ReportItems>
<Textbox Name="textbox81">
<CanGrow>true</CanGrow>
...
Replacement code 2...
<Table Name="Table1">
<DataSetName>DataSet_Result</DataSetName>
<Details>
<TableRows>
<TableRow>
// Add the following line.
<Height>0.44444cm</Height>
<TableCells>
<TableCell>
<ReportItems>
<Textbox Name="textbox81">
<CanGrow>true</CanGrow>
...
Existing code 3...
</TableRow>
</TableRows>
</Details>
<Filters>
<Filter>
// Delete the following line.
<FilterExpression>=Fields!EntriesExists.Value OR Fields!StartBalance.Value>0</FilterExpression>
<FilterValues>
<FilterValue>=TRUE</FilterValue>
</FilterValues>
<Operator>Equal</Operator>
</Filter>
...
Replacement code 3...
</TableRow>
</TableRows>
</Details>
<Filters>
<Filter>
// Add the following line.
<FilterExpression>=Fields!EntriesExists.Value OR Abs(Fields!StartBalance.Value)>0</FilterExpression>
<FilterValues>
<FilterValue>=TRUE</FilterValue>
</FilterValues>
<Operator>Equal</Operator>
</Filter>
...
Existing code 4...
</Filters>
<Header>
<RepeatOnNewPage>true</RepeatOnNewPage>
<TableRows>
<TableRow>
// Delete the following line.
<Height>0.423cm</Height>
<TableCells>
<TableCell>
<ReportItems>
<Textbox Name="textbox15">
<Style>
...
Replacement code 4...
</Filters>
<Header>
<RepeatOnNewPage>true</RepeatOnNewPage>
<TableRows>
<TableRow>
// Add the following line.
<Height>0.44444cm</Height>
<TableCells>
<TableCell>
<ReportItems>
<Textbox Name="textbox15">
<Style>
...
Existing code 5...
</TableCell>
</TableCells>
</TableRow>
</TableRows>
</Header>
// Delete the following line.
<Height>2.115cm</Height>
<TableColumns>
<TableColumn>
<Width>2.21855cm</Width>
</TableColumn>
<TableColumn>
...
Replacement code 5...
</TableCell>
</TableCells>
</TableRow>
</TableRows>
</Header>
// Add the following line.
<Height>2.20076cm</Height>
<TableColumns>
<TableColumn>
<Width>2.21855cm</Width>
</TableColumn>
<TableColumn>
...
Existing code 6...
<Width>2.21855cm</Width>
</TableColumn>
</TableColumns>
<TableGroups>
<TableGroup>
// Delete the following lines.
<Footer>
<TableRows>
<TableRow>
<Height>0.423cm</Height>
// End of the lines.
<TableCells>
<TableCell>
<ReportItems>
<Textbox Name="textbox18">
<Style>
...
Replacement code 6...
<Width>2.21855cm</Width>
</TableColumn>
</TableColumns>
<TableGroups>
<TableGroup>
// Add the following lines.
<Grouping Name="Table1_CurrencyGroup1">
<GroupExpressions>
<GroupExpression>=Fields!CurrencyCode3.Value</GroupExpression>
</GroupExpressions>
</Grouping>
</TableGroup>
<TableGroup>
<Footer>
<TableRows>
<TableRow>
<Height>0.44444cm</Height>
// End of the lines.
<TableCells>
<TableCell>
<ReportItems>
<Textbox Name="textbox18">
<Style>
...
Existing code 7...
</Textbox>
</ReportItems>
</TableCell>
<TableCell>
<ReportItems>
// Delete the following line.
<Textbox Name="textbox28">
<Style>
<FontSize>7pt</FontSize>
<FontWeight>700</FontWeight>
<PaddingBottom>2pt</PaddingBottom>
<PaddingLeft>2pt</PaddingLeft>
...
Replacement code 7...
</Textbox>
</ReportItems>
</TableCell>
<TableCell>
<ReportItems>
// Add the following lines.
<Textbox Name="textbox30">
<CanGrow>true</CanGrow>
// End of the lines.
<Style>
<FontSize>7pt</FontSize>
<FontWeight>700</FontWeight>
<PaddingBottom>2pt</PaddingBottom>
<PaddingLeft>2pt</PaddingLeft>
...
Existing code 8...
<FontWeight>700</FontWeight>
<PaddingBottom>2pt</PaddingBottom>
<PaddingLeft>2pt</PaddingLeft>
<PaddingRight>2pt</PaddingRight>
<PaddingTop>2pt</PaddingTop>
// Delete the following lines.
<TextAlign>Right</TextAlign>
<VerticalAlign>Middle</VerticalAlign>
</Style>
<Value />
<ZIndex>10</ZIndex>
<rd:DefaultName>textbox28</rd:DefaultName>
// End of the lines.
</Textbox>
</ReportItems>
</TableCell>
<TableCell>
<ReportItems>
...
Replacement code 8...
<FontWeight>700</FontWeight>
<PaddingBottom>2pt</PaddingBottom>
<PaddingLeft>2pt</PaddingLeft>
<PaddingRight>2pt</PaddingRight>
<PaddingTop>2pt</PaddingTop>
// Add the following lines.
</Style>
<Value />
<rd:DefaultName>textbox30</rd:DefaultName>
// End of the lines.
</Textbox>
</ReportItems>
</TableCell>
<TableCell>
<ReportItems>
...
Existing code 9...
<PaddingRight>2pt</PaddingRight>
<PaddingTop>2pt</PaddingTop>
<TextAlign>Right</TextAlign>
<VerticalAlign>Middle</VerticalAlign>
</Style>
// Delete the following line.
<Value>="Total " &Fields!DtlEntries_CurrencyCode3.Value</Value>
<ZIndex>9</ZIndex>
<rd:DefaultName>textbox29</rd:DefaultName>
</Textbox>
</ReportItems>
</TableCell>
...
Replacement code 9...
<PaddingRight>2pt</PaddingRight>
<PaddingTop>2pt</PaddingTop>
<TextAlign>Right</TextAlign>
<VerticalAlign>Middle</VerticalAlign>
</Style>
// Add the following line.
<Value>="Total " &Fields!CurrencyCode3.Value</Value>
<ZIndex>9</ZIndex>
<rd:DefaultName>textbox29</rd:DefaultName>
</Textbox>
</ReportItems>
</TableCell>
...
Existing code 10...
</Textbox>
</ReportItems>
</TableCell>
<TableCell>
<ReportItems>
// Delete the following lines.
<Textbox Name="textbox30">
<CanGrow>true</CanGrow>
<Style>
<FontSize>7pt</FontSize>
<FontWeight>700</FontWeight>
<Format>=Fields!CustBalanceFormat.Value</Format>
<PaddingBottom>2pt</PaddingBottom>
<PaddingLeft>2pt</PaddingLeft>
<PaddingRight>2pt</PaddingRight>
<PaddingTop>2pt</PaddingTop>
<TextAlign>Right</TextAlign>
<VerticalAlign>Middle</VerticalAlign>
</Style>
<Value>=Last(Fields!CustBalance.Value)</Value>
<ZIndex>8</ZIndex>
<rd:DefaultName>textbox30</rd:DefaultName>
// End of the lines.
</Textbox>
</ReportItems>
</TableCell>
</TableCells>
</TableRow>
Replacement code 10...
</Textbox>
</ReportItems>
</TableCell>
<TableCell>
<ReportItems>
// Add the following lines.
<Textbox Name="textbox43">
<CanGrow>true</CanGrow>
<Style>
<FontSize>7pt</FontSize>
<Format>=Switch(Fields!CustBalance.Value <> 0 ,Last(Fields!CustBalanceFormat.Value),Fields!StartBalance.Value <> 0,Fields!StartBalanceFormat.Value)</Format>
<PaddingBottom>2pt</PaddingBottom>
<PaddingLeft>2pt</PaddingLeft>
<PaddingRight>2pt</PaddingRight>
<PaddingTop>2pt</PaddingTop>
</Style>
<Value>=Switch(Fields!CustBalance.Value <> 0 ,Last(Fields!CustBalance.Value),Fields!StartBalance.Value <> 0,Fields!StartBalance.Value)</Value>
<rd:DefaultName>textbox43</rd:DefaultName>
// End of the lines.
</Textbox>
</ReportItems>
</TableCell>
</TableCells>
</TableRow>
...
Existing code 11...
</TableCells>
</TableRow>
</TableRows>
</Footer>
<Grouping Name="Table1_CurrencyGroup">
// Delete the following lines.
<Filters>
<Filter>
<FilterExpression>=Fields!DtldCustLedgEntries__Document_No__.Value</FilterExpression>
<FilterValues>
<FilterValue />
</FilterValues>
<Operator>NotEqual</Operator>
</Filter>
</Filters>
// End of the lines.
<GroupExpressions>
<GroupExpression>=Fields!DtldCustLedgEntries__Currency_Code_.Value</GroupExpression>
</GroupExpressions>
</Grouping>
<Header>
...
Replacement code 11...
</TableCells>
</TableRow>
</TableRows>
</Footer>
<Grouping Name="Table1_CurrencyGroup">
<GroupExpressions>
<GroupExpression>=Fields!DtldCustLedgEntries__Currency_Code_.Value</GroupExpression>
</GroupExpressions>
</Grouping>
<Header>
...
Existing code 12...
</ReportItems>
</TableCell>
</TableCells>
</TableRow>
<TableRow>
// Delete the following line.
<Height>0.423cm</Height>
<TableCells>
<TableCell>
<ReportItems>
<Textbox Name="textbox7">
<Style>
...
Replacement code 12...
</ReportItems>
</TableCell>
</TableCells>
</TableRow>
<TableRow>
// Add the following line.
<Height>0.44444cm</Height>
<TableCells>
<TableCell>
<ReportItems>
<Textbox Name="textbox7">
<Style>
...
Existing code 13...
</Textbox>
</ReportItems>
</TableCell>
<TableCell>
<ReportItems>
// Delete the following lines.
<Textbox Name="textbox43">
<Style>
<FontSize>7pt</FontSize>
// End of the lines.
<PaddingBottom>2pt</PaddingBottom>
<PaddingLeft>2pt</PaddingLeft>
<PaddingRight>2pt</PaddingRight>
<PaddingTop>2pt</PaddingTop>
</Style>
...
Replacement code 13...
</Textbox>
</ReportItems>
</TableCell>
<TableCell>
<ReportItems>
// Add the following lines.
<Textbox Name="textbox47">
<CanGrow>true</CanGrow>
<Style>
// End of the lines.
<PaddingBottom>2pt</PaddingBottom>
<PaddingLeft>2pt</PaddingLeft>
<PaddingRight>2pt</PaddingRight>
<PaddingTop>2pt</PaddingTop>
</Style>
...
Existing code 14...
<PaddingLeft>2pt</PaddingLeft>
<PaddingRight>2pt</PaddingRight>
<PaddingTop>2pt</PaddingTop>
</Style>
<Value />
// Delete the following lines.
<ZIndex>18</ZIndex>
<rd:DefaultName>textbox43</rd:DefaultName>
// End of the lines.
</Textbox>
</ReportItems>
</TableCell>
<TableCell>
<ReportItems>
...
Replacement code 14...
<PaddingLeft>2pt</PaddingLeft>
<PaddingRight>2pt</PaddingRight>
<PaddingTop>2pt</PaddingTop>
</Style>
<Value />
// Add the following line.
<rd:DefaultName>textbox47</rd:DefaultName>
</Textbox>
</ReportItems>
</TableCell>
<TableCell>
<ReportItems>
...
Existing code 15...
</TableRow>
</TableRows>
</Header>
</TableGroup>
</TableGroups>
// Delete the following lines.
</Table>
</ReportItems>
<Top>0.31746cm</Top>
<Width>17.25142cm</Width>
// End of the lines.
<ZIndex>2</ZIndex>
</List>
<Table Name="table5">
<DataSetName>DataSet_Result</DataSetName>
<Header>
...
Replacement code 15...
</TableRow>
</TableRows>
</Header>
</TableGroup>
</TableGroups>
// Add the following lines.
<Width>6.79275in</Width>
</Table>
</ReportItems>
<Top>0.31746cm</Top>
// End of the lines.
<ZIndex>2</ZIndex>
</List>
<Table Name="table5">
<DataSetName>DataSet_Result</DataSetName>
<Header>
...
Existing code 16...
</Textbox>
</ReportItems>
</TableCell>
<TableCell>
<ReportItems>
// Delete the following lines.
<Textbox Name="textbox159">
<Style>
<FontSize>7pt</FontSize>
<FontWeight>700</FontWeight>
// End of the lines.
<PaddingBottom>2pt</PaddingBottom>
<PaddingLeft>2pt</PaddingLeft>
<PaddingRight>2pt</PaddingRight>
<PaddingTop>2pt</PaddingTop>
</Style>
Replacement code 16...
</Textbox>
</ReportItems>
</TableCell>
<TableCell>
<ReportItems>
// Add the following lines.
<Textbox Name="textbox48">
<CanGrow>true</CanGrow>
<Style>
// End of the lines.
<PaddingBottom>2pt</PaddingBottom>
<PaddingLeft>2pt</PaddingLeft>
<PaddingRight>2pt</PaddingRight>
<PaddingTop>2pt</PaddingTop>
</Style>
...
Existing code 17...
<PaddingLeft>2pt</PaddingLeft>
<PaddingRight>2pt</PaddingRight>
<PaddingTop>2pt</PaddingTop>
</Style>
<Value />
// Delete the following lines.
<ZIndex>24</ZIndex>
<rd:DefaultName>textbox159</rd:DefaultName>
// End of the lines.
</Textbox>
</ReportItems>
</TableCell>
</TableCells>
</TableRow>
...
Replacement code 17...
<PaddingLeft>2pt</PaddingLeft>
<PaddingRight>2pt</PaddingRight>
<PaddingTop>2pt</PaddingTop>
</Style>
<Value />
// Add the following line.
<rd:DefaultName>textbox48</rd:DefaultName>
</Textbox>
</ReportItems>
</TableCell>
</TableCells>
</TableRow>
...
Existing code 18...
</TableColumns>
<Top>4.12699cm</Top>
<Width>15.26167cm</Width>
</Table>
</ReportItems>
// Delete the following line.
<Width>18.04512cm</Width>
</List>
</ReportItems>
</Body>
<BottomMargin>2cm</BottomMargin>
<Code>Public Function BlankZero(ByVal Value As Decimal)
...
Replacement code 18...
</TableColumns>
<Top>4.12699cm</Top>
<Width>15.26167cm</Width>
</Table>
</ReportItems>
</List>
</ReportItems>
</Body>
<BottomMargin>2cm</BottomMargin>
<Code>Public Function BlankZero(ByVal Value As Decimal)
...
Existing code 19...
<FontSize>7pt</FontSize>
<VerticalAlign>Middle</VerticalAlign>
</Style>
<Top>3.807cm</Top>
<Value>=Code.GetData(7,3)</Value>
<ZIndex>25</ZIndex>
</Textbox>
<Textbox Name="CustAddr_6_11">
<Height>0.423cm</Height>
<Style>
...
Replacement code 19...
<FontSize>7pt</FontSize>
<VerticalAlign>Middle</VerticalAlign>
</Style>
<Top>3.807cm</Top>
<Value>=Code.GetData(7,3)</Value>
// Add the following line.
<Width>1.65375in</Width>
<ZIndex>25</ZIndex>
</Textbox>
<Textbox Name="CustAddr_6_11">
<Height>0.423cm</Height>
<Style>
...
Existing code 20...
<FontSize>7pt</FontSize>
<VerticalAlign>Middle</VerticalAlign>
</Style>
<Top>4.23cm</Top>
<Value>=Code.GetData(8,3)</Value>
<ZIndex>23</ZIndex>
</Textbox>
<Textbox Name="CompanyInfo__VAT_Registration_No__11">
<Height>0.423cm</Height>
<Left>14.05605cm</Left>
...
Replacement code 20...
<FontSize>7pt</FontSize>
<VerticalAlign>Middle</VerticalAlign>
</Style>
<Top>4.23cm</Top>
<Value>=Code.GetData(8,3)</Value>
// Add the following line.
<Width>1.65375in</Width>
<ZIndex>23</ZIndex>
</Textbox>
<Textbox Name="CompanyInfo__VAT_Registration_No__11">
<Height>0.423cm</Height>
<Left>14.05605cm</Left>
...
Existing code 21...
<FontSize>7pt</FontSize>
<VerticalAlign>Middle</VerticalAlign>
</Style>
<Top>4.653cm</Top>
<Value>=Code.GetData(9,3)</Value>
<ZIndex>22</ZIndex>
</Textbox>
<Textbox Name="CompanyInfo__Giro_No__11">
<Height>0.423cm</Height>
<Left>14.05605cm</Left>
...
Replacement code 21...
<FontSize>7pt</FontSize>
<VerticalAlign>Middle</VerticalAlign>
</Style>
<Top>4.653cm</Top>
<Value>=Code.GetData(9,3)</Value>
// Add the following line.
<Width>1.65375in</Width>
<ZIndex>22</ZIndex>
</Textbox>
<Textbox Name="CompanyInfo__Giro_No__11">
<Height>0.423cm</Height>
<Left>14.05605cm</Left>
...
Existing code 22...
<FontSize>7pt</FontSize>
<VerticalAlign>Middle</VerticalAlign>
</Style>
<Top>5.076cm</Top>
<Value>=Code.GetData(10,3)</Value>
<ZIndex>21</ZIndex>
</Textbox>
<Textbox Name="CompanyInfo__Bank_Name_11">
<Height>0.423cm</Height>
<Left>14.05605cm</Left>
...
Replacement code 22...
<FontSize>7pt</FontSize>
<VerticalAlign>Middle</VerticalAlign>
</Style>
<Top>5.076cm</Top>
<Value>=Code.GetData(10,3)</Value>
// Add the following line.
<Width>1.65375in</Width>
<ZIndex>21</ZIndex>
</Textbox>
<Textbox Name="CompanyInfo__Bank_Name_11">
<Height>0.423cm</Height>
<Left>14.05605cm</Left>
...
Existing code 23...
<FontSize>7pt</FontSize>
<VerticalAlign>Middle</VerticalAlign>
</Style>
<Top>5.499cm</Top>
<Value>=Code.GetData(11,3)</Value>
<ZIndex>20</ZIndex>
</Textbox>
<Textbox Name="CompanyInfo__Bank_Account_No__11">
<Height>0.423cm</Height>
<Left>14.05605cm</Left>
...
Replacement code 23...
<FontSize>7pt</FontSize>
<VerticalAlign>Middle</VerticalAlign>
</Style>
<Top>5.499cm</Top>
<Value>=Code.GetData(11,3)</Value>
// Add the following line.
<Width>1.65375in</Width>
<ZIndex>20</ZIndex>
</Textbox>
<Textbox Name="CompanyInfo__Bank_Account_No__11">
<Height>0.423cm</Height>
<Left>14.05605cm</Left>
...
Existing code 24...
<FontSize>7pt</FontSize>
<VerticalAlign>Middle</VerticalAlign>
</Style>
<Top>5.922cm</Top>
<Value>=Code.GetData(12,3)</Value>
<ZIndex>19</ZIndex>
</Textbox>
<Textbox Name="CustAddr_10_11">
<Height>0.423cm</Height>
<Left>2.31cm</Left>
...
Replacement code 24...
<FontSize>7pt</FontSize>
<VerticalAlign>Middle</VerticalAlign>
</Style>
<Top>5.922cm</Top>
<Value>=Code.GetData(12,3)</Value>
// Add the following line.
<Width>1.65375in</Width>
<ZIndex>19</ZIndex>
</Textbox>
<Textbox Name="CustAddr_10_11">
<Height>0.423cm</Height>
<Left>2.31cm</Left>
...
Existing code 25...
</ReportItems>
</PageHeader>
<PageHeight>29.7cm</PageHeight>
<PageWidth>21cm</PageWidth>
<TopMargin>2cm</TopMargin>
// Delete the following line.
<Width>18.25605cm</Width>
<rd:DrawGrid>true</rd:DrawGrid>
<rd:ReportID>0cf80e7c-8d6e-450a-8c70-f965a950f850</rd:ReportID>
<rd:SnapToGrid>true</rd:SnapToGrid>
</Report>
END_OF_RDLDatA
...
Replacement code 25...
</ReportItems>
</PageHeader>
<PageHeight>29.7cm</PageHeight>
<PageWidth>21cm</PageWidth>
<TopMargin>2cm</TopMargin>
// Add the following line.
<Width>19.46997cm</Width>
<rd:DrawGrid>true</rd:DrawGrid>
<rd:ReportID>0cf80e7c-8d6e-450a-8c70-f965a950f850</rd:ReportID>
<rd:SnapToGrid>true</rd:SnapToGrid>
</Report>
END_OF_RDLDatA
...
Prerequisites
You must have one of the following products installed to apply this hotfix:
- Microsoft Dynamics NAV 2009 R2
- Microsoft Dynamics NAV 2009 Service Pack 1 (SP1)
Removal information
You cannot remove this hotfix.