Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Lucian Ilea
  Where is Lucian Ilea?
 Alba Iulia
 Romania
 Lucian Ilea
 To: Yousfi Benameur
  Where is Yousfi Benameur?
 El Bayadh
 Algeria
 Yousfi Benameur
 Tags
Subject: RE: Error loading printer driver
Thread ID: 208549 Message ID: 209366 # Views: 2 # Ratings: 0
Version: Visual FoxPro 9 SP2 Category: Reports and Printers
Date: Saturday, December 27, 2008 10:44:49 PM         
   


> > Hello,
> >
> > When I issue the command presented below on a computer with no printer installed, I get the "1958 - Error loading printer driver" error. What can I do? I want the user to be able to view the report even if he cannot print it.
> >
> >
REPORT FORM My_report.frx NOCONSOLE TO PRINTER PROMPT NODIALOG PREVIEW OBJECT TYPE 1

> >
> > Thank you.
> >
> > All best,
> > Lucian
>
> Hi
> you can bypass that by this code. If there is at least one printer the code is executed else not executed.
>
> IF APRINTERS(gaPrinters) > 0  
>  REPORT FORM My_report.frx NOCONSOLE TO PRINTER PROMPT NODIALOG PREVIEW OBJECT TYPE 1
> ELSE  
>    WAIT WINDOW 'there is no available printers.'
> ENDIF
> 

> regards


Thank you. But is there a way of installing a printer (any printer) using code?

All best,
Lucian Ilea

PS: Happy holydays to you and your families

ENTIRE THREAD

Error loading printer driver Posted by Lucian Ilea @ 12/19/2008 1:02:09 PM
RE: Error loading printer driver Posted by Borislav Borissov @ 12/19/2008 1:05:42 PM
RE: Error loading printer driver Posted by Zeyad Jammal @ 12/21/2008 1:00:12 PM
RE: Error loading printer driver Posted by Yousfi Benameur @ 12/21/2008 3:31:30 PM
RE: Error loading printer driver Posted by Lucian Ilea @ 12/27/2008 10:44:49 PM
RE: Error loading printer driver Posted by Yousfi Benameur @ 12/28/2008 10:40:14 PM
RE: Error loading printer driver Posted by Jun Tangunan @ 12/21/2008 11:48:11 PM