Bartender Prints When I Select "test Print" But Not When I Select Print Follow
I'm controlling Bartender using COM, from inside another software package with an IDE. When I call the automation to print (and set the dialog/etc to show up) the bartender window opens, with all of the proper selction critera (Printing from a SQL database) selected. If I push "Print" the process hangs for about 20 seconds, then exits and nothing is sent. IF I press "test Print" from the same dialog, the label is sent (actually prints out on the Zebra printer) and control returns in a second or so.
What am I doing wrong? here is the code I'm using:
IF ISCLEAR(btCom) THEN
IF ISCLEAR(btFormat) THEN
btFormat := btCom.Formats.Open(GetFormatPath(l_LabelREC.FormatType),FALSE,''); //Open Label format
IF RangeString <> '' THEN
btFormat.RecordRange(RangeString); //Tell it based on primary key what to print.
btFormat.JobName := USERID + ' Job' + FORMAT(TODAY); // Make a job name and set it
IF GUIALLOWED THEN
ResultVal := btFormat.PrintOut(FALSE,TRUE) //Print Dialog,Print Status <--this is the one I'm executing now
ResultVal := btFormat.PrintOut(FALSE,FALSE); //No interface for Mobile users
MESSAGE('Printing Job: %2 to: %1',btFormat.Printer,btFormat.JobName);
Do some other stuff and close it.
Also ResultVal returns 0 in both cases.
Please sign in to leave a comment.