Need Help! Anyone have seen this error before?
Mengku
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!
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!
0
Comments
-
Which values are in the parameters used in CopyFile before the error occurs?0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 333 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