cancel
Showing results for 
Search instead for 
Did you mean: 

How to change the Printing Orientation with code in runtime.

Former Member
0 Kudos

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.:)

Accepted Solutions (0)

Answers (7)

Answers (7)

Former Member
0 Kudos

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.:)

Former Member
0 Kudos

CRforVS_13_0_19 with visual studio 2015

Former Member
0 Kudos

CRforVS_13_0_19 with visual studio 2015

Former Member
0 Kudos

CRforVS_13_0_19 with visual studio 2015

0 Kudos

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

Former Member
0 Kudos

After upgrading to the new sdk, i am not able to open the rpt files in Visualstudio, so uninstalled the new sp21 and installed my old running version of sdk. so i think new version sp21 is not supported in visualstudio2015 community.

0 Kudos

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

Former Member
0 Kudos

CRforVS_13_0_19. Visual Studio 2015.

0 Kudos

what SDK are you using?

Former Member
0 Kudos

CRforVS_13_0_19 with visual studio 2015