Click here to Skip to main content
15,906,816 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: VC Project File Format Pin
Carlos Antollini30-Jul-01 5:59
Carlos Antollini30-Jul-01 5:59 
GeneralRe: VC Project File Format Pin
Steve Thresher30-Jul-01 6:41
Steve Thresher30-Jul-01 6:41 
GeneralRe: VC Project File Format Pin
J Patel30-Jul-01 7:04
J Patel30-Jul-01 7:04 
GeneralRe: VC Project File Format Pin
J Patel30-Jul-01 10:52
J Patel30-Jul-01 10:52 
GeneralRe: VC Project File Format Pin
Tomasz Sowinski30-Jul-01 7:17
Tomasz Sowinski30-Jul-01 7:17 
GeneralRe: VC Project File Format Pin
Steve Thresher30-Jul-01 22:44
Steve Thresher30-Jul-01 22:44 
GeneralCRichEditCtrl & EM_CHARFROMPOS Pin
AJ12330-Jul-01 5:14
AJ12330-Jul-01 5:14 
GeneralDialog Printing .... Again!!! Pin
Michael Martin30-Jul-01 4:16
professionalMichael Martin30-Jul-01 4:16 
OK, before everyone gets the sh*ts and ignores me I have moved further along than last time I posted about this. Big Grin | :-D

I have read Chris Maunder's article and Knowledge Base Q133275, and have text printing in the middle of the page. Problem is I want to be able to have headers, footers and formatting.

I assume \n and \t will give me newlines and tabs but how do I set the tab stops?

I created an empty SDI application to look at how the printing is done. Looking at the message maps in the View, I found CView::OnFilePrint being called. This is not a member function of the SDI application nor could I find it in MSDN. What is it and what does it do?

How do I build the page in memory with formatting before printing?
How do I get Print Preview in my appliaiton?

My application is dialog based, the data to print is being retrieved from a database and in about 43 hours I have to demonstrate this functionality.

All help greatly appreciated.


Michael Martin
Pegasystems Pty Ltd
Australia
martm@pegasystems.com
+61 413-004-018
GeneralRe: Dialog Printing .... Again!!! Pin
Tomasz Sowinski30-Jul-01 5:25
Tomasz Sowinski30-Jul-01 5:25 
Generalswitch and case Pin
Gérald Mercet30-Jul-01 4:15
Gérald Mercet30-Jul-01 4:15 
GeneralRe: switch and case Pin
Carlos Antollini30-Jul-01 4:38
Carlos Antollini30-Jul-01 4:38 
GeneralScroll bars Pin
Nick Armstrong30-Jul-01 4:10
Nick Armstrong30-Jul-01 4:10 
GeneralRe: Scroll bars Pin
Oliver Anhuth31-Jul-01 0:33
Oliver Anhuth31-Jul-01 0:33 
GeneralNaming sub-menus dynamically Pin
mr200330-Jul-01 3:12
mr200330-Jul-01 3:12 
GeneralNT Service problem Pin
yamini30-Jul-01 2:24
yamini30-Jul-01 2:24 
GeneralRe: NT Service problem Pin
Martin Ziacek30-Jul-01 3:03
Martin Ziacek30-Jul-01 3:03 
GeneralRe: NT Service problem Pin
yamini31-Jul-01 20:44
yamini31-Jul-01 20:44 
GeneralRe: NT Service problem Pin
Martin Ziacek2-Aug-01 8:53
Martin Ziacek2-Aug-01 8:53 
GeneralRe: NT Service problem Pin
Carlos Antollini2-Aug-01 9:43
Carlos Antollini2-Aug-01 9:43 
Generaltree control messages Pin
30-Jul-01 1:59
suss30-Jul-01 1:59 
GeneralRe: tree control messages Pin
Tomasz Sowinski30-Jul-01 2:06
Tomasz Sowinski30-Jul-01 2:06 
GeneralThanks Pin
30-Jul-01 4:53
suss30-Jul-01 4:53 
GeneralRe: Thanks Pin
Tomasz Sowinski30-Jul-01 5:15
Tomasz Sowinski30-Jul-01 5:15 
GeneralListControl Pin
30-Jul-01 0:59
suss30-Jul-01 0:59 
Generalcolor opacity win95+ Pin
Leon30-Jul-01 0:17
Leon30-Jul-01 0:17 

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.