I have managed to attach my filename to my print out by overloading the wxPrintout constructor with my chosen name.
wxPrintout(const wxString& title = wxT("Printout"));
In my code:
VRPrintout::VRPrintout(blababala):wxPrintout(_("Heartrate")),
But on printing to save as a PDF, in the filename dialog, it reads "Printing Heartrate".
How can I get rid of "Printing" added before the name or even change it?
@Credits to Xaviou from wxDev.fr.
You can try overriding the "OnBeginDocument" method in your wxPrintout derived class.
The default code is the following (the "OnBeginDocument" is virtual) in wx-src/common/prntbase.cpp:584 :
I think that if you provide yours with the correct text, it should be ok.
Regards Xav'
Edit : Tested on an app of mine that do printing stuff, and it works...
Worked for me too