Announcements

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

PrintManager - Suppress/Hide the save As filename dialog

dhanait_ajay13
Enthusiast

PrintManager - Suppress/Hide the save As filename dialog

dhanait_ajay13
Enthusiast
Enthusiast

I'm using the PrintManager Revit API to submit a PDF print.

Although I'm setting the property .PrintToFilename = 'Filename.pdf', I'm still getting a dialog appear asking user for PDF file and location.

0 Likes
Reply
Accepted solutions (1)
355 Views
3 Replies
Replies (3)

jeremy_tammik
Autodesk
Autodesk

Exactly how are you making the call, please?

 

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes

dhanait_ajay13
Enthusiast
Enthusiast

i don't want to this 'Save File' dialog, because i passed file name then why it appear , so is any way to hide this dialog box

0 Likes

grahamcook
Advocate
Advocate
Accepted solution

I think you will find that this is a print driver issue / restriction that you will hit with any application (even though you include the path property in PrintManager).  The only way I have found to suppress the save as dialog is to purchase a third party PDF Printer that allows programmatic access, like CutePDF SDK for example (Custom PDF Writer).  Amongst other things it enables applications to set the output file in the registry programmatically which the printer driver checks prior to popping the Save As dialog box.  There are of course other customisable drivers but CutePDF is the one I have used.

0 Likes