Save As PDF....All Sheets

Valued Contributor
Valued Contributor

I want to save a dft file off as a pdf. I am able to do with with

doc.saveas (PartName & ".pdf").

 

However It defaults to only printing off the active sheet. I know how to change the options under save as translated but this is going to be running on computers company wide. Is there a way to set this option in VB.Net?

 

I tried Doc.saveas(PartName & ".pdf", SolidEdgeConstants.PrintRangeConstants.igPrintAll) however this didn't work.

 

VB.Net 2008, Windows 7, ST3

 

Posted by: sean tormey
Post date: 4/10/2013 3:17:36 PM

2 REPLIES
Highlighted

Save As PDF....All Sheets

Valued Contributor
Valued Contributor

Sean,

 

Solid Edge keeps some print PDF related parameters in the registry under HKEY_CURRENT_USER:

 

Setting the value of the key shown below to 1 will achieve what you want.

 

HKEY_CURRENT_USER\Software\Unigraphics Solutions\Solid Edge\Version 105\Global\PDF_PRINT_ALL_SHEETS

 

Posted by: Wolfgang Kunert
Post date: 4/11/2013 4:23:03 AM

Save As PDF....All Sheets

Valued Contributor
Valued Contributor

//objApp is the SE session object

 

// dftfile is the location of SE draft on the local drive.

 

// Target is the name of the local destination of the PDF File.

 

 

Dim rootdft As SolidEdgeDraft.DraftDocument = objApp.Documents.Open(dft_file)

 

rootdft.SaveAs(target)

 

Posted by: Jacob Andrews
Post date: 5/7/2013 12:54:30 AM