When printing from a Grapher script, the Document object's PrintOut method always prints to the default printer. How can I print to a different printer?

When printing from a script, the default Windows printer is used. You can change the printer that Grapher is using by setting the Printer property of the AutoPageSetup object before printing. For example:


Set Plot1 = Grapher.Documents.Open(filename)
Plot1.PageSetup.printer = "Adobe PDF" Plot1.PrintOut(grfPrintTruncate

Updated July 7, 2016

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request


Please sign in to leave a comment.