How I print from the begging of the page?

Hello everybody,

I am working on an MFC project with only native code.

I am using CDC to print.

My problem is that I cannot set printer page edges exactly to 0.

For example if I give the commad:

Code Snippet

CDC dc;

dc.TextOut(0,0, "Test");

The word "Test" will be printed entire but not from the begining of the page.

In this case I want the word "Test" to be printed from the begging of the page (I do not care if it's first letters wont print).

How I will do this, by a DEVMODE variable or by a dc function?

Thank you a lot for your time and response.

[825 byte] By [gdrivas] at [2008-1-9]
# 1
Please redirect this question to http://msdn.microsoft.com/newsgroups/default.aspx?dg=microsoft.public.vc.mfc&lang=en&cr=US. With most MFC related questions, you are more likely to get good help there.

Thanks!

einaros at 2007-10-3 > top of Msdn Tech,Feedback for forums and MSDN websites,Off-Topic Posts (Do Not Post Here)...