Excel Buffer Questions

Savatage
Member Posts: 7,142
First off I was playing with Mark Brummels Excel Buffer Sample yesterday and it works great.
But I'm not too familiar with the excel buffer so I wanted to check it out to do some exporting of Sales Header info.
there is a line of code I added
EnterCell(Row, 2, "Ship-to Name", FALSE, FALSE, FALSE);
What exactly do each of the Falses do?
Also I have a Zip Code line
EnterCell(Row, 7, "Ship-to ZIP Code", FALSE, FALSE, FALSE);
But if the Zip code code starts with leading Zero's - the Zero don't get sent over - how do you force a "text format" to a field.
Thanks in advance!
But I'm not too familiar with the excel buffer so I wanted to check it out to do some exporting of Sales Header info.
there is a line of code I added
EnterCell(Row, 2, "Ship-to Name", FALSE, FALSE, FALSE);
What exactly do each of the Falses do?
Also I have a Zip Code line
EnterCell(Row, 7, "Ship-to ZIP Code", FALSE, FALSE, FALSE);
But if the Zip code code starts with leading Zero's - the Zero don't get sent over - how do you force a "text format" to a field.
Thanks in advance!
0
Comments
-
Savatage wrote:First off I was playing with Mark Brummels Excel Buffer Sample yesterday and it works great.
But I'm not too familiar with the excel buffer so I wanted to check it out to do some exporting of Sales Header info.
there is a line of code I added
EnterCell(Row, 2, "Ship-to Name", FALSE, FALSE, FALSE);
What exactly do each of the Falses do?
Also I have a Zip Code line
EnterCell(Row, 7, "Ship-to ZIP Code", FALSE, FALSE, FALSE);
But if the Zip code code starts with leading Zero's - the Zero don't get sent over - how do you force a "text format" to a field.
Thanks in advance!Var Name DataType Subtype Length No RowNo Integer No ColumnNo Integer No CellValue Text 250 No Bold Boolean No Italic Boolean No UnderLine Boolean
Take a look at report 29 (Export Acc. Sched. to Excel) here find the function EnterCell. (You shoudl be able to see this code using report designer).
So to answer your question
Bold, Italic, Underline.David Singleton0 -
-
Savatage wrote:But if the Zip code code starts with leading Zero's - the Zero don't get sent over - how do you force a "text format" to a field.
EnterCell(Row, 7, '''' + "Ship-to ZIP Code", FALSE, FALSE, FALSE);
No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)0 -
Yeah I figured that out too after trying all the other combinations ''' "'" """.
thanks I learned alot about the excel buffer in the last 2 days0 -
Good Morning All,
Stupid questions! :oops:
Where was report 29 used? and if I like to send account schedule to excel file, please show me how to do it!
Thanks,
CouberPu0 -
go to G/L->Account Schedules->Account Schedules(button)->Overview
this will run the account schedule you created or that was aready created
then you will see the function->Export Account schedule to Excel0 -
I've been real busy trying & testing excel buffer. But before I get to involved I was curious if you know if it is possible to add to a pre-existing file.
I am exporting sales header addresses to an excel file c:\addresses.xls
every day we add more sales orders and I want to export these new addresses into c:\addresses.xls starting from the last record that's already in the file.
Or does it just overwrite and create a new file?
Question2: I've read all there is to exporting pics to excel and I still don't get it.
I want to also export Item data - which works fine but I would also like the picture to export into excel also. The pics are all save externally already in a p:\ directory and the item # is the pictures name.
So what I would like to happen is when I open my Export Items To Excel report - I would select (for example) Starting Date=TODAY and all the new items entered today will go to excel - Item, Description, UPC, Price & Pic - All works but the pic part.
Thanks0 -
Answer to Question 2: Automation: logo's in Excel
xlSheet.Shapes.AddPicture(FilePathAndName, 1, 1, 20, 20, 100, 100);
I have never tried it, but I know from a collegue that this works.No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)0 -
Now do I add this to my report code - or do I alter the Excel Buffer with this code?0
-
That code needs to be in the Excel Buffer table, as you need to have access to the Automation variable "XlWrkSht".
I don't have much experience with this Excel Buffer table, as I normally use an Excel Automation codeunit which contains the functions I need.No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)0 -
Harry,
the problem is that (like a lot of stuff in Navision) they started out very strong, but just never went anywhere with it. So the excel buffer table has great features, and is great for getting you started, but always there is just "one more function" that you need.
Now unfortunately Excel Buffer is not one of the tables that we (MVPs through MSDN) have access to modify.
Normally for clients I have generally done the same as Luk, and maintained everything in a separate function instead of the built in functions in the Excel Buffer Table.
What is really needed is to move all the Excel Buffer functions from the table into a report, so that the normal report designer will allow "normal" users to add other properties.David Singleton0
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