Unable to convert report to pdf with ranorex 8.0

Experiences, small talk, and other automation gossip.
dmchavan
Posts: 3
Joined: Tue Nov 14, 2017 4:48 am

Unable to convert report to pdf with ranorex 8.0

Post by dmchavan » Fri Jan 12, 2018 11:41 am

Hello Team,

We were using the report to pdf functionality of ranorex since 4-5 month and it was working properly.
Last week we upgraded to ranorex8.0, and since that time the report to pdf functionality is not working properly.
We are getting following error


All required fields are present in the project i.e pdf dll and cs file.


But still we are getting the error while generating the pdf report.

Note : we are executing our script on VM. Daily we start our VM for script execution and we stop the VM after execution.
When 1st time we got the error for pdf generation, at that time we tried to delete the pdf dll and add it again to project. After that it worked accordingly.
But on the next day we got the same error again. And if we repeat the step of deleting and adding the pdf dll, it works for that day, and next day we again gets the error.


Please help us find the reason behind this?

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Unable to convert report to pdf with ranorex 8.0

Post by Support Team » Thu Jan 18, 2018 10:52 am

Hello,

The customer was in contact with us via email.

The issue was caused by the missing Ranorex.PDF-dll, which is not correctly deployed to the output directory. The issue will be addressed within one of our upcoming releases. As a workaround, create a post-build action which copies the dll to the output folder

Sincerely,
Robert

loonquawl
Posts: 69
Joined: Wed Nov 22, 2017 10:08 am

Re: Unable to convert report to pdf with ranorex 8.0

Post by loonquawl » Wed Jan 24, 2018 9:33 am

Plus there seems to be a misidentification by Kaspersky AV against the Ranorex.pdf.exe going on. It gets terminated and quarantined.

Mccullum
Posts: 1
Joined: Sat Jan 20, 2018 12:41 pm

Re: Unable to convert report to pdf with ranorex 8.0

Post by Mccullum » Sun Jan 28, 2018 4:10 pm

This is exactly what happened to me. I couldn't whitelist it either for some reason. Any idea on how to address this?

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Unable to convert report to pdf with ranorex 8.0

Post by Support Team » Tue Jan 30, 2018 12:33 pm

Hi,

please ensure that you're using the latest version of the Ranorex.PDF DLL.
  • • Right-click project
    • Manage packages
    • Search for „Ranorex ReportToPDF“ within the „Available“ tab and install it (Current ver. 1.0.12)
and of course, please ensure to white-list it if it still gets blocked.

Sincerely,
Robert

loonquawl
Posts: 69
Joined: Wed Nov 22, 2017 10:08 am

Re: Unable to convert report to pdf with ranorex 8.0

Post by loonquawl » Tue Jan 30, 2018 3:38 pm

Rightclicking on my project and "Manage Packages" does not see the installed reportToPdf, but if i rightclick on the referenced Project Automation Helpers, i see the package, and can update it (it's now .12). I added that package to every project using the technique you just described, and it was mayhem. Having it just in Automation Helpers (and referencing that project in all concerned projects did the trick (with disabled Kaspersky...))