Click here to Skip to main content
15,922,427 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Inheritance Pin
William Burton23-Apr-06 15:16
William Burton23-Apr-06 15:16 
AnswerRe: Inheritance Pin
Stephen Hewitt23-Apr-06 16:09
Stephen Hewitt23-Apr-06 16:09 
QuestionRe: Inheritance Pin
William Burton24-Apr-06 0:18
William Burton24-Apr-06 0:18 
AnswerRe: Inheritance Pin
Stephen Hewitt24-Apr-06 1:38
Stephen Hewitt24-Apr-06 1:38 
GeneralRe: Inheritance Pin
David Crow24-Apr-06 2:59
David Crow24-Apr-06 2:59 
GeneralRe: Inheritance Pin
John R. Shaw29-Apr-06 20:29
John R. Shaw29-Apr-06 20:29 
GeneralRe: Inheritance Pin
David Crow1-May-06 2:51
David Crow1-May-06 2:51 
QuestionPrinter Font Question Pin
JKJKJK23-Apr-06 4:53
JKJKJK23-Apr-06 4:53 
Hi, I have a quick question on the printing:

I have a VC++ 6.0 application that prints labels on the label paper. In my printer (Canon i550), it prints properly within the dimension of the label. The way I print from the application is that I use GetPrinterDC() and attach it to CDC and then do TextOut to print at certain location.

It prints correctly on my printer however when I tried to print on a different printer (Epson), the font became slightly bigger and the contents go out of the specified label area.

What do I do to fix this issue?

Here is the code that print:

CDC dc;
dc.Attach(printdlog.GetPrinterDC());

DOCINFO docinfo;
memset(&docinfo,0,sizeof(docinfo));
docinfo.cbSize = sizeof(DOCINFO);
docinfo.lpszDocName = "Labels"; // document name for the spooler

CFont f;
f.CreateFont(54,0,0,0,100,0,0,0,0,0,0,ANTIALIASED_QUALITY,0,"Arial");
dc.SelectObject(f);

if (dc.StartDoc(&docinfo) > 0)
{
dc.StartPage();
dc.SetMapMode(MM_TEXT);
dc.TextOut(i_Width-120, i_Height, m_Tit);
.
.
.

Thanks for your help,
JK
AnswerRe: Printer Font Question Pin
Blake Miller26-Apr-06 7:46
Blake Miller26-Apr-06 7:46 
Questionhow can i pass a password to a shellexecute() to extract a zip file from my VC++6.0 program Pin
lekshmipriya23-Apr-06 2:49
lekshmipriya23-Apr-06 2:49 
AnswerRe: how can i pass a password to a shellexecute() to extract a zip file from my VC++6.0 program Pin
YaronNir23-Apr-06 3:33
YaronNir23-Apr-06 3:33 
QuestionRe: how can i pass a password to a shellexecute() to extract a zip file from my VC++6.0 program Pin
lekshmipriya23-Apr-06 4:00
lekshmipriya23-Apr-06 4:00 
AnswerRe: how can i pass a password to a shellexecute() to extract a zip file from my VC++6.0 program Pin
YaronNir23-Apr-06 4:09
YaronNir23-Apr-06 4:09 
QuestionRe: how can i pass a password to a shellexecute() to extract a zip file from my VC++6.0 program Pin
lekshmipriya23-Apr-06 5:55
lekshmipriya23-Apr-06 5:55 
AnswerRe: how can i pass a password to a shellexecute() to extract a zip file from my VC++6.0 program Pin
YaronNir23-Apr-06 6:01
YaronNir23-Apr-06 6:01 
AnswerRe: how can i pass a password to a shellexecute() to extract a zip file from my VC++6.0 program Pin
Trollslayer23-Apr-06 6:05
mentorTrollslayer23-Apr-06 6:05 
QuestionRe: how can i pass a password to a shellexecute() to extract a zip file from my VC++6.0 program Pin
David Crow24-Apr-06 3:04
David Crow24-Apr-06 3:04 
QuestionList Box have a error ??? Pin
Surivevoli23-Apr-06 1:32
Surivevoli23-Apr-06 1:32 
AnswerRe: List Box have a error ??? Pin
YaronNir23-Apr-06 2:00
YaronNir23-Apr-06 2:00 
GeneralRe: List Box have a error ??? Pin
Surivevoli23-Apr-06 19:20
Surivevoli23-Apr-06 19:20 
QuestionAbout the Bitmap Transparency Pin
onlysaint23-Apr-06 1:09
onlysaint23-Apr-06 1:09 
AnswerRe: About the Bitmap Transparency Pin
YaronNir23-Apr-06 1:55
YaronNir23-Apr-06 1:55 
QuestionHow to Load Icon Pin
FarPointer23-Apr-06 0:54
FarPointer23-Apr-06 0:54 
AnswerRe: How to Load Icon Pin
YaronNir23-Apr-06 1:57
YaronNir23-Apr-06 1:57 
AnswerRe: How to Load Icon Pin
Hamid_RT23-Apr-06 19:05
Hamid_RT23-Apr-06 19:05 

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.