PC Review


Reply
Thread Tools Rate Thread

Call print dialogue box

 
 
Ian
Guest
Posts: n/a
 
      6th Nov 2007
Is it possible to have a button on a form which calls up the Windows Print
dialogue box?

We have a database which has a Print button on the input form. It prints 1
copy to the default printer. Normally 3 copies are required, but this could
be any number between 1 and 4. This sin't a big problem as the user can
click the button as many times as required. More of a problem is that a PDF
copy is sometimes required. This currently involves the user changing the
default printer in Windows, then changing it back afterwards. This is a
little too complicated for some of the users.

Any ideas?

Ian


 
Reply With Quote
 
 
 
 
RoyVidar
Guest
Posts: n/a
 
      6th Nov 2007
Ian wrote:
> Is it possible to have a button on a form which calls up the Windows Print
> dialogue box?
>
> We have a database which has a Print button on the input form. It prints 1
> copy to the default printer. Normally 3 copies are required, but this could
> be any number between 1 and 4. This sin't a big problem as the user can
> click the button as many times as required. More of a problem is that a PDF
> copy is sometimes required. This currently involves the user changing the
> default printer in Windows, then changing it back afterwards. This is a
> little too complicated for some of the users.
>
> Any ideas?
>
> Ian


Try

DoCmd.RunCommand acCmdPrint

--
Roy-Vidar
 
Reply With Quote
 
Pieter Wijnen
Guest
Posts: n/a
 
      6th Nov 2007
Or hit Ctrl + P

Pieter

"RoyVidar" <(E-Mail Removed)> wrote in message
news:47307e82$0$13724$(E-Mail Removed)...
> Ian wrote:
>> Is it possible to have a button on a form which calls up the Windows
>> Print dialogue box?
>>
>> We have a database which has a Print button on the input form. It prints
>> 1 copy to the default printer. Normally 3 copies are required, but this
>> could be any number between 1 and 4. This sin't a big problem as the user
>> can click the button as many times as required. More of a problem is that
>> a PDF copy is sometimes required. This currently involves the user
>> changing the default printer in Windows, then changing it back
>> afterwards. This is a little too complicated for some of the users.
>>
>> Any ideas?
>>
>> Ian

>
> Try
>
> DoCmd.RunCommand acCmdPrint
>
> --
> Roy-Vidar



 
Reply With Quote
 
Ian
Guest
Posts: n/a
 
      6th Nov 2007
Hi Roy

I assume this needs to go in a VBA module, but I couldn't figure out what
else was needed, but you did point me in the right direction. In the end I
discovered that the macro called by the button had a step calling PrintOut.
I changed this to RunCommand and set the command to Print. This calls the
Print dialogue up.

Thanks for the pointer.

Ian

"RoyVidar" <(E-Mail Removed)> wrote in message
news:47307e82$0$13724$(E-Mail Removed)...
> Ian wrote:
>> Is it possible to have a button on a form which calls up the Windows
>> Print dialogue box?
>>
>> We have a database which has a Print button on the input form. It prints
>> 1 copy to the default printer. Normally 3 copies are required, but this
>> could be any number between 1 and 4. This sin't a big problem as the user
>> can click the button as many times as required. More of a problem is that
>> a PDF copy is sometimes required. This currently involves the user
>> changing the default printer in Windows, then changing it back
>> afterwards. This is a little too complicated for some of the users.
>>
>> Any ideas?
>>
>> Ian

>
> Try
>
> DoCmd.RunCommand acCmdPrint
>
> --
> Roy-Vidar



 
Reply With Quote
 
Ian
Guest
Posts: n/a
 
      6th Nov 2007
Thanks Pieter. Unfortunately this wouldn't work. 1. because I need the Print
dialogue to be called up on clicking the button (can't rely on users to
remember key combinations, anyway) and 2. one thing I forgot to mention in
my original post is that the Print button doesn't print out what's on
screen. It prints out another form which uses data entered on the input
form.

Thanks for the pointer, though. I didn't know about Ctrl + P. I can think of
a number of situations wherethat will come in handy.

Ian

"Pieter Wijnen"
<(E-Mail Removed)>
wrote in message news:e$(E-Mail Removed)...
> Or hit Ctrl + P
>
> Pieter
>
> "RoyVidar" <(E-Mail Removed)> wrote in message
> news:47307e82$0$13724$(E-Mail Removed)...
>> Ian wrote:
>>> Is it possible to have a button on a form which calls up the Windows
>>> Print dialogue box?
>>>
>>> We have a database which has a Print button on the input form. It prints
>>> 1 copy to the default printer. Normally 3 copies are required, but this
>>> could be any number between 1 and 4. This sin't a big problem as the
>>> user can click the button as many times as required. More of a problem
>>> is that a PDF copy is sometimes required. This currently involves the
>>> user changing the default printer in Windows, then changing it back
>>> afterwards. This is a little too complicated for some of the users.
>>>
>>> Any ideas?
>>>
>>> Ian

>>
>> Try
>>
>> DoCmd.RunCommand acCmdPrint
>>
>> --
>> Roy-Vidar

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Print issue with print dialogue Ian Microsoft Access 0 8th Nov 2007 04:48 PM
how do i print a dialogue box? =?Utf-8?B?anVsaWVq?= Microsoft Word Document Management 1 5th May 2005 01:10 PM
print dialogue box DS Microsoft Outlook 2 28th Apr 2005 05:03 PM
how can I add a print dialogue? Rob Microsoft Excel Programming 2 5th Feb 2005 10:11 PM
Print dialogue box John G Windows XP Basics 2 28th Jul 2003 09:57 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:07 PM.