Origin Ver. and Service Release (Select Help-->About Origin): OriginPro 8.1G SR3
Operating System:win pro 2000 sp4
Hi,
is it possible to automate printing jobs through Origin (with some for example open source printer driver like PDFCreator or Bullzip ...)? In the LabTalk manual I found this command:
win -o Graph1 print;
, but is there a way to set some argumens like name of the file and path and for example whether to replace a file or not?
I searched for something like this in the OriginC manual, but found one example function that I changed to:
int PageBase_Print_ex1()
{
GraphPage gp = Project.GraphPages(0); // Page to print
if( gp )
{
Tree tree;
//tree.Printing.PrinterName.strVal = "Canon Bubble-Jet BJC-2000"; // Ignore default printer, use Canon instead
//tree.Printing.NumberOfCopies.nVal = 2; // Print 2 copies
//tree.Printing.DPI.nVal = 300; // Resolution 300 dpi
//BOOL bResult = gp.Print(tree);
tree = gp.GetFormat(FPB_ALL, FOB_ALL, true, true); // can set a break point on this line
out_tree(tree); // output tree structure
}
return 0;
}
to see all the methods and properties, but I found that to printing were only theese related:
|--Printing
| |--PrinterName = Adobe PDF
| |--DPI = 1200
| |--NumberOfCopies = 1
| |--PaperSource = 15
My other idea is to set the configuration opens from labview to the printer driver prior to calling this command "win -o Graph1 print;" so the printer does not open dialog and saves the file at the configured locations with the configured name. I am working on that, but at the moment with no success. Any help greatly appreciated.