Click here to Skip to main content
16,007,814 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: The differences between "class" and "struct" in C++ Pin
Bob Stanneveld3-May-05 22:27
Bob Stanneveld3-May-05 22:27 
GeneralRe: The differences between "class" and "struct" in C++ Pin
Anonymous3-May-05 22:55
Anonymous3-May-05 22:55 
GeneralRe: The differences between "class" and "struct" in C++ Pin
Bob Stanneveld4-May-05 0:18
Bob Stanneveld4-May-05 0:18 
GeneralSpecifying Printer Output Tray Pin
RYU^^3-May-05 19:15
RYU^^3-May-05 19:15 
GeneralRe: Specifying Printer Output Tray Pin
RYU^^4-May-05 19:39
RYU^^4-May-05 19:39 
GeneralCDC::StartPage() and CDC::EndPage() Pin
RYU^^3-May-05 19:11
RYU^^3-May-05 19:11 
GeneralRe: CDC::StartPage() and CDC::EndPage() Pin
Larry J. Siddens4-May-05 4:50
Larry J. Siddens4-May-05 4:50 
GeneralRe: CDC::StartPage() and CDC::EndPage() Pin
RYU^^4-May-05 13:26
RYU^^4-May-05 13:26 
Hi Larry,

Sorry if I wasn't make my question clear. What happen is that the page is start printing when it reaches CDC::EndDoc(). What I want is that the page starting to print as soon as it reaches CDC::EndPage() (NOT CDC::EndDoc()). Therefore if I have 10000pages job, I do NOT want to wait until it completely spooled before it starts printing.

The only way that I know to do this is using StartPagePrinter() and EndPagePrinter(). Of course, I need to get the printer handle by calling OpenPrinter() to get the printer handle, StartDocPrinter() before calling StartPagePrinter() and EndPagePrinter(), and finally EndDocPrinter() to indicate end of print job.

With this way, as soon as it reaches EndPagePrinter(), it will start printing. That means if I have 10000pages job, I can start printing as soon as the first page is completely spooled. (Please note that this will depend of the setting of your printer. Set your printer setting to "Start printing immediately").

Since my application is using a CDC to draw rectangle, etc... I do not want to change my application from using CDC.

Thanks for any help again in advanced...

Cheers Smile | :)
GeneralRe: CDC::StartPage() and CDC::EndPage() Pin
Larry J. Siddens5-May-05 4:45
Larry J. Siddens5-May-05 4:45 
GeneralRe: CDC::StartPage() and CDC::EndPage() Pin
RYU^^6-May-05 15:00
RYU^^6-May-05 15:00 
GeneralAfxGetAppName() equivalent Pin
Imtiaz Murtaza3-May-05 18:50
Imtiaz Murtaza3-May-05 18:50 
GeneralRe: AfxGetAppName() equivalent Pin
Christian Graus3-May-05 19:17
protectorChristian Graus3-May-05 19:17 
GeneralRe: AfxGetAppName() equivalent Pin
David Crow4-May-05 3:15
David Crow4-May-05 3:15 
GeneralRe: AfxGetAppName() equivalent Pin
Michael Dunn4-May-05 16:37
sitebuilderMichael Dunn4-May-05 16:37 
GeneralObjectARX ?. please someone help Pin
Ista3-May-05 18:28
Ista3-May-05 18:28 
GeneralRe: ObjectARX ?. please someone help Pin
Christian Graus3-May-05 18:54
protectorChristian Graus3-May-05 18:54 
GeneralRe: ObjectARX ?. please someone help Pin
Ista4-May-05 13:15
Ista4-May-05 13:15 
GeneralRe: ObjectARX ?. please someone help Pin
Joel Lucsy4-May-05 13:38
Joel Lucsy4-May-05 13:38 
GeneralChange the property of a menu Pin
houari_id3-May-05 17:23
houari_id3-May-05 17:23 
GeneralRe: Change the property of a menu Pin
Christian Graus3-May-05 18:07
protectorChristian Graus3-May-05 18:07 
GeneralRe: Change the property of a menu Pin
David Crow4-May-05 3:09
David Crow4-May-05 3:09 
Generalsyntax error C2146 Pin
mikelon3-May-05 15:03
mikelon3-May-05 15:03 
GeneralRe: syntax error C2146 Pin
Christian Graus3-May-05 15:26
protectorChristian Graus3-May-05 15:26 
GeneralRe: syntax error C2146 Pin
Bob Stanneveld3-May-05 22:30
Bob Stanneveld3-May-05 22:30 
GeneralRe: syntax error C2146 Pin
David Crow4-May-05 3:07
David Crow4-May-05 3:07 

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.