Only one printer shown in CPrintDlg Combobox

  • Thread starter Rincewind.Morpork
  • Start date
R

Rincewind.Morpork

Hi,
I've got a serious Problem with the CPrintDlg. I'm starting the Dialog
with the following Code:

/*
CPrintDialog *printDlg = new CPrintDialog(FALSE, PD_ALLPAGES |
PD_RETURNDC, NULL);
printDlg->m_pd.nMinPage = printDlg->m_pd.nMaxPage = 1;
printDlg->m_pd.nFromPage = printDlg->m_pd.nToPage = 1;
printDlg->DoModal();
m_PrinterName.SetWindowText(printDlg->GetDeviceName());
m_pDataHold->m_PrinterName = printDlg->GetDeviceName();
*/

The Problem is, that this code works fine for most of the Mashines it
is used on, but on one Computer there is only the first Printer in the
Dropdownlist shown. Other Programs on this Computer such as Office
have all the available Printers in their List so its definitely a
Problem with this specific Program. I've already tried to readjust
this Problem on my own machine but its always working correctly here.

I hope its specific enough, if not, just tell me.
Marcus
 
S

Salt_Peter

Hi,
I've got a serious Problem with the CPrintDlg. I'm starting the Dialog
with the following Code:

/*
CPrintDialog *printDlg = new CPrintDialog(FALSE, PD_ALLPAGES |
PD_RETURNDC, NULL);
printDlg->m_pd.nMinPage = printDlg->m_pd.nMaxPage = 1;
printDlg->m_pd.nFromPage = printDlg->m_pd.nToPage = 1;
printDlg->DoModal();
m_PrinterName.SetWindowText(printDlg->GetDeviceName());
m_pDataHold->m_PrinterName = printDlg->GetDeviceName();
*/

The Problem is, that this code works fine for most of the Mashines it
is used on, but on one Computer there is only the first Printer in the
Dropdownlist shown. Other Programs on this Computer such as Office
have all the available Printers in their List so its definitely a
Problem with this specific Program. I've already tried to readjust
this Problem on my own machine but its always working correctly here.

I hope its specific enough, if not, just tell me.
Marcus


Sorry but C++ has no notion of 'dialog', 'dropdownlist' or any class
CPrintDlg.
You might consider reading the FAQ and in particular - the following
section - to determine where you might post your request.
[5.9] Which newsgroup should I post my questions?
http://www.parashift.com/c++-faq-lite/how-to-post.html#faq-5.9
 
R

Rincewind.Morpork

Hi,
I've got a serious Problem with the CPrintDlg. I'm starting the Dialog
with the following Code:
/*
CPrintDialog *printDlg = new CPrintDialog(FALSE, PD_ALLPAGES |
PD_RETURNDC, NULL);
printDlg->m_pd.nMinPage = printDlg->m_pd.nMaxPage = 1;
printDlg->m_pd.nFromPage = printDlg->m_pd.nToPage = 1;
printDlg->DoModal();
m_PrinterName.SetWindowText(printDlg->GetDeviceName());
m_pDataHold->m_PrinterName = printDlg->GetDeviceName();
*/
The Problem is, that this code works fine for most of the Mashines it
is used on, but on one Computer there is only the first Printer in the
Dropdownlist shown. Other Programs on this Computer such as Office
have all the available Printers in their List so its definitely a
Problem with this specific Program. I've already tried to readjust
this Problem on my own machine but its always working correctly here.
I hope its specific enough, if not, just tell me.
Marcus

Sorry but C++ has no notion of 'dialog', 'dropdownlist' or any class
CPrintDlg.
You might consider reading the FAQ and in particular - the following
section - to determine where you might post your request.
[5.9] Which newsgroup should I post my questions?http://www.parashift.com/c++-faq-lite/how-to-post.html#faq-5.9

I recognized that too, but at that time i've already postet my problem
here and since then i wasn't able to remove it. Is there a way i can
remove it myself or does it need an admin to delete it?
 
V

Victor Bazarov

Hi,
I've got a serious Problem with the CPrintDlg. I'm starting the
[..]
I hope its specific enough, if not, just tell me.
Marcus

Sorry but C++ has no notion of 'dialog', 'dropdownlist' or any class
CPrintDlg.
You might consider reading the FAQ and in particular - the following
section - to determine where you might post your request.
[5.9] Which newsgroup should I post my
questions?http://www.parashift.com/c++-faq-lite/how-to-post.html#faq-5.9

I recognized that too, but at that time i've already postet my problem
here and since then i wasn't able to remove it. Is there a way i can
remove it myself or does it need an admin to delete it?

Not sure what interface you're using, some of them allow you to cancel
your message (which creates another message that servers process in
a special way). Unfortunately, many servers are malconfigured now to
disallow cancellations, so it's often easier to just let it be.

V
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,184
Messages
2,570,975
Members
47,532
Latest member
SunnyGarve

Latest Threads

Top