This is a migrated thread and some comments may be shown as answers.

Margins and units not correct when exporting to PDF

3 Answers 600 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
rh
Top achievements
Rank 1
rh asked on 23 Sep 2007, 11:14 PM
I have a simple report that I am using to try to make Avery 5160/8160 labels. I have a single textbox on the report set to 1in in height and 2.63in width. However, when I export to PDF and print the report the height of the textbox is a little less than 15/16in which means it is less than 1in. This causes the labels to be misaligned by the bottom of the page.

I also have the top margin of the report set at .5in but when exported to PDF and printed the margin is coming out to 5/8in.

I have the left and right margins set to .19in, but when exporting to PDF and printing the margins are coming out at 7/16in.

All of these things are making it very difficult to make my labels align for the entire page. Is there something that I need to do to make it play nice when exporting to PDF?

3 Answers, 1 is accepted

Sort by
0
Svetoslav
Telerik team
answered on 24 Sep 2007, 11:01 AM
Hi rh,

The described behavior of TextBox report item is observed when its CanShrink is enabled (TextBox.CanShrink = True). If you need your TextBox to have constant size you have to set both TextBox.CanShrink/CanGrow properties to false. You can review the ShrinkGrowReport example from the sample solutions (both in C# or VB.NET) that demonstrates this feature.

Regarding the incorrect margins - we made some tests and everything works fine. One thing that can cause a differences between what you expect and the printer output is because of the printer settings. Please verify that all page scaling is turned off as on the screenshot below:




Regards,
Svetoslav
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Lisa
Top achievements
Rank 2
answered on 10 Jun 2008, 09:43 PM
I'm experiencing a very similar problem. I have spent hours on this, and what I ended up doing is adding a border around the label then exported it to a PDF so I could see exactly how its lining up.

What I did was take a 5160 avery label, and changed the height from 1" to 2". What I needed was to print two label for each record. (ignore the line in the center of the two labels). I checked my print settings and I don't have anything on that would scale anything.

I also did a basic mailing label to make sure that me changing the height of the label didn't have anything to do with it, and again its still not lining up.

Please help.
0
Rossen Hristov
Telerik team
answered on 12 Jun 2008, 11:07 AM
Hi Lisa,

Thank you for contacting Telerik Support.

Can you send us the report that you generated with the wizard and tell us the exact label type that you chose - we need to examine the generated report. Also, if you have some other documents generated by another tool (i.e. doc, pdf, etc.) showing Avery labels, sending it for comparison will help us greatly.

We also have another question. Is the incorrect behavior occurring only in PDF? What happens if you preview the report with the WinForms Viewers - is it OK or is it wrong again? Thanks in advance.

P.S. To send us files, you will need to open a support ticket and attach them in it.

All the best,
Ross
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
General Discussions
Asked by
rh
Top achievements
Rank 1
Answers by
Svetoslav
Telerik team
Lisa
Top achievements
Rank 2
Rossen Hristov
Telerik team
Share this question
or