This class provides very simple interface to printing architecture. It allows you to print HTML documents using only a few commands.
Note
Do not create this class on the stack only. You should create an instance on app startup and use this instance for all printing operations. The reason is that this class stores various settings in it.
Derived from
Members
wxHtmlEasyPrinting::wxHtmlEasyPrinting
wxHtmlEasyPrinting::PreviewFile
wxHtmlEasyPrinting::PreviewText
wxHtmlEasyPrinting::PrintFile
wxHtmlEasyPrinting::PrintText
wxHtmlEasyPrinting::PrinterSetup
wxHtmlEasyPrinting::PageSetup
wxHtmlEasyPrinting::SetHeader
wxHtmlEasyPrinting::SetFooter
wxHtmlEasyPrinting::GetPrintData
wxHtmlEasyPrinting::GetPageSetupData
wxHtmlEasyPrinting(const wxString& name = "Printing", wxFrame* parent_frame = NULL)
Constructor.
Parameters
name
parent_frame
void PreviewFile(const wxString& htmlfile)
Previews HTML file.
void PreviewText(const wxString& htmltext, const wxString& basepath = wxEmptyString)
Previews HTML text (not file!).
Parameters
htmltext
basepath
void PrintFile(const wxString& htmlfile)
Prints HTML file.
void PrintText(const wxString& htmltext, const wxString& basepath = wxEmptyString)
Prints HTML text (not file!).
Parameters
htmltext
basepath
void PrinterSetup()
Displays printer setup dialog and allows the user to modify settings.
void PageSetup()
Displays page setup dialog and allows the user to modify settings.
void SetHeader(const wxString& header, int pg = wxPAGE_ALL)
Sets page header.
Parameters
header
pg
void SetFooter(const wxString& footer, int pg = wxPAGE_ALL)
Sets page footer.
Parameters
footer
pg
wxPrintData* GetPrintData()
Returns pointer to wxPrintData instance used by this class. You can set its parameters (via SetXXXX methods).
wxPageSetupDialogData* GetPageSetupData()
Returns a pointer to wxPageSetupDialogData instance used by this class. You can set its parameters (via SetXXXX methods).