Normal Topic Printing multiple copies (Read 11666 times)
cbislander
Full Member
***
Offline



Posts: 103
Joined: Mar 22nd, 2018
Printing multiple copies
Jan 22nd, 2020 at 1:06pm
Print Post Print Post  
Our Q&A invoice program printed invoices on a 3 part form: Customer, Office and Delivery.  The pages were different colors so it's easy to tell the difference.  My Sesame invoice program prints to a laser printer (copier) and makes 3 copies of the same invoice:      NewDocument(3)

Is there a way to label each page: Customer Copy, Store Copy and Delivery Copy?

The other option to print 3 separate pages which seems like a lot of work.
  
Back to top
 
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2480
Joined: Aug 20th, 2003
Re: Printing multiple copies
Reply #1 - Jan 22nd, 2020 at 2:21pm
Print Post Print Post  
The way to do this would be to remove the NewDocument(3) call, which makes 3 identical documents, and restructure your code to something like this

Code
Select All
Subroutine PrintInvoice(vHeader as String)

	//Code for NewPage and Variable declarations
	PrintString(vHeader, 100, 50, 0, "Arial", 16, 0)
	//Rest of your code here for printing an Invoice and FinishPage()

End Subroutine

PrintInvoice("Customer Copy")
PrintInvoice("Store Copy")
PrintInvoice("Delivery Copy") 



-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
cbislander
Full Member
***
Offline



Posts: 103
Joined: Mar 22nd, 2018
Re: Printing multiple copies
Reply #2 - Jan 22nd, 2020 at 4:09pm
Print Post Print Post  
I've try to insert it in my current Print instructions, but it is giving me an error.  I have attached a sample of my print instructions before I made the change.

Please let me know where it should go.
  

PRINTINV-ANT.txt ( 10 KB | 67 Downloads )
Back to top
 
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2480
Joined: Aug 20th, 2003
Re: Printing multiple copies
Reply #3 - Jan 23rd, 2020 at 5:20pm
Print Post Print Post  
In your case, you need to modify PrintHeader() to accept a string variable(which copy it is). Modify Line 25 and Line 37 to use that variable.

The code from line 277 to 332(and all required variables) need to go into the new Subroutine that I mentioned that accepts a string variable

Current Lines #'s 281 and 296 need to be modified to pass the argument passed to the new subroutine to the PrintHeader() subroutine.

Current line #'s 280, 333 need to be deleted

If you find yourself having an issue, I can make these changes for you, you'll just need to purchase some focused support time from https://www.lantica.com/shop/index.php/support/support-funit.html

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
cbislander
Full Member
***
Offline



Posts: 103
Joined: Mar 22nd, 2018
Re: Printing multiple copies
Reply #4 - Jan 23rd, 2020 at 9:42pm
Print Post Print Post  
Hi Ray,

I am let you know when I purchase the support units.  How much should I purchase?

Cavel
  
Back to top
 
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2480
Joined: Aug 20th, 2003
Re: Printing multiple copies
Reply #5 - Jan 23rd, 2020 at 9:43pm
Print Post Print Post  
Just 1 is enough.

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged