
28-Jul-2006, 08:37 AM
|
 | Guest | | | | | | | | |
| Re: VB Code to print to .pdf It should be the same
Pieter
"Jennifer Cali" wrote in message
news:AE53F29A-5645-412C-9E62-81AD6422390D@microsoft.com... Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/information-technology/13344-vb-code-to-print-to-pdf.html
> Would the name of the printer be the name I see when I select the dropdown
> or
> is there another "name" that is recoginized by the computer?
> --
> Thank you! - Jennifer
>
>
> "UpRider" wrote:
> Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=13344
>> Jennifer, the below code works for me. You don't have to mess around
>> with
>> changing the default printer and then changing it back again. The code
>> changes the target printer for this report this time. Works for any
>> report,
>> any printer (Not tested for networked printers). Access 2003.
>> HTH, UpRider
>>
>> DoCmd.OpenReport "YourReportName", acViewPreview
>> Application.Reports("YourReportName").Printer =
>> Application.Printers("YourPDFPrinter")
>>
>> "Jennifer Cali" wrote in message
>> news:039B7833-90A2-4272-A54D-D23B0EDA8D2F@microsoft.com...
>> >I want to print the file to .pdf, but am not sure how to code the VB to
>> >do
>> > it. Right now the print is going to the default printer; I need to
>> > change
>> > the
>> > printer that it prints to.
>> > --
>> > Thank you! - Jennifer
>>
>>
>>
--
----------------------------------------
I am using the free version of SPAMfighter for private users.
It has removed 4231 spam emails to date.
Paying users do not have this message in their emails.
Get the free SPAMfighter here: http://www.spamfighter.com/len |