Dear All,
I'm using NAV 4.0, i have form for attaching the files like "import/open/remove attachment". All are fine but when i imported the .CSV file it was succesfully imported, if i open the imported attached csv file it's throughing error message i'm unable to open it.
other all files are fine eg: .doc,.xls,.txt etc..
Error:
C/Side Hyperlinking failed.
You tried to hyperlink to this target:
C:\docume~1\psk\local~1\temp\doc.csv
do you want to place the hyperlink target on the clipboard ?
Yes / NO ----> nothing has changed the both actions.
Open Attachement code:
FormAttRec.SETFILTER(FormAttRec."No.","No.");
FormAttRec.SETFILTER(FormAttRec.Description,Description);
IF FormAttRec.FIND('-') THEN
BEGIN
IF FormAttRec."Attachment No." <> 0 THEN
FormAttRec.OpenAttachment
END
ELSE
BEGIN
MESSAGE('No Document is Attached');
EXIT;
END;
CurrForm.UPDATE;
Please suggest me..
Thanks & Regards,
Psk
0
Comments
This message is shown when Navision is not able to open the file.
But oh my foes and oh my friends, it gives a lovely light
also, try to show the extention of file in windows...and check permissions on that folder, also, check if the path is correct
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog
I'm having the same problem here
Cannot open the .csv file
I already use the Automation WSHShell.RUN
but got error :
"An exception was raised in method Run. The OLE control or Automation server has returned error (HRESULT) -2147352567.
The component did not provide the exception description."
actually not only .csv file, but .doc, .pdf, and some .txt files (some can be opened, some cannot.. i also dont understand why) also cannot be opened.
any idea what's wrong?
I got similar issue and the problem was file name. When i try to open file with WHS and in file name was space then i got the same error. Try to to something like this:
^ AWESOMENESS
Thank You, chrisxx83