473,473 Members | 1,645 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Only one printer shown in CPrintDlg Combobox

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
Jan 7 '08 #1
3 1427
On Jan 7, 5:59 am, Rincewind.Morp...@web.de wrote:
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-lit...t.html#faq-5.9
Jan 7 '08 #2
On 7 Jan., 13:21, Salt_Peter <pj_h...@yahoo.comwrote:
On Jan 7, 5:59 am, Rincewind.Morp...@web.de wrote:
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-lit...t.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?
Jan 7 '08 #3
Ri***************@web.de wrote:
On 7 Jan., 13:21, Salt_Peter <pj_h...@yahoo.comwrote:
>On Jan 7, 5:59 am, Rincewind.Morp...@web.de wrote:
>>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-lit...t.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
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
Jan 7 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: gerb | last post by:
Hello, I realise this is not a pure Javascript question, and that VBscript is probably involved at some point, though not as much as I fear. If you opened this item looking for a pute Javascript...
1
by: D Wigg | last post by:
Hello all, I'm using VB6.0 to write an application which prints a report. The problem I have occurs when I try to allow the user to select the number of copies and which pages to print. Using...
0
by: sengkok | last post by:
hi, i have written a printer job monitoring program as the code shown below , a timer is used to call this function every second . i have a network printer tat attached to my pc. i facing a...
1
by: jay | last post by:
Hello, The problem: When in the print screen to print an Access 97 report, in the printer drop-down list, there is only one printer shown, but it is not the printer I want to print to. There...
5
by: Someone | last post by:
I have a printer friendly page where I am using a stylesheet and the attribute and value - media="print" - as below: <link href="../page_print.css" rel="stylesheet" type="text/css"...
1
by: Bob | last post by:
Greetings, I have a written an app that checks to see what printers are available to a machine, it then populates a combobox and allows the user to choose any of the printers. Basically I...
0
by: Richard | last post by:
Suppose ClassStudents has Class, Student, ... and a student is to be replaced by a different one in a different Class. If the student is shown in a combobox, how would the row source be...
6
convexcube
by: convexcube | last post by:
Hello Everyone, I have a form setup with a combo box that displays a list of the installed printers using code from this article. On a button called cmdPrint I have placed code in the OnClick...
4
by: MLH | last post by:
How do I ensure my reports are being printed in max resolution of 1200dpi ? That is, can Access control the setting?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.