User forums > Using Code::Blocks
Printing
BCCISProf:
How does one set the number of lines per page? When I print the program, line 62 does not print as it appears to be too low on the page.
Is there a setting that might belong in the editor/margins setting?
Also, should there be a way of making the choices when printing (e.g. line numbers) sticky, so that it does not have to be reset each time you print?
Thanks.
BCCISProf:
Hi,
Since no one else seems to have raised this issue, I did some further research. Using a Windows XP system, depending on which printer you use, CodeBlocks seems to either:
1. obey the choice of paper (i.e. "letter") set on the printer preferences,
2. ignore it and use "A4" no matter what is set, or
3. obeys the setting of "letter" and then immediately sets it back to "A4".
Here are some results:
HP 970CXi - #2 above
LaserJet printers (4000 and 4050) - #3
Adobe Acrobat Driver followed by HP970 CXi - #1
Of course using the the wrong paper type results in a line or two not printing at the bottom of each page.
This seems like a bug.... :)
At Brooklyn College, we are planning to switch to the CodeBlocks IDE for our programming classes. We have prepared an (introductory) student manual, which will be ready soon. But I am concerned about the 'little' things that would confure and introdcutory student.
Anyway, all in all, this system is quite professional and my thanks to all!
sethjackson:
I think I know the culprit.
@The Devs
Look at InitPrinting().
http://www.wxwindows.org/manuals/2.6.3/wx_wxpagesetupdialogdata.html#wxpagesetupdialogdatasetpapersize
http://www.wxwindows.org/manuals/2.6.3/wx_wxprintdata.html#wxprintdatasetpaperid
Something like SetPaperSize(wxPAPER_LETTER) should work (I did this in my app).
killerbot:
--- Quote from: sethjackson on October 06, 2006, 08:28:01 pm ---I think I know the culprit.
@The Devs
Look at InitPrinting().
http://www.wxwindows.org/manuals/2.6.3/wx_wxpagesetupdialogdata.html#wxpagesetupdialogdatasetpapersize
http://www.wxwindows.org/manuals/2.6.3/wx_wxprintdata.html#wxprintdatasetpaperid
Something like SetPaperSize(wxPAPER_LETTER) should work (I did this in my app).
--- End quote ---
just waiting on your patch Seth ;-)
Pecan:
--- Quote from: killerbot on October 06, 2006, 10:03:22 pm ---just waiting on your patch Seth ;-)
--- End quote ---
Yeah Seth, where're the patches !! :D
Times up. Put down that pencil !
What was you SAT score anyway?
Finish the patches first, then you can go drive you're Moms Hummer.
Navigation
[0] Message Index
[#] Next page
Go to full version