Normal Topic Question on printing 1 record only using a button (Read 677 times)
esgage
Junior Member
**
Offline


No personal text

Posts: 55
Joined: Dec 8th, 2005
Question on printing 1 record only using a button
Aug 20th, 2012 at 11:56am
Print Post Print Post  
Hello:

I am trying to allow the user to be in a record and press a button and print the current form they are viewing only. Currently I can only seem to figure out a way to have the programming print the entire retrieved set, versus the current record only. Here is what I have for the button:

Var vSuccess as Int
     vSuccess = @SelectTreeItem("Search Update Menu!Results Commands!Printing Commands!Print Forms")

I tried adding !current after forms but that did not work.
Please help. Thank you!!
  
Back to top
 
IP Logged
 
tcgeo
Full Member
***
Offline



Posts: 278
Location: Traverse City, Michigan
Joined: May 13th, 2008
Re: Question on printing 1 record only using a button
Reply #1 - Aug 20th, 2012 at 12:50pm
Print Post Print Post  
Hello esgage,

Give this a try,

Var vSuccess as Int

     vSuccess = @PrintAForm(0, 1, 1, 1, 28,-1, -1, -1, -1, 1, 1)
  
Back to top
IP Logged
 
esgage
Junior Member
**
Offline


No personal text

Posts: 55
Joined: Dec 8th, 2005
Re: Question on printing 1 record only using a button
Reply #2 - Aug 20th, 2012 at 1:17pm
Print Post Print Post  
That did exactly what I wanted. Thank you very much!!
  
Back to top
 
IP Logged
 
tcgeo
Full Member
***
Offline



Posts: 278
Location: Traverse City, Michigan
Joined: May 13th, 2008
Re: Question on printing 1 record only using a button
Reply #3 - Aug 20th, 2012 at 2:18pm
Print Post Print Post  
You're welcome,

Glad it worked for you!
  
Back to top
IP Logged
 
Carl Underwood
Senior Member
Members
*****
Offline



Posts: 1351
Location: New Hampshire
Joined: Mar 11th, 2003
Re: Question on printing 1 record only using a button
Reply #4 - Aug 22nd, 2012 at 1:19pm
Print Post Print Post  
@PrintAForm is probably the best choice because you can automate the settings, but just for the record...

There is also @SelectTreeItem("Search Update Menu!Record Commands!Printing Commands!Print Form"), which will print only the current record.
  


Carl Underwood
CDU Computer Consulting LLC
Epsom, New Hampshire
Back to top
IP Logged