Normal Topic Pre-printed forms (Read 936 times)
magicfish
Member
*
Offline



Posts: 47
Joined: Mar 18th, 2011
Pre-printed forms
Apr 19th, 2011 at 7:50pm
Print Post Print Post  
I have a Q&A Invoice database and pre-printed invoice forms.
I have converted the database to Sesame and now I want to design the report to print invoices on the pre-printed forms.
Do I put each element in the Group Body and program a PrintString for each element?
Or is there a way to write a program that will specify all the PrintString commands at once?
Are there any samples or tutorials around that do this sort of printing?
  
Back to top
 
IP Logged
 
Ben
Lantica Support
*****
Offline



Posts: 218
Joined: Apr 7th, 2005
Re: Pre-printed forms
Reply #1 - Apr 19th, 2011 at 8:20pm
Print Post Print Post  
magicfish -

If you are going to be working with PrintString() commands, you can skip building your report in report designer all together and add your programming to the On Element Entry event of a command button on your form.

To see an example of PrintString being used to "fill-in" an Invoice template, take a look at the programming in the 'Print' element's On Element Entry event in the Sesame Seasons sample application.

More information about PrintString() can be found on page 338 of the 2.0 Programming Guide.
  
Back to top
IP Logged
 
magicfish
Member
*
Offline



Posts: 47
Joined: Mar 18th, 2011
Re: Pre-printed forms
Reply #2 - Apr 21st, 2011 at 8:12pm
Print Post Print Post  
Ben,
I just now got a chance to take a look at Sesame Seasons. That will be very helpful, but I know I'm going to have more questions later.
It looks like in the future I might be able to use this example to get rid of the pre-printed forms and print the whole thing from Sesame, but for now, I want to print to the forms. I print batches of 30 to 150 invoices at a time and I have to run it 3 times for different coloured paper copies.
Do you know of an example that uses a report for filling in forms?
Thanks
Glenn
  
Back to top
 
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: Pre-printed forms
Reply #3 - Apr 21st, 2011 at 8:26pm
Print Post Print Post  
Reports don't have the precision placement capability that PrintString supplies. This tends to be important for getting everything to land in particular places on pre-printed forms.

To do batches, you put the PrintString code into a mass update. This will print an invoice for each record in your batch.
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
magicfish
Member
*
Offline



Posts: 47
Joined: Mar 18th, 2011
Re: Pre-printed forms
Reply #4 - Apr 21st, 2011 at 8:28pm
Print Post Print Post  
OK, I guess I start studying Mass Update now.
Thanks
Glenn
  
Back to top
 
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: Pre-printed forms
Reply #5 - Apr 21st, 2011 at 8:35pm
Print Post Print Post  
magicfish wrote on Apr 21st, 2011 at 8:28pm:
OK, I guess I start studying Mass Update now.
Thanks
Glenn


In a nutshell, it runs the same piece of SBasic code for each record in your batch.
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged