c# - How can I generate PDF from Printdocument? -
[language: c#] have wrote code printdocument , preview microsoft's controls built-in (system.windows.forms.printpreviewcontrol, system.drawing.printing.printdocument).
how can convert in pdf file print code:
string filename="c:\\file.prt"; printdialog dlg = new printdialog(); dlg.document = this; dlg.allowselection = this.listview.selectedindices.count > 0; dlg.allowsomepages = true; dlg.printersettings.printtofile = true; dlg.printersettings.printfilename = filename;
i don't want print virtual pdf printer software, because there "save as" dialog... can convert in pdf ghostscript, 1 want postscript file, don't work "printfilename" format type.
how can convert printfile postscript ps, or in pdf?
thanks.
i have resolved this: http://www.nathanpjones.com/wp/2013/03/output-to-pdf-in-wpf-for-free/
the format xps....
thanks.
Comments
Post a Comment