Skip to main content



No record found.

Dynamics 365 Community / Forums / Finance forum / How can I print a repo...
Finance forum
Suggested answer

How can I print a report with mobile device?

Posted on by 559

Hi experts,

I am facing an issue while printing SSRS report with mobile device.

I try to print report to PDF file, then download this file and print. The code is as blow:


It is successful in DEV environment but failed in PROD environment.

Stack trace:

Cannot run form on non interactive session.

Something went wrong while generating the report. Please try again.

Object reference not set to an instance of an object.

Any suggestion?

  • Alex VN Profile Picture
    Alex VN 1,987 on at
    RE: How can I print a report with mobile device?


    It seems like somehow your code is trying to call the form open when you run the report in a non interactive session. Means that your code is running "in background" without user interaction (like in batch) but from your code some form or dialog is being called to open.

    I would suggest you to check further for the stack trace to see the place where the error is thrown and check further.

  • Suggested answer
    huijij Profile Picture
    huijij 19,803 on at
    RE: How can I print a report with mobile device?

    Hi bernardqin,

    Please may check the MS document to debug a copy of the production database in the DevTest environment:

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .


André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 288,420 Super User

Martin Dráb Profile Picture

Martin Dráb 225,672 Super User

nmaenpaa Profile Picture

nmaenpaa 101,148


Featured topics

Product updates

Dynamics 365 release plans