Normal Topic @PrintAForm issue (Read 949 times)
tcgeo
Full Member
***
Offline



Posts: 278
Location: Traverse City, Michigan
Joined: May 13th, 2008
@PrintAForm issue
Mar 9th, 2012 at 9:42pm
Print Post Print Post  
When "1" is selected to print the current form, the form prints and the margins are adhered to. If "2" is selected, all records are printed but the margins are not adhered to. It looks like the right side and bottom margins are the ones that do not get changed.

Any ideas?

Thanks for the help.

Code
Select All
If @Lt(vButton,1) = "1"
	{
	vTmp = @PrintAForm(0, 1, 1, 1, 28, 10, 10, 10, 10, 1, 1)
	}
Else If @Lt(vButton,1) = "2"
	{
	vTmp = @PrintAForm(1, 1, 1, 1, 28, 10, 10, 10, 10, 1, 1)
	}
 

  
Back to top
IP Logged
 
Bob_Hansen
Senior Member
Members
*****
Offline


WOW, They have the Internet
on computers now!

Posts: 1861
Location: Salem, NH
Joined: Nov 24th, 2002
Re: @PrintAForm issue
Reply #1 - Mar 10th, 2012 at 5:39am
Print Post Print Post  
This is just a thought, not a known cause. 

When you are printing all records, there may be some internal calculations done to handle cell widths, wrap arounds, images, column headings, etc. that may change from record to record.  The final sizes may be an adjustment to handle all conditions of all records. 

When you are printing only one record, there are no visible adjustments, just a single report that looks good by itself.  But it may still be the result of some formatting calculations also.  Multiple copies of the same report would all look the same also, so no visible clue that some resizing may have been done from a "normal" layout.
  



Bob Hansen
Sesame Database Manager Professional
Sensible Solutions Inc.
Salem, NH
603-898-8223
Skype ID = sensiblesolutions
Back to top
IP Logged
 
tcgeo
Full Member
***
Offline



Posts: 278
Location: Traverse City, Michigan
Joined: May 13th, 2008
Re: @PrintAForm issue
Reply #2 - Mar 10th, 2012 at 1:23pm
Print Post Print Post  
Thanks Bob,

If I understand your post correctly, and with this in mind;

Quote:
"handle cell widths, wrap arounds, images, column headings, etc."


For a quick test I created a new database, made the form the same size as the one I’m having trouble with 726 x 982. Placed one text field on the form, my command button, and a box that is close to, but not on, the perimeter of the form. (Not sure if this is the best test though, my trouble database has no box, but wanted a quick way of defining all sides)  I then added two new records; the only data entered was an “A” in the field for the first record, and a “B” in the same field for the second record.

Trouble still exists, good for printing one, bad for two. Again, not sure if this is the best test or not.

Thanks
  
Back to top
IP Logged
 
Bob_Hansen
Senior Member
Members
*****
Offline


WOW, They have the Internet
on computers now!

Posts: 1861
Location: Salem, NH
Joined: Nov 24th, 2002
Re: @PrintAForm issue
Reply #3 - Mar 13th, 2012 at 4:07pm
Print Post Print Post  
Test sounds good to me, so that kills my thoughts about the cause.  Thanks for the feedback.
  



Bob Hansen
Sesame Database Manager Professional
Sensible Solutions Inc.
Salem, NH
603-898-8223
Skype ID = sensiblesolutions
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: @PrintAForm issue
Reply #4 - Mar 13th, 2012 at 4:59pm
Print Post Print Post  
Hello Brandon,

I see what's going on and have written it up and passed it on to development.

-Ray
  

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



Posts: 278
Location: Traverse City, Michigan
Joined: May 13th, 2008
Re: @PrintAForm issue
Reply #5 - Mar 13th, 2012 at 5:18pm
Print Post Print Post  
oops, just sent you an email about this Ray.

If you read the email you'll also see another issue I stumbled on.

Thanks for checking into this.

Brandon
  
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: @PrintAForm issue
Reply #6 - Mar 13th, 2012 at 5:21pm
Print Post Print Post  
Hey Brandon,

Yeah I saw that other thing as well when I saw looking into this and wrote it up as well.

As a work around what you can do is just write a loop that will step through all retrieved records and print that singular form then advance to the next form.

-Ray
  

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



Posts: 278
Location: Traverse City, Michigan
Joined: May 13th, 2008
Re: @PrintAForm issue
Reply #7 - Mar 13th, 2012 at 5:23pm
Print Post Print Post  
Ok, thanks.
  
Back to top
IP Logged