Skip to Content
avatar image
Former Member

How to use "CrystalDecisions.Shared.PrintLayoutSettings" in .NET

Hi, All

My report is printed in the center of the paper as the PrintLayoutSettings.centered = true.

I would like to set the centered property to false when printing the report with PrintToPrinter() method. How can I do so? I am using VB.NET

Thank you very much~

Br,

Brian Lau

Edited by: Brian Lau on Sep 2, 2008 5:57 PM

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Sep 03, 2008 at 09:12 PM

    I suspect I don't understand your query, but what happens if you set PrintLayoutSettings.centered = false?

    Does that not work?

    Can you provide the full code used?

    Explain a bit more as to what it is you are trying to achieve?

    Ludek

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Ludek Uher

      Hi, Ludek

      Yes, I am using CR 2008.

      The report was created in Visual Studio 2005 with a dataset defined in my project.

      When using CrystalReportViewer in .NET, I can print the report normally (without shifting down to center) only if the "center the page" checkbox in "layout" tab page is un-checked.

      I guess it is the problem of the "center the page" property of the crystal report engine when using printToPrinter() method directly... as the printout result is the same as that of the situation when printed from CrystalReportViewer and "center the page" checkbox is checked.

      Br,

      Brian Lau