export excel

medTUN
Member Posts: 9
I Want to export item No. to excel report,
"item No." is code eg. item No.= 0014525
after export i have in excel report 14525
how method to obtein 0014525
"item No." is code eg. item No.= 0014525
after export i have in excel report 14525
how method to obtein 0014525
karray mohamed
teleph. : +216 71 88 71 95
mobile : +216 98 66 08 33
teleph. : +216 71 88 71 95
mobile : +216 98 66 08 33
0
Comments
-
How are you exporting it into excel. If you are just copying and pasting then set the column that this field will go into as a text field. If you are importing into excel via a text file then make sure that you set that field property as text.0
-
Hi,
no i develop unit code,
contain some information between item and post order's
but i obtain in excel item No =14525
in unit code
xlWorkSheet.Range('E' + FORMAT(RowNoCount)).Value :=Format(Ite."No.");
xlWorkSheet.Range('D' + FORMAT(RowNoCount)).Value :=FORMAT(Postord."posting Date");
i obtain in column "D" 02/01/2003 but in column "E" 14525
but i would obtain in column "D" 02/01/2003 but in column "E" 0014525karray mohamed
teleph. : +216 71 88 71 95
mobile : +216 98 66 08 330 -
if you are writting directly to excel worksheet append a single quotation:
eq ''''+format(000123444)0 -
so you need to change Format(Ite."No.") to ''''+Format(Ite."No.")
hope that helps
mahannokoy@yahoo.com0 -
You don't need the FORMAT statement for Item."No.". First of all, it is a code field and secondly, if you use the value property you don't have to convert to text.
Another way is this:
xlWorkSheet.Range('E' + FORMAT(RowNoCount)).Text :=Item."No.";0 -
hi,
no all this method are don't work, is it another method to convert the rows E to text i.e before export i would change the format cellule fronm standard to text?karray mohamed
teleph. : +216 71 88 71 95
mobile : +216 98 66 08 330 -
If you want a number to be 00124 instead of 124, the same thing happens when you insert a number manualy into excel.
I think you can try 2 things:
1. In your excel template document select column 'E' and go to cell properties. Change the category in 'text'.
2. - Make a tekst constant QOUTE containing the text ' (single quote)
- xlWorkSheet.Range('E' + FORMAT(RowNoCount)).Value :=Format(QOUTE + Ite."No.");
Don't know for sure if it works, good luck!In a world without Borders or Fences, who needs Windows and Gates?0 -
if you want cells like text the solution is the follow code
XlWorkSheet.Range(xlColID + xlRowID).NumberFormat := '@';
you could use the standard function table excel buffer0
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