Dear experts,
I'm developing export function into TXT (Tab Delimit) files and encounter a problem.
Since I have a field having length over 250, I can neither use dataport nor ExcelBuff. So, I have created a codeunit and written all the necessary CreateBook, CreateSheet, SaveAs .TXT codes, etc by myself.
It was fine and successful BUT.... the output data includes a doublequot (") at the start and end of the field value which having comma (,). That's the problem I am encountering.
The SaveAs code as follows:
XlWrkBk.SaveAs(<full file path name>,-4158);
In which, -4158 is xlFileFormat - xlCurrentPlatformText.
Actually, I have tried other Text fileformat but in vain.
19, 20, 21, 42 - all error;
36 Printer Text can avoid the double quotation, BUT,..... did not use TAB as delimiter.
So, if any one of you have ideas on that, please kindly advise! [-o<
Thanks in advance,
Rocopsa
0
Answers
Thanks for the idea!!! I will try to look into FILE and outstream instead.
\:D/
Cheers!
Rocopsa