Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Derrick Bruce
  Where is Derrick Bruce?
 Charlestown
 Indiana - United States
 Derrick Bruce
 To: a rem
  Where is a rem?
 Isabdul
 North Dakota - United Kingdom
 a rem
 Tags
Subject: RE: Printing problem
Thread ID: 228862 Message ID: 228936 # Views: 1 # Ratings: 0
Version: Visual FoxPro 9 SP2 Category: General VFP Topics
Date: Friday, May 22, 2009 5:59:27 PM         
   


> >
> > Think you either need to use the
SET DEVICE TO PRINTER
before the
SET PRINTER ON PROMPT
(depends on the rest of your code if that is needed, especially if it was something from an older version.
> >
> > But, why not get rid of the set printers commands and write the code as
REPORT FORM bojajum.frx NOCONSOLE TO PRINTER PROMPT PREVIEW
to preview or remove the preview to just print.
> >
> > D
>
>
> U meant like this?
>
>
THISFORM.VISIBLE = .F.
> REPORT FORM bojajum.frx NOCONSOLE TO PRINTER PROMPT
> THISFORM.VISIBLE = .T.
> SET PRINTER OFF




Yes - but you don't need the set printer off - Frank eluded to something that causes problems also - on the form designer you sent the screen shot of - go to the properties (right click on the form, select properties) - the first screen toward the bottom will have a check box for saving the printer environment - if that is checked, uncheck and save the form.

ENTIRE THREAD

Printing problem Posted by a rem @ 5/22/2009 9:27:21 AM
RE: Printing problem Posted by Frank Cazabon @ 5/22/2009 3:09:19 PM
RE: Printing problem Posted by a rem @ 5/22/2009 3:50:59 PM
RE: Printing problem Posted by Frank Cazabon @ 5/22/2009 4:06:13 PM
RE: Printing problem Posted by a rem @ 5/22/2009 4:20:40 PM
RE: Printing problem Posted by Frank Cazabon @ 5/22/2009 4:29:04 PM
RE: Printing problem Posted by a rem @ 5/22/2009 5:30:37 PM
RE: Printing problem Posted by Frank Cazabon @ 5/22/2009 5:37:22 PM
RE: Printing problem Posted by a rem @ 5/22/2009 5:47:23 PM
RE: Printing problem Posted by Frank Cazabon @ 5/22/2009 10:01:58 PM
RE: Printing problem Posted by a rem @ 5/23/2009 8:09:50 AM
RE: Printing problem Posted by Frank Cazabon @ 5/23/2009 4:00:59 PM
RE: Printing problem Posted by a rem @ 5/23/2009 7:28:37 PM
RE: Printing problem Posted by Frank Cazabon @ 5/23/2009 9:32:36 PM
RE: Printing problem Posted by a rem @ 5/23/2009 10:49:14 PM
RE: Printing problem Posted by Frank Cazabon @ 5/23/2009 11:14:14 PM
RE: Printing problem Posted by a rem @ 5/23/2009 11:27:49 PM
RE: Printing problem Posted by Frank Cazabon @ 5/25/2009 2:32:03 PM
RE: Printing problem Posted by a rem @ 5/25/2009 11:24:59 PM
RE: Printing problem Posted by Frank Cazabon @ 5/26/2009 2:46:30 PM
RE: Printing problem Posted by a rem @ 5/28/2009 5:56:07 PM
RE: Printing problem Posted by Frank Cazabon @ 5/28/2009 6:34:01 PM
RE: Printing problem Posted by a rem @ 5/30/2009 12:23:30 AM
RE: Printing problem Posted by Frank Cazabon @ 5/30/2009 1:50:09 PM
RE: Printing problem Posted by Derrick Bruce @ 5/22/2009 5:42:15 PM
RE: Printing problem Posted by a rem @ 5/22/2009 5:52:41 PM
RE: Printing problem Posted by Derrick Bruce @ 5/22/2009 5:59:27 PM
RE: Printing problem Posted by a rem @ 5/22/2009 6:10:10 PM
RE: Printing problem Posted by Derrick Bruce @ 5/22/2009 6:12:12 PM
RE: Printing problem Posted by a rem @ 5/22/2009 6:19:05 PM
RE: Printing problem Posted by Derrick Bruce @ 5/22/2009 6:28:50 PM
RE: Printing problem Posted by a rem @ 5/22/2009 7:17:28 PM
RE: Printing problem Posted by Frank Cazabon @ 5/22/2009 4:16:01 PM
RE: Printing problem Posted by a rem @ 5/22/2009 4:23:07 PM
RE: Printing problem Posted by Frank Cazabon @ 5/22/2009 5:25:22 PM
RE: Printing problem Posted by Derrick Bruce @ 5/22/2009 6:16:29 PM
RE: Printing problem Posted by a rem @ 5/22/2009 6:25:39 PM
RE: Printing problem Posted by Derrick Bruce @ 5/22/2009 6:32:54 PM
RE: Printing problem Posted by a rem @ 5/22/2009 6:46:49 PM
RE: Printing problem Posted by Derrick Bruce @ 5/22/2009 7:10:08 PM
RE: Printing problem Posted by a rem @ 5/22/2009 7:43:39 PM
RE: Printing problem Posted by P Hogan @ 5/22/2009 8:53:40 PM
RE: Printing problem Posted by a rem @ 5/22/2009 9:17:40 PM
RE: Printing problem Posted by P Hogan @ 5/26/2009 2:32:22 PM
RE: Printing problem Posted by Ammar Hadi @ 5/24/2009 10:36:16 AM
RE: Printing problem Posted by a rem @ 5/24/2009 11:36:27 AM
RE: Printing problem Posted by Ammar Hadi @ 5/24/2009 12:26:18 PM
RE: Printing problem Posted by a rem @ 5/24/2009 1:17:05 PM
RE: Printing problem Posted by Ammar Hadi @ 5/24/2009 3:08:12 PM
RE: Printing problem Posted by a rem @ 5/24/2009 3:24:49 PM