EXCEL BUFFER - MULTIWORKSHEETS IN SINGLE WORK BOOK

bhareth
Member Posts: 55
Hi ,
I have a report with one data item .
After exporting to excel : I want the body section of the report to be exported onto one worksheet wereas the Header ,Group Footer and footer section on the other worksheet .
can anyone advice me how to proceed? :roll:
Thanks,
bhareth .
I have a report with one data item .
After exporting to excel : I want the body section of the report to be exported onto one worksheet wereas the Header ,Group Footer and footer section on the other worksheet .
can anyone advice me how to proceed? :roll:
Thanks,
bhareth .
0
Comments
-
you could add a new field "Worksheet" to excelbuffer table. Then you enter different values for body and the other sections. Then you just filter on this values and call CreateSheet for each sheet.
in code:ExcelBuf.Setrange(Worksheet,'Sheet1'); ExcelBuf.CreateSheet('Sheet1',...); ExcelBuf.Setrange(Worksheet,'Sheet2'); ExcelBuf.CreateSheet('Sheet2',...);
0 -
Thanks you very much dev .I have achieved the result.but the results in excel sheet has lot of empty rows due to shifting the data to another sheet.
is there is anyway to delete the empty rows while exporting the report to excel . =D>
Thanks,
bhareth0 -
ya dev you are right .i am using the count up of integer value "row" no (row no field in excel buffer ).
can you pls throw some points or some examples of how to use a row counter for each Sheet. ](*,)IF ExportToExcel THEN BEGIN TempExcelBuffer.SETRANGE(Worksheet,'sheet1'); TempExcelBuffer.CreateBook; TempExcelBuffer.CreateSheet('1','Description',COMPANYNAME,USERID); TempExcelBuffer.SETRANGE(Worksheet,'sheet2'); TempExcelBuffer.AddSheet(); TempExcelBuffer.CreateSheet('2','Description',COMPANYNAME,USERID); TempExcelBuffer.GiveUserControl; END;
Thanks,
bhareth0 -
well you just use 2 integervalues row1 / row2 and at the place you insert your ExcelBuffer Record you either use Row1 or Row2...
you said you have different sections (body, header, groupHeader) and you need to seperate the output of body and header/groupHeader, to do that count up row1 at body section and row2 at header/groupheader section. for further guidance we need your code from the sections (body,header,...) where you insert the records0 -
dev i am using 329 - vendor trail balance report .
were i am in need to bring( Header, Group Header,Group Footer,Footer) of the report in one sheet and Body in another worksheet .
can you provide me guidance of how to use integer values. ](*,)
Thanks,
Bhareth .0 -
Dev I got the result \:D/ \:D/ \:D/ \:D/
i use integervalues row1 / row2 and do a increment counting of row1 at header/groupheader section and row2 at body section and updated excel buffer table .
Output is perfect .Many thanks for your guidance . =D> =D> =D>
Thanks,
bhareth0 -
Is there another way to do that? Something like deleting the data and calling the excelbuffer makedata somewhere on sections???
Any ideas?:oops:
Regards
Hanen TALBI0 -
Global: currentSheet
Function: Addsheet(description:text30)
{
currentsheet := description;
currentrow := 0;
newrow;
}
modified function addcolumn to insert currentsheet in the new field worksheet with every insert.
And copied function createsheet to createmultisheet which I found here on Mibuso.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