locked
Change the layout of crystal report on the fly. RRS feed

  • Question

  • User1428336426 posted

    How can I allow my website user(not tech savvy) to change the layout of the crystal report on the fly as and when they want.

    Thursday, February 20, 2014 5:28 AM

All replies

  • User1208776063 posted

    How can I allow my website user(not tech savvy) to change the layout of the crystal report on the fly as and when they want.

    This requires lot of programming as you need to create an instance of Report and find ReportSections and change order based on UI modifications. You can keep standard variations such as moving page header/ hide section in the web page with checkboxes/reorder controls. Once the selection is submitted, you would have to reorder/remove ReportSections from reportclass.

    Wednesday, March 19, 2014 9:12 PM
  • User-578610739 posted

    Hi Rima,

    For layout change at runtime, you need some to either code ro smart guidelines in crystal report tool. please check this.

    http://www.youtube.com/watch?v=iq3Nvf2JbHA

    http://www.xtremevbtalk.com/showthread.php?t=232859

    http://www.bigresource.com/VB-Prove-this-Changing-the-layout-of-report-at-runtime--7Z0QnR26lG.html

    What I suggest, that put a dropdown with value of "Portrait", "Landscape" in a crystal report viewer page (means where you display your report). Make a 2 report as per layout you want.

    On change of dropdown you simply call that layout report. Only thing is you make/design 2 report. But I think the requirement is only for 2-3 reports and not for all reports.

    So effort is good to making 2 report , rather than change code and r& d.

    Monday, March 24, 2014 1:33 AM