Margins and units not correct when exporting to PDF

4 posts, 0 answers
  1. rh
    rh avatar
    193 posts
    Member since:
    Jan 2007

    Posted 23 Sep 2007 Link to this post

    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?
  2. Svetoslav
    Admin
    Svetoslav avatar
    649 posts

    Posted 24 Sep 2007 Link to this post

    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
  3. DevCraft banner
  4. Lisa
    Lisa avatar
    36 posts
    Member since:
    Sep 2006

    Posted 10 Jun 2008 Link to this post

    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.
  5. Rossen Hristov
    Admin
    Rossen Hristov avatar
    2478 posts

    Posted 12 Jun 2008 Link to this post

    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
Back to Top