cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Save Mathcad Prime Worksheet as pdf

Newbie

Save Mathcad Prime Worksheet as pdf

Hello,

I am generating a MathcadPrime 3.1 document with c# using the interop "Ptc.MathcadPrime.Automation.dll".

Everything works fine, but I like to save the worksheet as a pdf as well, I do not find the corresponding save as options, Mathcad 15  offered MCFileFormat.mcPDF format. Does something equivalen exist for MathCadPrime 3.1 .

´Thank you in advance

Jan

12 REPLIES 12

Re: Save Mathcad Prime Worksheet as pdf

Hi.

Not prety sure, but guess not: the avaible format is XPS (XML Paper Specificication) from Microsoft.

Best regards.

Alvaro.

Re: Save Mathcad Prime Worksheet as pdf

Jan Christoph Wehrstedt wrote:

Hello,

I am generating a MathcadPrime 3.1 document with c# using the interop "Ptc.MathcadPrime.Automation.dll".

Everything works fine, but I like to save the worksheet as a pdf as well, I do not find the corresponding save as options, Mathcad 15  offered MCFileFormat.mcPDF format. Does something equivalen exist for MathCadPrime 3.1 .

Does the Prime automation contain a print method?  If so, could you try printing to pdf?

Stuart

Re: Save Mathcad Prime Worksheet as pdf

You need to "Print" to a pdf. If you do not have the option, there are free apps that will give you this ability.

Re: Save Mathcad Prime Worksheet as pdf

Thank you all very much, but it does not help really help me.

The API does not offer a print option and the windows explorer does not offer print for the document, therefore I cannot trigger it from outside.

It seems that you cannot use any other file format for saving.

Any more ideas?

Thank you

Jan

Re: Save Mathcad Prime Worksheet as pdf

I am using the Prime Express version of 3.1 (as well as a full version 3.0 and 15) and when I select PRINT it asks me to select a printer. I have two print to PDF apps (one of which comes with Microsoft Word) the other may have come with Mathcad 15. I just select "Microsoft Print to PDF" or "Adobe PDF" as my printer, press PRINT and I get a pop menu which lets me select the location I want the file to be saved to. As I said you can find print to PDF apps on the web that are free if you do not have one.

Re: Save Mathcad Prime Worksheet as pdf

Sure this works, but I want to generate the pdf using the API automatically.

I have no print function offered there and a pop up menu for the location does not help either, sorry

Thank you

Jan

Re: Save Mathcad Prime Worksheet as pdf

Jan,

PTC does not even provide the option to "save as pdf" from within Mathcad, so I'm sure there's no option for it within the API.

I thought there was a "print all" option within the API.  However, I don't have access to Prime 3.1 on this computer, so I cannot check.  I know this option exists in the legacy Mathcad API (v15 & prior), so maybe that's what I'm remembering.  If you say printing is not available from Prime's API, then I doubt you can achieve what you want.

Re: Save Mathcad Prime Worksheet as pdf

Hi Jan,

I want to confirm what is the general consensus in this thread: Unfortunately, the Mathcad Prime API currently does not support a method to save as or print to PDF.

Luke

Re: Save Mathcad Prime Worksheet as pdf

Contrary to PTC's documentation, the API doesn't allow to print to any format, correct? PTC should probably go ahead and remove that lie.

 

2018-03-28_10-33-04.png