Export to Excel Option in Report

Scott_Meja
Member Posts: 30
For report with Export to Excel option, I need to show one field i.e.,Cost field different from that of the print preview report. The condition is if the level=1 then the values should be displayed in the Cost field same as in the print preview of the report and if the level= 2, then in the excel file the cost should not show any values for that field, it should display only zeros, that i did it, in OnPresection of that respective header, like if level=1 then ExporttoExcel(rowno,FORMAT(cost)), this is working fine.
For the same Cost Field, i have to display total of cost field, that should be different from that of the Printpreview report because if level=1 then cost may have different values and level=2 then cost =0,but my report is showing cost value in excel file same as print preview of the report. what condition should i include? please help me. can any one advice how to do it?
For the same Cost Field, i have to display total of cost field, that should be different from that of the Printpreview report because if level=1 then cost may have different values and level=2 then cost =0,but my report is showing cost value in excel file same as print preview of the report. what condition should i include? please help me. can any one advice how to do it?
0
Comments
-
Scott Meja wrote:For report with Export to Excel option, I need to show one field i.e.,Cost field different from that of the print preview report. The condition is if the level=1 then the values should be displayed in the Cost field same as in the print preview of the report and if the level= 2, then in the excel file the cost should not show any values for that field, it should display only zeros, that i did it, in OnPresection of that respective header, like if level=1 then ExporttoExcel(rowno,FORMAT(cost)), this is working fine.
For the same Cost Field, i have to display total of cost field, that should be different from that of the Printpreview report because if level=1 then cost may have different values and level=2 then cost =0,but my report is showing cost value in excel file same as print preview of the report. what condition should i include? please help me. can any one advice how to do it?
Put the different number in a different column, then just add a standard Excel =SUM(A1:F15) type function at the end.David Singleton0 -
Hi David,
Thank you for your prompt reply. I didn't get you what u replied. Could u please explain me in detail. Is the SUM allowed in navision?0 -
Scott Meja wrote:Hi David,
Thank you for your prompt reply. I didn't get you what u replied. Could u please explain me in detail. Is the SUM allowed in navision?
ExcelBuffer.formula := strsubstno('sum(J%1:J%2)',StartRow,Endrow);David Singleton0 -
You can use 2 variables to assign value of Cost field based on the condition.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions