Problem with Unbound report

Posted by: kim on 25 September 2020, 4:12 pm EST

    • Post Options:
    • Link

    Posted 25 September 2020, 4:12 pm EST

    I am using AR 11

    I have an unbound report which is populated with a custom object class I wrote. I set the values for the detail section in the “Detail_Format” event.

    If I use rpt.Run() then view it in the viewer the detail section is not displayed.

    If I do not use rpt.Run() then it works fine.

    However, if I want to send to printer using rpt.Report.Document.Print it blows up unless I use rpt.Run() first. Its prints fine this way.

    The problem is after the printing, if I load it into the viewer after printing, the detail section is gone, even through it prints to the printer fine.

    What’s going on?

  • Posted 25 September 2020, 4:14 pm EST

    In addition, if I preview it first in the viewer, then close the viewer, and try to print it, it blows up as it tries to rerender the report.

  • Posted 26 September 2020, 3:51 am EST

    Hello,

    Could you please try with the following lines of code:

    SectionReport1 rpt = new SectionReport1();
    rpt.Run();
    Viewer1.LoadDocument(rpt.Document)
    rpt.Document.Print(); // to print the report
    

    If issue still reproducible, then could you please stripped-down report so that we can try to reproduce the same behavior at our end and assist you further accordingly.​​

    Thanks,

    Mohit

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels