Options

Need Help! Anyone have seen this error before?

MengkuMengku Member Posts: 5
Hi,

Today I encounted a problem when I was trying to print a label through Navision 5.1, The system used to be working just fine, but when today I got this error "An exceptin was raised in method CopyFile. The OLE control or Automation server has returned error (HRESULT) -2147352567. The component did not provide the exception description." upon printing the label.

I debuged in and found that the system is stoped at this line of code in red,

IF CREATE(FileSys,TRUE) THEN BEGIN
IF NOT FileSys.DriveExists(COPYSTR(Path,1,2)) THEN
ERROR(GNR002,Path);
FileSys.CopyFile(Path,PrinterSetup."UNC Printer Path", TRUE);
CLEAR(FileSys);
END ELSE
ERROR(GNR002,Path);

FileSys is a variable of Type Automation, which is 'Microsoft Scripting Runtime'.FileSystemObject
Path is an variable of Type Text, which is the GRF file path in the server

There should be a picture showing on the label, which is stored in the server with a GRF file (we are using Zebra Label Printers).

The strange thing is If I log in with someone else's ID, it goes just perfect.

Has anyone seen this kind of error before? I'm so appericate if you could advise. Thank you so much!

Comments

  • Options
    pduckpduck Member Posts: 147
    Which values are in the parameters used in CopyFile before the error occurs?
Sign In or Register to comment.