Entering multible lines into a single cell in Excel

sander7
Member Posts: 10
Hi there,
I'm trying to export the content of Comment Line into a single cell in Excel using the Excel Buffer.
To achieve this i've done the following:
- Added a boolean-field to the excel-buffer, that tells me that this cell is multiline. (i didn't want to modify the Excel Buffer, to include a Line No. in the primary key, as i think i will f... other features up by that.)
- Created a new table, with the same primary key as Excel Buffer, and also a Line No. in the key. (kind of like a header/line relationship)
- Changed the code on function CreateSheet, in a way so that it loops through my new table, if the boolean-field i mentioned is set to TRUE.
As long as i only export a few lines, everything works fine.
However at some point, i seem to reach a limit in the amount of data i can put into a single cell. This limit is significantly less than i can into a cel, if i type it manually.
I hope this is because i use a wrong method, and that somehow i can get it to work, if only i knew wich method to use.
Right now i do it like this:
REPEAT
XlWrkSht.Range(xlColID + xlRowID).Value := FORMAT(XlWrkSht.Range(xlColID + xlRowID).Value) +
ExcelBuffMultiLineRec."Cell Value as Text" + FORMAT(CRLF);
UNTIL ExcelBuffMultiLineRec.NEXT = 0;
Anyone out there who can help me?
My guess is that there is an upper limit to the amount of data i can put into XlWrkSht.Range(x + y).Value.
Is there a XlWrkSht.Range(x + y).ValueAdd method?
TIA
// Alexander
I'm trying to export the content of Comment Line into a single cell in Excel using the Excel Buffer.
To achieve this i've done the following:
- Added a boolean-field to the excel-buffer, that tells me that this cell is multiline. (i didn't want to modify the Excel Buffer, to include a Line No. in the primary key, as i think i will f... other features up by that.)
- Created a new table, with the same primary key as Excel Buffer, and also a Line No. in the key. (kind of like a header/line relationship)
- Changed the code on function CreateSheet, in a way so that it loops through my new table, if the boolean-field i mentioned is set to TRUE.
As long as i only export a few lines, everything works fine.
However at some point, i seem to reach a limit in the amount of data i can put into a single cell. This limit is significantly less than i can into a cel, if i type it manually.
I hope this is because i use a wrong method, and that somehow i can get it to work, if only i knew wich method to use.
Right now i do it like this:
REPEAT
XlWrkSht.Range(xlColID + xlRowID).Value := FORMAT(XlWrkSht.Range(xlColID + xlRowID).Value) +
ExcelBuffMultiLineRec."Cell Value as Text" + FORMAT(CRLF);
UNTIL ExcelBuffMultiLineRec.NEXT = 0;
Anyone out there who can help me?
My guess is that there is an upper limit to the amount of data i can put into XlWrkSht.Range(x + y).Value.
Is there a XlWrkSht.Range(x + y).ValueAdd method?
TIA
// Alexander
Regards,
Alexander Pallesen
Freelance Navision Developer
Alexander Pallesen
Freelance Navision Developer
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