Skip to Content
avatar image
Former Member

How to change the Printing Orientation with code in runtime.

Using CRforVS_13_0_19. Visual Studio 2015.

I have designed a report for the page size of A5 8.269 X 5.828(WxL) in landscape Mode(Half in A4 8.269 x 11.694 LxW). As there is no A5 available and if want to use A4 paper for printing, to match the Length of the report 8.269 with A4 paper width 8.269 it should be in portrait mode while printing. So here the problem is with lack of code support to change the printing orientation at runtime. And one another problem is we can't rotate the report design to +/-90 degrees.:)

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

7 Answers

  • Dec 01, 2017 at 05:17 PM

    what SDK are you using?

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 04, 2017 at 10:10 AM

    CRforVS_13_0_19. Visual Studio 2015.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 28 at 04:38 PM

    CRforVS_13_0_19 with visual studio 2015

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 28 at 04:38 PM

    CRforVS_13_0_19 with visual studio 2015

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 08, 2017 at 04:51 PM

    CRforVS_13_0_19 with visual studio 2015

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 28 at 04:38 PM

    Using CRforVS_13_0_19. Visual Studio 2015.

    I have designed a report for the page size of A5 8.269 X 5.828(WxL) in landscape Mode(Half in A4 8.269 x 11.694 LxW). As there is no A5 available and if want to use A4 paper for printing, to match the Length of the report 8.269 with A4 paper width 8.269 it should be in portrait mode while printing. So here the problem is with lack of code support to change the printing orientation at runtime. And one another problem is we can't rotate the report design to +/-90 degrees.:)

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 04, 2017 at 09:51 PM

    Download this printer test app, it work sand has all of the API's you can use:

    https://blogs.sap.com/2015/08/19/printing-crystal-reports-in-net/

    I also suggest upgrading to SP 21:

    https://wiki.scn.sap.com/wiki/display/BOBJ/Crystal+Reports%2C+Developer+for+Visual+Studio+Downloads

    Don

    Add comment
    10|10000 characters needed characters exceeded

    • Works with any version of VS 1020 to 2017, but does have issue on Windows 7 32 bit.

      Did you follow the update info on the WIKI page?

      Does my printer test app work for you? You need to update my app also once you install SP 21.

      Don