Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: mk sharma
  Where is mk sharma?
 mumbai
 India
 mk sharma
 To: Saifuddin Hussain
  Where is Saifuddin Hussain?
 Dubai
 United Arab Emirates
 Saifuddin Hussain
 Tags
Subject: RE: print second copy on page 2
Thread ID: 228365 Message ID: 228650 # Views: 1 # Ratings: 0
Version: Visual FoxPro 9 SP2 Category: Reports and Printers
Date: Wednesday, May 20, 2009 1:09:44 PM         
   


at the time of printing i have set the copies=2


copy no 2 as Duplicate

warm regards,
mk.

> > i have set the Copies=2
> >
> > i want to print "Duplicate " on copy 2
> >
> > warm regards,
> > mk.
>
> I got the same solution on this forum by Anil which is as follows:
>
> In the click command of the button put
>
>
local lnPrint 
> lnPrint = 0
> mSino = This.parent.Grid1.Column1.Text1.Value   && Sales Invoice Reference
> 
> If ! Empty(mSino)
>    FOR lnprint = 1 to 2
>       Report Form '\reports\salinv.frx' TO Print NOCONSOLE For Sino = mSino
>    ENDFOR
> Else
>    Messagebox("Nothing to Preview",16)
>    This.Parent.cmdBuffer.SetFocus
> ENDIF

>
> And, in the field properties in Report put
>
> iif(lnPrint =1,'Original','Duplicate')
>
> It is working fine for me, I hope for you too.
>
> Saifuddin

ENTIRE THREAD

print second copy on page 2 Posted by mk sharma @ 5/18/2009 3:27:08 PM
RE: print second copy on page 2 Posted by sanjay karia @ 5/19/2009 6:42:38 AM
RE: print second copy on page 2 Posted by Saifuddin Hussain @ 5/19/2009 10:09:27 AM
RE: print second copy on page 2 Posted by mk sharma @ 5/20/2009 1:09:44 PM
RE: print second copy on page 2 Posted by Arjun Bagojikop @ 5/26/2009 5:57:03 AM
RE: print second copy on page 2 Posted by mk sharma @ 5/26/2009 10:52:54 AM