Print Error Returns Sql Statement Follow

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 comments

0
Avatar
Legacy Poster
Comment actions Permalink

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

Please sign in to leave a comment.