msvisual.com Forum Index
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Page Setup Dialog - Printer button

 
Post new topic   Reply to topic    msvisual.com Forum Index -> VB WinAPI
Author Message
Sergio Martins



Joined: 29 Jan 2008
Posts: 10

PostPosted: Tue Jan 29, 2008 7:11 am    Post subject: Page Setup Dialog - Printer button Reply with quote

Hi.
I have an application developed with Visual Basic 6.0 that use the following
API:

Public Declare Function PAGESETUPDLG Lib "comdlg32.dll" Alias
"PageSetupDlgA" (pPagesetupdlg As PAGESETUPDLG) As Long

This API let me see and use the page setup dialog, where exists a Printer
button that let select a printer.

My problem is in Windows Vista machines, this button is not display.

My questions are:
1. Why this button is not display in Windows Vista?
2. There is a workaround to that behaviour?

Best regards,
Sérgio Martins

Archived from group: microsoft>public>vb>winapi
Back to top
View user's profile Send private message
Mark Yudkin



Joined: 04 Oct 2007
Posts: 198

PostPosted: Sun Feb 10, 2008 2:37 pm    Post subject: Re: Page Setup Dialog - Printer button Reply with quote

Without seeing your code all I can do is make a wild and useless guess. Post
the relevant section of you code.

"Sergio Martins" wrote in message @microsoft.com...
> Hi.
> I have an application developed with Visual Basic 6.0 that use the
> following
> API:
>
> Public Declare Function PAGESETUPDLG Lib "comdlg32.dll" Alias
> "PageSetupDlgA" (pPagesetupdlg As PAGESETUPDLG) As Long
>
> This API let me see and use the page setup dialog, where exists a Printer
> button that let select a printer.
>
> My problem is in Windows Vista machines, this button is not display.
>
> My questions are:
> 1. Why this button is not display in Windows Vista?
> 2. There is a workaround to that behaviour?
>
> Best regards,
> Sérgio Martins

Back to top
View user's profile Send private message
Display posts from previous:   
Related Topics:
Detect if dialog page is active and button enabled Background: I have an elaborate Excel program I developed for work used for geotechnical analysis and mass entry of test info. This was developed because of limitations of our network-based program (*.exe) that does much the same. I need to use the excel

Change printer name in printer dialog using API in runtime My default printer is kyosera 1000. I use following code to select the printer from a print dialog in external application: hMain = "Print") hChild = 0, "ComboBox", vbNullString) nret = CB_FINDS

Possible to add a button to an API dialog? Is there a way to add a button onto the dialog and tap into the dialog's events from the calling program? If not, can anybody point me to some VB code which simulates the dialog?

Printer Dialog Box Using VB6.0 SP5 on XP-Pro SP2 I would like not to use the CommonDialog Box Control if there is an API that will allow me to open the printer dialog box, and print the same as I would with the control. Is there an API for this? Thanks in advance bob robert

Problem with Custom Page Size in Printer Object (ResetDC Api I have created a Custom Page Size(100mm X 160mm). I have used the ResetDC api to set it back to DEVMODE making this as the default paper source. But the change is not affecting. The printer is printing with the default paper source. Will ResetDC makes my
Post new topic   Reply to topic    msvisual.com Forum Index -> VB WinAPI All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group