cancel
Showing results for 
Search instead for 
Did you mean: 

How to print PDF with a specific printer

lorenzwagner
Level 4

Hello, I have the following problem/question. How can I print a PDF (not opened but location known) via an action phase? I have a list of printers, whereby I have information about the printers in a collection stage. How can I implement this and what information about the printers do I need in order to be able to select them specifically?

26 REPLIES 26

HI @lorenzwagner 

Thank you for being a SS&C Blue Prism customer and for using Blue Prism. Given the issue you raise, my first thoughts would be that your production machine is not configured the same way as your development machine. In this I would investigate whether or not the necessary dlls are installed on your production machine in the Blue Prism folder, particularly those in the x64/x86 folders depending on your architecture. The manual for the asset, does explain this requirement.

Please come back to us if you need more help.

regards

Geoff Hirst Senior DX Engineer - Digital Exchange - EMEA SS&C Blue Prism

Hi @GeoffHirst thank you for replying so quickly. Well the DLLs are pasted under C:\Program Files\Blue Prism Limited\Blue Prism Automate, the same directory the other DLLs are placed under and work properly. Any idea how i can get an indication what is mabye causing the closing of BluePrism. Maybe this could help.

Hi @lorenzwagner ,

 Can you check the architecture of your production machine and confirm it is running the same as on your development machine? If one is 32 bit and the other 64 bit, they will require different dlls, this was highlighted recently and appropriate updates were made to the documentation.

Please let us know how you get on.

regards

Geoff Hirst Senior DX Engineer - Digital Exchange - EMEA SS&C Blue Prism

Hi @GeoffHirst we run 32-bit and one with 64-bit and neither does work. For the 32-bit, the alternatively proposed answer does also not work.

GeoffHirst
Staff
Staff

Hi @lorenzwagner ,

So, you have it working without issue on your development machine, as you said previously. May I draw your attention to earlier in this thread, we had another user @MohammedNissarK who was using 32 bit Blue Prism and he followed the instructions in the user guide and was able to make it work.

I am sure this is down to configuration of your systems, as we have made it work on both 32 and 64 bit architectures ourselves and as stated another user has also made it work satisfactorily.

May I ask you review your configurations and retry? As, there is little else I can offer at this time, without more specific information. You might look into the windows event log of the production machine and see if there is more information there as to the reason why Blue Prism is crashing.

regards

Geoff Hirst Senior DX Engineer - Digital Exchange - EMEA SS&C Blue Prism

@GeoffHirst Hello, I am getting the following error messages. Unfortunately only in German.

The upper message from the event log comes if you do not put the pdfium.dll into the x64 folder. And the bottom one if it is in the x64 folder. What is strange is that the file is in the correct folder, but the running error is not. What could be the reason?

 

1000059665.png

1000059664.png

hi @lorenzwagner ,

I think we need to initially confirm the architecture of the computer you are using here. The first message is architecture related. System.BadImageFormatException has nothing to do with gifs or jpgs, but instead, occurs when a .NET application attempts to load a dynamic link library (.dll) or executable (.exe) that doesn't match the proper format that the current common language runtime (CLR) expects. In other words trying to load a 64Bit library into a 32 bit application.

So, I think we need initially to confirm without doubt what the architecture is of the machine you are working with, whether that be 32-bit or 64-bit and also the architecture of your Blue Prism, as it is possible to run the 32 bit Blue Prism on a 64 Bit version of Windows.

Once you know this, you can confirm that, the files you are using are of the correct architecture and are positioned into the correct folder. Remember that there are 2 files required for this asset, one file is pdfiumviewer.dll and this needs to be placed in the Blue Prism folder. The other file is the architecture dependent one and either needs to be in the x86 folder if you are running 32 Bit or in the x64 folder if you are running 64 bit.

You have had this asset working fine on your development machine, so you know it works. This is just configuration of your production machine to get this working.

I hope this helps you clarify your issues.

regards

Geoff Hirst Senior DX Engineer - Digital Exchange - EMEA SS&C Blue Prism