WxPostScriptDC
Jump to navigation
Jump to search
Rah! To print to a postscript file, without a strange printing dialog, you have to do the following:
pd->SetFilename(_("test.ps")); pd->SetPrintMode(wxPRINT_MODE_FILE); wxPostScriptDC psdc(*pd); psdc.StartDoc(wxT("pri*nting...")); // Tell it where to find the AFM files psdc.GetPrintData().SetFontMetricPath(wxT("afm/")); psdc.EndDoc();
I wonder what setprintmode is good for, if setfilename should say everything about the programmer's intention to write to a file...
Max, 31.3.06