In Excel file, header should print only one for Excel file

Scott_Meja
Member Posts: 30
In one report i am exporting records to excel, but the header is printed for each and every record. As per client's requirements, the header should be printed only once in the excel file. I have set the properties of header as PrintOnEveryPage to no and i have written code in Presection of Header as
if boolean variable and (Currreport.pageno=1) then
the other part of coding.
For this line of code , i am still printing the labels of header in the first page in the excel file, but the header labels should be printed only once for the whole excel file. what else coding do i need to add.pls advice
if boolean variable and (Currreport.pageno=1) then
the other part of coding.
For this line of code , i am still printing the labels of header in the first page in the excel file, but the header labels should be printed only once for the whole excel file. what else coding do i need to add.pls advice
0
Comments
-
where are you writing the headers of excel file? Are you using excel buffer?
If you write excel header in Onaftergetrecord trigger, you'll write the header multiple times.
the layout you see in the preview does not matter at all with what you get in excel.
You can print a list of customers in nav and write your name 5000 times in excel, if you want0 -
hi..
for print the header in excel one time you have to write this code in header presectionif (exporttoexcel) AND (currreport.pageno = 1) then begin staement...... end;
Devendra Kr. Sharma
IBIZ Consulting Services,India0 -
Or in onpredatatitem or in onprereport...try to avoid coding under the sections, if possible.
Personally, i've never userd currreport.pageno instruction to determine if the header have to be printed or not.
try to find a point where you know that nav processes only one time. (bad english, sorry) :oops: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