Hi.. :)
i using timer event when printout the excel format using script.
when i using auto event this below error appear...
Error "No printers are installed. To install a printer click the File tab, and then click Print. Click No Printers Installed, and then click Add Printer. Follow the instructions in the Add Printer dialog box." appear.
when i debug manually no error appear and success to print out.
Script using:
Set oExcel = CreateObject("Excel.Application")
Set oBook = oExcel.Workbooks.Add("D:\BIG_EXCEL\test1.xlsx")
Set oSheet = oBook.Worksheets(1)
'-- Insert To Excel ------------------
oSheet.Cells(2, 1).Value = "'" & data1& ""
oSheet.Cells(2, 6).Value = "'" & data2& ""
oSheet.Cells(2, 10).Value = "'" & data3& ""
oSheet.Cells(2, 34).Value = "" & data4& ""
oSheet.Cells(6, 34).Value = "" & data5& ""
oSheet.Cells(2, 40).Value = "'" & data6& ""
oSheet.Cells(6, 40).Value = "'" & data7& ""
oSheet.Cells(2, 46).Value = "'" & data8& ""
oSheet.Cells(9, 40).Value = "'" & data9& ""
oSheet.Cells(6, 1).Value = "'" & data10& ""
'-- Printout ---------------------------------
oSheet.PrintOut Copies:=1, Collate:=True '-- error appear at this line if
auto event trigger
help me to solve this problem. Tq :)
softaware i am using:
cimplicity version = 8.2
office : office 2007