Skip to main content
1-Visitor
May 27, 2016
Question

Mathcad Prime 3.1: Is there a way to automate printing?

  • May 27, 2016
  • 2 replies
  • 1774 views

I would like to start printing of a series of worksheets from an external Application. The external application was created to collect worksheets, force modifications and update them. The printout to XPS give the ability to insert content dependent header/footer. What I need now is the automated creation of such XPS outputs. This is normally done by printing to "XPS Document Writer" (Windows 7). The SDK does not have a interface for printing - not in the default automation dll. Is there any other dll or any other way to do this?

2 replies

1-Visitor
May 27, 2016

I haven't done much in Prime's API, but Mathcad 15 (& prior) had the following option for printing.  If Prime has a similar option, you could change your default printer to the XPS Writer and call this.

PrintAll Method

The PrintAll method prints the entire Worksheet object, using the default printer.

Syntax

objMC.PrintAll

where objMC = A Mathcad application object.

1-Visitor
May 29, 2016

There is no  PrintAll method in the application object or worksheet object of Prime 3.1 SDK. Anyway no public interface.