Export to Excel
myanilkumar
Member Posts: 108
Hi all,
I am using standard Navision Export to Excel functionality to get output data to excel file.
When i export data is there any way i can fix the width of the cells. Because after exporting the columns are lapsing on each other.
I need to click on each colomn to enlarge the width. Please let me know on this.
Regards,
Anil
I am using standard Navision Export to Excel functionality to get output data to excel file.
When i export data is there any way i can fix the width of the cells. Because after exporting the columns are lapsing on each other.
I need to click on each colomn to enlarge the width. Please let me know on this.
Regards,
Anil
0
Comments
-
Doesn't this depend on the way you have setup your export template?0
-
I didnt setup any export template. I am adding rows & coloumns at run time dynamically.
Is there any way to fix coloumn width during creation. Please let me know.
Thanks,
Anil0 -
FYImyanilkumar wrote:I need to click on each colomn to enlarge the width. Please let me know on this.
click the top left corner box between A & 1 (it's blank)
This will select the entire sheet.
Place cursor between A & B (you'll get a double arrow) <-|->
now double click -all columns should expand to the columns widest value.
viola!0 -
I need to click on each colomn to enlarge the width. Please let me know on this.
I prefer using Excel Automation for exporting data into Excel. It requires some coding, but its not much more code than using built in function. With excel automation, all you need to do is.ExcelSheet.Range('A:Q').Columns.AutoFit;Microsoft Certified Technology Specialist
Microsoft Certified Business Management Solutions Professional
Microsoft Certified Business Management Solutions Specialist
http://www.navisiontech.com0 -
MSDN has a lot of what you're looking for. just search for excel functions. Anything you do in excel can be automated. A good trick to get the commands you need is simply record a macro in in excel, and view the code. Then translate the VB code into CSIDE (this can be tricky too), and there you go.Microsoft Certified Technology Specialist
Microsoft Certified Business Management Solutions Professional
Microsoft Certified Business Management Solutions Specialist
http://www.navisiontech.com0 -
Another good way to figure out what the automation commands are is to open the macro recorder in Excel, and do what you want to do. Then when you're done, you stop the macro recorder, and everything that you did should show up in VBA code in one of the code modules in the macro VBA editor. Those VBA commands are part of the Excel object model, which is all available through the Excel automation server, which you can program with in C/AL code.0
-
open the macro recorder in Excel, and do what you want to do. Then when you're done, you stop the macro recorder, and everything that you did should show up in VBA code
I thought i said the same thing... :whistle:Microsoft Certified Technology Specialist
Microsoft Certified Business Management Solutions Professional
Microsoft Certified Business Management Solutions Specialist
http://www.navisiontech.com0 -
You can control this by editing the default Excel stylesheet. Go to form 690, export the default Excel stylesheet, open up the xslt file in Notepad, make your changes and import back in via form 690.0
-
You can control this by editing the default Excel stylesheet.
Canadianbacon, this is great tip. Especially for the percentages that export with 10 decimals from NAV. I will give this a try. Can you have different styles for different Accout Schedules? I made my soolution format the exported Account Schedules with automated macros.Microsoft Certified Technology Specialist
Microsoft Certified Business Management Solutions Professional
Microsoft Certified Business Management Solutions Specialist
http://www.navisiontech.com0 -
Did you add the macro recorder stuff to your post later?
didnt make any adjustments to my post. 8) Its cool, no worries.Microsoft Certified Technology Specialist
Microsoft Certified Business Management Solutions Professional
Microsoft Certified Business Management Solutions Specialist
http://www.navisiontech.com0
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
- 323 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

