Click here to Skip to main content
15,902,276 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralEasy question but difficult answer Pin
VietDelphi28-Apr-03 9:53
VietDelphi28-Apr-03 9:53 
GeneralRe: Easy question but difficult answer Pin
John M. Drescher28-Apr-03 10:55
John M. Drescher28-Apr-03 10:55 
GeneralMDI question (when closing MDI Child windows) Pin
Maximilien28-Apr-03 9:29
Maximilien28-Apr-03 9:29 
GeneralRe: MDI question (when closing MDI Child windows) Pin
Brian Shifrin28-Apr-03 13:28
Brian Shifrin28-Apr-03 13:28 
GeneralTemplate question problem Pin
grscot28-Apr-03 8:21
grscot28-Apr-03 8:21 
GeneralRe: Template question problem Pin
Chris Losinger28-Apr-03 8:31
professionalChris Losinger28-Apr-03 8:31 
GeneralPrinting Question for Roger Allen Pin
doctorpi28-Apr-03 6:19
doctorpi28-Apr-03 6:19 
GeneralRe: Printing Question for Roger Allen Pin
Roger Allen29-Apr-03 2:40
Roger Allen29-Apr-03 2:40 
Sounds like a tricky problem. Eek! | :eek:

The first thing I would recommend is you have some code that loads in all the files you will need to be printing. You can store these in a vector of objects. The object needs to support a call that tells how much space it will need when it prints - this probably needs to be in lines or pixels (depends on what each object is). Once you have their sizes, you could write an algorithm that groups together those items which can be placed on the same page where possible (this also depends on the page size landscape/portrait etc)

Once you have them put together into page blocks you will be able to calculate the number of pages you will have to print and hopefully print them too.

As your algorithm for working out what goes on each page needs to be properly optimized. I would get the items just printing as a square block with an ID number inside. Then if you get preview up and running you can try tweaking the layout engine until it gives the best results.

As your question is just a general overview I can't really be more specific.

Roger Allen
Sonork 100.10016

Were you different as a kid? Did you ever say "Ooohhh, shiny red" even once? - Paul Watson 11-February-2003
GeneralRe: Printing Question for Roger Allen Pin
doctorpi29-Apr-03 5:05
doctorpi29-Apr-03 5:05 
QuestionHow to read command line parameters Pin
gmlnd28-Apr-03 6:10
gmlnd28-Apr-03 6:10 
AnswerRe: How to read command line parameters Pin
Hans Dietrich28-Apr-03 7:30
mentorHans Dietrich28-Apr-03 7:30 
GeneralRe: How to read command line parameters Pin
gmlnd28-Apr-03 7:43
gmlnd28-Apr-03 7:43 
GeneralRe: How to read command line parameters Pin
David Crow28-Apr-03 9:50
David Crow28-Apr-03 9:50 
Generaldifference between two CTime objects in days Pin
naradaji28-Apr-03 5:39
naradaji28-Apr-03 5:39 
GeneralRe: difference between two CTime objects in days Pin
João Paulo Figueira28-Apr-03 6:00
professionalJoão Paulo Figueira28-Apr-03 6:00 
GeneralRe: difference between two CTime objects in days Pin
Anonymous28-Apr-03 20:45
Anonymous28-Apr-03 20:45 
QuestionPIDLs persistent? Pin
Jamie Parent28-Apr-03 5:08
Jamie Parent28-Apr-03 5:08 
Generalcalling obejct's operation in exe from dll Pin
Member 23369528-Apr-03 4:21
Member 23369528-Apr-03 4:21 
GeneralRe: calling obejct's operation in exe from dll Pin
valikac28-Apr-03 8:28
valikac28-Apr-03 8:28 
GeneralRe: calling obejct's operation in exe from dll Pin
Member 23369528-Apr-03 21:27
Member 23369528-Apr-03 21:27 
GeneralRe: calling obejct's operation in exe from dll Pin
John R. Shaw28-Apr-03 16:00
John R. Shaw28-Apr-03 16:00 
QuestionHow to initialize MFC app Pin
bob_brown_200028-Apr-03 3:51
bob_brown_200028-Apr-03 3:51 
AnswerRe: How to initialize MFC app Pin
jmkhael28-Apr-03 3:54
jmkhael28-Apr-03 3:54 
AnswerRe: How to initialize MFC app Pin
David Crow28-Apr-03 4:04
David Crow28-Apr-03 4:04 
AnswerRe: How to initialize MFC app Pin
Joan M28-Apr-03 4:16
professionalJoan M28-Apr-03 4:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.