FlowDocumentReader.Print Method default FileName when printing to PDF

651 views Asked by At

How can I set the default FileName when printing a FlowDocumentReader.Print() to PDF?
Not a hard coded name - with each Print I want to set a default FileName.
And they are not printing to PDF every time - user may select PDF as the printer.

FlowDocumentReader.Print Method

1

There are 1 answers

4
Youp Bernoulli On

Check out these two answers:

One in VB.NET easily converted into c# as per your preference

Or this one

In both cases there are still some issues I believe as I have scanned the answers. But it might give you some clues ;)