04-17-2007 10:29 AM
04-17-2007 02:55 PM
04-18-2007 02:14 PM
Hi Steve,
Sorry to be asking you this question about BullZip, but since you got it to work, I have the following question that I sent to Bullzip, i have included the Labwindows code snipet that errors due to the config.exe:
04-19-2007 11:13 AM
04-19-2007 01:33 PM
I am definitely perplexed with this issue as i would sure like to use this utility. No matter how I format the string, I always gets the following error when trying to launch the executable:
"NON-FATAL RUN-TIME ERROR: "SCUMain.c", line 3948, col 10, thread id 0x00000DC4: Library function error (return value == -19 [0xffffffed])."
The following code snippet is in the following form similar to what Steve sent me:
sprintf (docPath,"C:\\NeoGuideTest\\config /S Output \"C:\\NeoGuideTest\\Test_Reports\\testReport.pdf\"");
if ((LaunchExecutableEx(docPath, LE_SHOWNORMAL, &bullzipHandle)) == 0)
As you can see, I have the test report in double quotes, but it still gives me the above error. I did find that it likes to have the '/S' switch before the 'Output' command.
Thx,
Mike
04-19-2007 11:46 PM
04-24-2007 10:46 PM
Thanks Steve for all of your help, I finally got it working. I also found out from Bullzip that for each change or setting that you would like to make, you need to send it separately as you did with the 'Output' command.
Thx,
Mike
04-26-2007 08:57 AM
Hi,
I could not manage to avoid the BullZip popup. When I call the PrintTextFile function (BullZip is set as default printer) or print manually from Notepad, for instance, I always get the popup with title "BullZip PDF Printer - Create PDF". From gui.exe I disabled all popups and I run config.exe using cmd.exe to specify an output file using the command
CONFIG /S Output "e:\test.pdf"
I know this command is accepted because in the popup that appers file path is e:\test.pdf.
Is there another command to suppress this popup?
Thanks in advance,
04-26-2007 03:28 PM
If you follow this example, as per Steve's instructions, and DONT set the Bullzip printer to the default printer, that is if you are trying to do this programatically, then here is my code snippet that executes printing the NI test report:
sprintf (docPath,"\"C:\<pathname>\\config.exe\" /S Output \"C:\\<pathname>\\testReport.pdf\"");
if ((LaunchExecutableEx(docPath, LE_SHOWNORMAL, &bullzipHandle)) == 0)
while (!ExecutableHasTerminated (bullzipHandle));
ProcessSystemEvents();
RetireExecutableHandle (bullzipHandle);
/* Now save the report using the Bullzip PDF create program */
if (NIReport_Print (reportHandle, "Bullzip PDF Printer", 1))
error++;
NIReport_Discard (reportHandle);
The key is to not set the Bullzip printer to the default printer and just enter the name of the printer as found in the BullZip printer properties, into the NIReport_Print function in quotes. Just substitute "e:\test.pdf" into the sprintf function after the OUTPUT \". If you need to set any other printer settings, such as suppressing the saveas popup window, then you will have to repeat the first five lines with the new setting. Hopefully I understood your question and answered your question.