Click here to Skip to main content
15,890,741 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi,

can anyone tell me how can i make a button that saves the PrintDocument1 the way i have set it up?

i can see print preview if i say
<pre><code>PrintPreviewDialog1.ShowDialog()</code></pre>
and set the 'Document' property of PrintPreviewDialog1 to PrintDocument1.

is there a similar way of saving the same file?

and do you know if the build settings can be changed?

thanks in advance
Posted

You can set the properties programatically, and may be able to serialise the object. you can certainly create your own file format to save the settings and then load and restore them.
 
Share this answer
 
I think you have to save/load settings manually, You can use BinaryWriter and BinaryReader to write 'em in file.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900