Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Jignesh Parekh
  Where is Jignesh Parekh?
 Rajkot
 India
 Jignesh Parekh
 To: mk sharma
  Where is mk sharma?
 mumbai
 India
 mk sharma
 Tags
Subject: RE: Original/Duplicate with Report Preview
Thread ID: 373512 Message ID: 373666 # Views: 38 # Ratings: 0
Version: Visual FoxPro 9 SP2 Category: Reports and Printers
Date: Monday, March 25, 2013 5:03:42 AM         
   


> >
> > No.
> >
> > Regards,
> > Jignesh Parekh
> > --------------------------------------------------------------------------------------------------------------------------------
> > If better is possible, Good is not enough.
>
> I am using below code in print CommandButton to print Original/Duplicate/Triplicate, but my main issue is when user print from preview ?
>
>
> ** PrintCommandButton.Click
> local lcCopies
> lcCopies = Inputbox("Number of Copies", "no of copies", '3')
> lcCopies = Val(m.lcCopies)
> 
> If m.lcCopies <= 0
> 	lcCopies = 1
> Endif
> 
> For oapp.docopies = 1 To m.lcCopies
> 	Do Case
> 	Case m.oapp.docopies  = 1
> 		oapp.gcReportType = "ORIGINAL"
> 		Report Form do1 To Printer Prompt Noconsole
> 	Case m.oapp.docopies  = 2
> 		oapp.gcReportType = "DUPLICATE"
> 		Report Form do1 To Printer Prompt Noconsole
> 	Case m.oapp.docopies  = 3
> 		oapp.gcReportType = "TRIPLICATE"
> 		Report Form do1 To Printer Prompt Noconsole
> 	Endcase
> Endfor
> 

>
>
> Warm Regards,
> mk.


Disable print from preview.

OR

Make a form with a WebBrowser control and Command Button, make HTML of report and navigate through Browser Control, when user click on Command Button run your loop to send report to printer.

Regards,
Jignesh Parekh
--------------------------------------------------------------------------------------------------------------------------------
If better is possible, Good is not enough.

ENTIRE THREAD

Original/Duplicate with Report Preview Posted by mk sharma @ 3/22/2013 8:16:54 PM
RE: Original/Duplicate with Report Preview Posted by Rahul Moudgill @ 3/23/2013 2:56:11 AM
RE: Original/Duplicate with Report Preview Posted by mk sharma @ 3/23/2013 5:49:49 AM
RE: Original/Duplicate with Report Preview Posted by Rahul Moudgill @ 3/24/2013 8:16:32 AM
RE: Original/Duplicate with Report Preview Posted by Jignesh Parekh @ 3/23/2013 5:10:03 AM
RE: Original/Duplicate with Report Preview Posted by mk sharma @ 3/23/2013 6:16:20 AM
RE: Original/Duplicate with Report Preview Posted by Jignesh Parekh @ 3/23/2013 2:11:25 PM
RE: Original/Duplicate with Report Preview Posted by mk sharma @ 3/23/2013 4:19:55 PM
RE: Original/Duplicate with Report Preview Posted by Jignesh Parekh @ 3/25/2013 5:03:42 AM
RE: Original/Duplicate with Report Preview Posted by mk sharma @ 3/25/2013 5:52:53 AM
RE: Original/Duplicate with Report Preview Posted by Manish Swami @ 3/23/2013 5:28:13 AM