A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Preview, print or email without printer installed



 
 
Thread Tools Display Modes
  #1  
Old July 3rd, 2004, 01:34 AM
Silvester
external usenet poster
 
Posts: n/a
Default Preview, print or email without printer installed

I distribute an A2000 app. End users can preview, print or email reports in
access snapshot format.

In stray cases end users do not have printers installed on their machine.
For emailing I use the line

DoCmd.SendObject acSendReport, stDocName, "Snapshot Format"

In such cases I get error 2202, no printer installed even if I try to email
the report ...

Is there any workaround to this like maybe install a phantom printer using
the app setup in such cases ?

Thanks for any help.



  #2  
Old July 3rd, 2004, 02:46 AM
M.L. Sco Scofield
external usenet poster
 
Posts: n/a
Default Preview, print or email without printer installed

You can install the printer driver for any printer that you need even if the
printer is not connected to the computer.

This will make Access happy.

I do it all the time for printers that my clients have but I don't.

Good luck.

Sco

"Silvester" wrote in message
...
I distribute an A2000 app. End users can preview, print or email reports

in
access snapshot format.

In stray cases end users do not have printers installed on their machine.
For emailing I use the line

DoCmd.SendObject acSendReport, stDocName, "Snapshot Format"

In such cases I get error 2202, no printer installed even if I try to

email
the report ...

Is there any workaround to this like maybe install a phantom printer using
the app setup in such cases ?

Thanks for any help.





  #3  
Old July 4th, 2004, 11:32 AM
Al Borges
external usenet poster
 
Posts: n/a
Default Preview, print or email without printer installed

Hi Silvester:

I agree wholeheartedly with Sco- actually Windows in general hates to not
have at least 1 default printer! I would probably include in your project's
Windows installer routine the capability of adding a printer object if none
exists... that would neutralize the problem from the getgo.

The only author that has tackeled this within the VBA environment has been
Ken Getz et al. I have 3 of his books that have mentioned how to handle API
printer events, which before Access 2002 were difficult to set up. The
change default printer code, though, is the briefest/easiest to work with.
It will involve code s.a.:

Sub SetDefaultPrinter()
Dim devs As Devices
Set devs = New Devices
Set devs.CurrentDevice = devs("HP LaserJet 5P")
Set devs = Nothing
End Sub

This should do it (together with the supporting modules mentioned in his
books)... Just go over and read his best book: "Access 2000 Developer's
Handbook Volume 1: Desktop Edition".

Regards,
Al

"Silvester" wrote in message
...
I distribute an A2000 app. End users can preview, print or email reports

in
access snapshot format.

In stray cases end users do not have printers installed on their machine.
For emailing I use the line

DoCmd.SendObject acSendReport, stDocName, "Snapshot Format"

In such cases I get error 2202, no printer installed even if I try to

email
the report ...

Is there any workaround to this like maybe install a phantom printer using
the app setup in such cases ?

Thanks for any help.





  #4  
Old July 4th, 2004, 11:32 AM
Al Borges
external usenet poster
 
Posts: n/a
Default Preview, print or email without printer installed

Hi Silvester:

I agree wholeheartedly with Sco- actually Windows in general hates to not
have at least 1 default printer! I would probably include in your project's
Windows installer routine the capability of adding a printer object if none
exists... that would neutralize the problem from the getgo.

The only author that has tackeled this within the VBA environment has been
Ken Getz et al. I have 3 of his books that have mentioned how to handle API
printer events, which before Access 2002 were difficult to set up. The
change default printer code, though, is the briefest/easiest to work with.
It will involve code s.a.:

Sub SetDefaultPrinter()
Dim devs As Devices
Set devs = New Devices
Set devs.CurrentDevice = devs("HP LaserJet 5P")
Set devs = Nothing
End Sub

This should do it (together with the supporting modules mentioned in his
books)... Just go over and read his best book: "Access 2000 Developer's
Handbook Volume 1: Desktop Edition".

Regards,
Al

"M.L. Sco Scofield" wrote in message
...
You can install the printer driver for any printer that you need even if

the
printer is not connected to the computer.

This will make Access happy.

I do it all the time for printers that my clients have but I don't.

Good luck.

Sco

"Silvester" wrote in message
...
I distribute an A2000 app. End users can preview, print or email reports

in
access snapshot format.

In stray cases end users do not have printers installed on their

machine.
For emailing I use the line

DoCmd.SendObject acSendReport, stDocName, "Snapshot Format"

In such cases I get error 2202, no printer installed even if I try to

email
the report ...

Is there any workaround to this like maybe install a phantom printer

using
the app setup in such cases ?

Thanks for any help.







 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
can't open email Jeff Philips Outlook Express 13 June 27th, 2004 07:35 PM
Header date format changes in Print Preview CRR Mailmerge 13 June 17th, 2004 08:18 PM
print labels on matricial printer Daniela Mailmerge 0 May 17th, 2004 03:01 PM
cannot print with new printer Tom G Publisher 3 May 14th, 2004 04:24 PM
Normal View & Print Preview Brad Worksheet Functions 0 October 8th, 2003 07:41 PM


All times are GMT +1. The time now is 02:56 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.