.Net Local reporting Phantom file not closing

  • Hello!

    Using PhantomPDF and c# with the .AsUtility() option of the LocalReporting object, I'm able to Render the HTML to PDF just fine, but the app holds on to the PDF so I'm not able to access it until the program is closed. I've tried to set all objects to null and run the rs.KillAsync().Wait() command. Is there something else that I need to do?

  • I just noticed the Report.Content.Dispose() method, but that didn't do it either.

  • fyi, I figured it out:

    FileStream stream = new FileStream(outfile, FileMode.Create);

Log in to reply

Looks like your connection to jsreport forum was lost, please wait while we try to reconnect.