lmi
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi] Default printer paper size inappropriate for US


From: Greg Chicares
Subject: [lmi] Default printer paper size inappropriate for US
Date: Wed, 15 Nov 2006 18:53:19 +0000
User-agent: Thunderbird 1.5.0.4 (Windows/20060516)

Apparently wx defaults to 'A4', while our country uses
something a little different. Rick suggests:

diff --unified=2 --recursive --unidirectional-new-file 
c:/opt/lmi/src/Oldsource/illustration_view.cpp 
c:/opt/lmi/src/Newsource/illustration_view.cpp
--- c:/opt/lmi/src/Oldsource/illustration_view.cpp      Mon Nov 13 10:33:50 2006
+++ c:/opt/lmi/src/Newsource/illustration_view.cpp      Wed Nov 15 12:39:50 2006
@@ -303,4 +303,7 @@
     if(e_print_printer == option)
         {
+        wxPrintData *printer_settings = printer->GetPrintData();
+        // Default to 8.5 X 11 Letter Size
+        printer_settings->SetPaperId(wxPAPER_LETTER);
         printer->PrintText(selected_values_as_html_.c_str());
         }

and I wanted to bring that onto the mailing list for
discussion. Evgeniy, what do you think? [Please copy
Rick on your response because his mailserver is poor
at delivering list traffic to him.]

I suppose something like this is okay for our pending
release, but what's the best long-term solution? Is
this somehow globally configurable in wx? If not, then
should it be? Should we add something to our own wxApp
derivative?

A separate question: should it be a persistent setting
that wx automatically saves whenever a user changes it?




reply via email to

[Prev in Thread] Current Thread [Next in Thread]