wxHtmlEasyPrinting Topic is solved

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
asadilan
Earned some good credits
Earned some good credits
Posts: 147
Joined: Tue Jul 27, 2010 10:42 pm

wxHtmlEasyPrinting

Post by asadilan » Mon May 16, 2016 4:36 pm

Hi All,

i have an interesting problem.

Code: Select all

wxHtmlEasyPrinting printEngine("Xtender Validate Report", this);
	printEngine.SetStandardFonts(8);
    wxDateTime dateTime;
    dateTime = wxDateTime::Now();
    wxString dateString;
    dateString.Printf("%s",dateTime.FormatISODate());
    wxString timeString;
    timeString.Printf("%s",dateTime.FormatISOTime());

    dateString.Append(" ").Append(timeString);
    if (m_HideReqsCheckBox->IsChecked())
    {
		printEngine.SetFooter(wxString::Format("MicroPilot %s        @[email protected]/@[email protected]                                                      Only Changed Requirements Shown",dateString),wxPAGE_ALL);
    }
    else
    {
		printEngine.SetFooter(wxString::Format("MicroPilot %s        @[email protected]/@[email protected]",dateString),wxPAGE_ALL);
    }
	
	printEngine.PrintFile(HTML_RESULT_FILE);
when i try to print 2 set of my document, it would print 4. when i try to print 3 set, it would actually print 9.
can someone confirm if this is just me or wxwidget?

i am using wx28
Thanks
Asadilan

User avatar
doublemax
Moderator
Moderator
Posts: 14782
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: wxHtmlEasyPrinting

Post by doublemax » Mon May 16, 2016 4:40 pm

This is most likely this bug: http://trac.wxwidgets.org/ticket/10323

Please update your wxWidgets version, 2.8 is over six years old.
Use the source, Luke!

Post Reply