Normal Topic Print multiple records using printstring? (Read 1011 times)
Calibrate1
Member
*
Offline



Posts: 38
Location: Dayton, OH
Joined: Jun 28th, 2006
Print multiple records using printstring?
Jan 17th, 2009 at 9:35pm
Print Post Print Post  
Hello Everyone,

A couple of the many things that I love about sesame is that ability to print all records that were retrieved and printstring commands to print forms in my format.  But, is there any way to combine these two.  I have almost every form in my database printing out using print button including all the printstring commands needed.  Is there coding that can have it print all retrieved forms using these printstring commands?

Thank You in advance!
  
Back to top
 
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: Print multiple records using printstring?
Reply #1 - Jan 18th, 2009 at 3:14am
Print Post Print Post  
Sure. You can call your PrintString code in a mass update. You can also loop through all your records in code by doing something like the following:

Code
Select All
var vCount as Int
var vLoop as Int
var vPos as Int

SUBROUTINE PrintIt()
	// All your print code
END SUBROUTINE

	vPos = @ResultSetCurrentPosition()
	vCount = @ResultSetTotal()
	For vLoop = 1 to vCount
		ResultSetCurrentPosition(vLoop)
		PrintIt()
	Next
	ResultSetCurrentPosition(vPos)
 

  

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



Posts: 38
Location: Dayton, OH
Joined: Jun 28th, 2006
Re: Print multiple records using printstring?
Reply #2 - Jan 19th, 2009 at 9:57pm
Print Post Print Post  
Thank You Erika,

This is just what I was looking for!!!
  
Back to top
 
IP Logged
 
Amor
Full Member
Members
***
Offline


No personal text

Posts: 366
Location: Germany
Joined: Feb 7th, 2004
Re: Print multiple records using printstring?
Reply #3 - Nov 9th, 2010 at 5:05pm
Print Post Print Post  
Hello, 

After the  printing  with printstring of all records that were retrieved i would like to save

all printed records as a archive file e.g. as PDF.  Is it possible?


Thank You in advance!
  

Dr. med. Amor Belhareth&&Medizin Labor &&Germany
Back to top
 
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2482
Joined: Aug 20th, 2003
Re: Print multiple records using printstring?
Reply #4 - Nov 10th, 2010 at 2:39pm
Print Post Print Post  
Hello Amor,

You can do that by running through and printing all the records again out to a PDF printer.

-Ray
  

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


No personal text

Posts: 366
Location: Germany
Joined: Feb 7th, 2004
Re: Print multiple records using printstring?
Reply #5 - Nov 10th, 2010 at 8:21pm
Print Post Print Post  
Hello Ray,

My Problem is that i canīt save all the printed records to a PDF Printer at once and in one file.
So i muss give a name document for earch printed record !

Thanks.
  

Dr. med. Amor Belhareth&&Medizin Labor &&Germany
Back to top
 
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2482
Joined: Aug 20th, 2003
Re: Print multiple records using printstring?
Reply #6 - Nov 10th, 2010 at 8:34pm
Print Post Print Post  
Hello Amor,

It may be possible depending on what PDF printer you are using to have the PDF documents saved under the same name every time and then rename them using @shell() after they have been printed.

-Ray
  

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


No personal text

Posts: 893
Location: San Antonio
Joined: Feb 21st, 2004
Re: Print multiple records using printstring?
Reply #7 - Nov 15th, 2010 at 3:32pm
Print Post Print Post  
At a glance, CutePDF may do what you need, and they have a free version that may work for your needs. (www.cutepdf.com)

Good luck,

Steve
  
Back to top
IP Logged