Print Error Returns Sql Statement 追蹤

0
Avatar
Legacy Poster

Hi,
How to understand what is the problem in?
I catch error like 'SELECT "FIled1", "Field2"... FROM "Table" WHERE "GIUDNO" = '......''
Error appears sometimes may be 4 of 10 attempts or 9/10 or 2/10
 

btEngine.Start();
 
            // Open a format.
            LabelFormatDocument btFormat = btEngine.Documents.Open(labelpath, printer);
            ((OLEDB)btFormat.DatabaseConnections[0]).SQLStatement = SQL;
            btFormat.PrintSetup.IdenticalCopiesOfLabel = copies;
 
            Messages btMessages;
            // Print the format.
            Result nResult = btFormat.Print("OUT Sticker", out btMessages);
...

1 意見

0
Avatar
Legacy Poster
評論操作 永久連結

I find out that problem appears after restart printspooler...
Restart server solve problem till restart printspooler
Diablery...

登入寫評論。