What I need is to generate 30 labels per page (10 rows / 3 columns)
which is already happening and set the labels properties to:
=============================================
Top margin = 1,27cm
side margins = 0,48cm
lable height = 2,54cm
lable width = 6,67cm
Letter (8 1/2 x 11 in)
=============================================
This is not set yet.
How can I do that with my example??!!
Thank you!!
blueday54555
March 17th, 2005, 03:51 AM
didn't test it but have you tried something like that already ?
2) Another problem: When we use $a."\n".$b it puts $b a lot lower that it should be. Thats a problem cause I need to have 5 rows in each label and with that the labels height is way bigger than it should be (2,54cm)
to 3. clear the cache of your browser and reload the page again
this should work.
rogernem
March 17th, 2005, 08:39 AM
Friend,
just read my last post "ALMOST THERE:" and see the pdf attached too so u can understand
That one you answered Id corrected
Thanks
blueday54555
March 17th, 2005, 08:44 AM
That one you answered Id corrected
In the pdf I see only two rows of text and not the 5 you wanted :)Now what we need to do is the "\n" . We need to find a better way to put everything under each otherwhy you want to replace /n ?
you have only to change 12.7 into 5.08 like in my last post !
rogernem
March 17th, 2005, 10:51 AM
In the pdf I see only two rows of text and not the 5 you wanted
Thats right..cause if i put 5 it will mess everything
thats why we need to correct it
Ill try to use 5.08 instead of 12.7
and ill let u know
thanks
rogernem
March 17th, 2005, 10:54 AM
PERFECT FOR THIS EXAMPLE !!!!
Now its working in terms.
I did this:
$pdf=new FPDF("P","mm","Letter"); to make sure when I print everything will fit on its place but the last labels went down to the other page. See the pdf attached please.
Another thing:
$pdf->Output();
This is not working still...it just prints a lot of things in the browser..like this:
But the last row goes to the other line and the measurements are all wrong
See the file please: http://www.rads.com.br/downloads/new2.pdf
Suggestions?!!
Thanks.
Why you use 68 than 71 and than 68 again as width of the labels?
shouldn't it be 66.7?
You use Letter as format
$pdf=new FPDF("P","mm","Letter");
is it the right format for you? (215.9mm/279.4mm)
rogernem
March 20th, 2005, 12:25 PM
It really should be 66.7 but when I try to print with that size the labels I get are all wrong so here is what I did:
Im using 68 - 71 - 68 because there is a space between the labels of 0,31cm. I divided that by 2 = 0,15 then added it in the 1st label and the last one. The 2nd label I added the 2 0,15cm left = 0,31 so I have 68 - 71 - 68
I wanted to get a larger label too..
But the thing is:
I have already done this : $pdf=new FPDF("P","mm","Letter");
I keep getting thw wrong measurements
Have you tried to print the last pdf I had here to see if the measures match?
Id appreciate if you did that.
This thing I need to do due tomorrow and Im desperate.
I cant get it to WORK !!!
blueday54555
March 21st, 2005, 02:21 AM
the space between the labels you have to put in the 2. and 3. SetXY e.g.
$pdf->SetXY(4.8+the witdh of the 1.lable+space)
$pdf->SetXY(4.8+the width of the 1.lable+the width of the 2.lable+space+space) !!
MultiCell accepts witdh and height as parameters and not X and Y coordinates!!
In your code the second lable would be wider then the other two lables.
$pdf->MultiCell(68, 5.36 ,$a."\n".$b."\n".$c."\n".$d."\n".$e , 1,'C');
$pdf->MultiCell(71, 5.36 ,$a."\n".$b."\n".$c."\n".$d."\n".$e , 1,'C');
$pdf->MultiCell(68, 5.36 ,$a."\n".$b."\n".$c."\n".$d."\n".$e , 1,'C');
At the moment I have no possibillity to print out and check.
But have you checked your printer settings? Are you using a sheet with the
right measures?
rogernem
March 23rd, 2005, 07:29 PM
im using the sheet im supposed to (Letter - 6180) and it still prints wrong
I thought it could be the paper margins..but i dont know where i can change that...
u have any ideas?
tkz
blueday54555
March 24th, 2005, 03:00 AM
Did you tried to change some settings in the printer setup?
Which application do you use to print the pdf?
rogernem
March 24th, 2005, 10:56 AM
Yes, i did.
I asked the printer to print in letter
what do u mean by which application i use to print my pdf?
I just hit the print buttom that is there.
blueday54555
March 29th, 2005, 01:46 AM
what do u mean by which application i use to print my pdf?
now, your php file is creating a pdf file do you open it with adobe acrobat reader
or .............. ?
rogernem
March 30th, 2005, 01:01 PM
Yes,
i have it openned in acrobat reader
then i hit the print buttom
and when its done the page is all wrong
nothing fits in the label
have any ideia why?
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.