formatting within excelbuffer

sbilly
Member Posts: 231
Hi all,
Who knows how can I set the background color of a column when exporting a report to excel with excel buffer.
And how can I control the font size.
Thanks
Who knows how can I set the background color of a column when exporting a report to excel with excel buffer.
And how can I control the font size.
Thanks
0
Comments
-
You can do this by adding the following lines to the CreateSheet function in table 370 - Excel Buffer
IF "Font Size" <> 0 THEN XlWrkSht.Range(xlColID + xlRowID).Font.Size := "Font Size"; IF "Background Colour" <> 0 THEN XlWrkSht.Range(xlColID + xlRowID).Interior.ColorIndex := "Background Colour";
where "Font Size" and "Background Colour" are new fields in the Excel Buffer table.
Add the lines in the REPEAT UNTIL loop afterIF Underline THEN XlWrkSht.Range(xlColID + xlRowID).Borders.Item(XlEdgeBottom).LineStyle := XlContinuous;
Regards0 -
Thanks for your replay, but tell how can I exploit it in the report.
Thanks0 -
hi guys,
I m new to nav
can u tel me how i wil get xlSheet and XlWrkBk objects;
i knw only excel buffer object from that i hav used createbook();
please tel me all thing about this.0 -
They are automation Variables..
Check Excel Buffer Table - 3700 -
You have to find the places in the report that insets the data you want colored or changed size on and then update the code to populated the new fields in the Excel Buffer table.
Regards0 -
Hi mohana, can u brief what autamtion variable how to creat that and use it0
-
Did you check Table Excel Buffer..how it is created and used?
Search the forum please..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