Click here to Skip to main content
15,890,557 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: transferring control between 2 programs? Pin
IlanTal14-Jun-07 8:15
IlanTal14-Jun-07 8:15 
QuestionCreating array/object at runtime. Pin
Sameer_Thakur14-Jun-07 4:07
Sameer_Thakur14-Jun-07 4:07 
AnswerRe: Creating array/object at runtime. Pin
David Crow14-Jun-07 4:47
David Crow14-Jun-07 4:47 
AnswerRe: Creating array/object at runtime. Pin
Mark Salsbery14-Jun-07 7:28
Mark Salsbery14-Jun-07 7:28 
Questionwindow caption Pin
Neeraj Sinha14-Jun-07 3:56
Neeraj Sinha14-Jun-07 3:56 
QuestionRe: window caption Pin
Nelek14-Jun-07 19:46
protectorNelek14-Jun-07 19:46 
QuestionGetting Office language settings in MFC Pin
Tarek Jabri14-Jun-07 3:23
Tarek Jabri14-Jun-07 3:23 
QuestionPrinting html displayed in WebBrowser2 Pin
SgLife14-Jun-07 2:21
SgLife14-Jun-07 2:21 
I am creating a dialog based application with a CWebBrowser2 control. I need to print the page displayed in the browser in landscape or portrait format without displaying the PrintDialog. Landscape or Portrait is decided by some other inputs.

I have two methods in my App class for setting the orientation and for starting the printing. Now the probelm for me is how to get the content in the browser or in other words how to get the html displayed in the browser? what to do after a m_Browser.GetDocument() call ?? I dont know how I can associate the html with DOCINFO structure ( setting the file name does not work of course). Landscape/Portrait modes and a dc.TextOut() for a hardcoded string works fine. But how to print the html displayed in the browser?

Please note: setting the orientation and using the ExecWb() function does not work because I am always getting portrait mode only.

Excpecting your valuable comments. Thanks.
AnswerRe: Printing html displayed in WebBrowser2 Pin
SgLife14-Jun-07 14:42
SgLife14-Jun-07 14:42 
QuestionC++ Exception Pin
T.RATHA KRISHNAN14-Jun-07 2:19
T.RATHA KRISHNAN14-Jun-07 2:19 
AnswerRe: C++ Exception Pin
SandipG 14-Jun-07 2:25
SandipG 14-Jun-07 2:25 
AnswerRe: C++ Exception Pin
prasad_som14-Jun-07 2:51
prasad_som14-Jun-07 2:51 
QuestionRe: C++ Exception Pin
T.RATHA KRISHNAN14-Jun-07 2:54
T.RATHA KRISHNAN14-Jun-07 2:54 
AnswerRe: C++ Exception Pin
prasad_som14-Jun-07 3:02
prasad_som14-Jun-07 3:02 
QuestionRe: C++ Exception Pin
T.RATHA KRISHNAN14-Jun-07 3:09
T.RATHA KRISHNAN14-Jun-07 3:09 
AnswerRe: C++ Exception Pin
Russell'14-Jun-07 4:12
Russell'14-Jun-07 4:12 
QuestionRe: C++ Exception Pin
T.RATHA KRISHNAN15-Jun-07 0:19
T.RATHA KRISHNAN15-Jun-07 0:19 
AnswerRe: C++ Exception Pin
Russell'15-Jun-07 0:52
Russell'15-Jun-07 0:52 
QuestionRe: C++ Exception Pin
T.RATHA KRISHNAN15-Jun-07 1:39
T.RATHA KRISHNAN15-Jun-07 1:39 
AnswerRe: C++ Exception Pin
Russell'15-Jun-07 2:15
Russell'15-Jun-07 2:15 
QuestionRe: C++ Exception Pin
T.RATHA KRISHNAN15-Jun-07 2:50
T.RATHA KRISHNAN15-Jun-07 2:50 
AnswerRe: C++ Exception Pin
Russell'15-Jun-07 3:19
Russell'15-Jun-07 3:19 
QuestionFuction prototype in .C or .H Pin
krishnakumar7514-Jun-07 2:06
krishnakumar7514-Jun-07 2:06 
AnswerRe: Fuction prototype in .C or .H Pin
James R. Twine14-Jun-07 2:18
James R. Twine14-Jun-07 2:18 
AnswerRe: Fuction prototype in .C or .H Pin
Russell'14-Jun-07 4:15
Russell'14-Jun-07 4:15 

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.