c# - Crystal Report to PDF in .NET -


i put poc console app. generate pdf crystal report (using crystaldecisions libraries)

it works fine on dev. box, encounters exception when executed elsewhere:

could not load file or assembly 'crystaldecisions.reportappserver.commlay er, version=13.0.2000.0, culture=neutral, publickeytoken=692fbea5521e1304' or on e of dependencies. system cannot find file specified.

unhandled exception: system.typeinitializationexception: type initializer 'crystaldecisions.crystalreports.engine.reportdocument' threw exception. -- -> system.io.filenotfoundexception: not load file or assembly 'crystaldeci sions.reportappserver.commlayer, version=13.0.2000.0, culture=neutral, publickey token=692fbea5521e1304' or 1 of dependencies. system cannot find f ile specified. @ crystaldecisions.crystalreports.engine.reportdocument..cctor()

i believe caused absence of crystal reports runtime (which not explicitly installed).

1) can please confirm this?

2) there way working without installing crystal reports runtime on target machine(s)?

i've read building installer merge modules etc. console app , don't want go down route.

thanks in advance.

edit:

i checked out dll dependencies , appears missing libraries api-ms-win-core-*

you need distribute runtime crystal reports work.

another option write second app generate pdf files install on server, each of console apps send request new server app sends pdf. mean crystal runtime installed on 1 machine, , original console app wouldn't need worry it.

just information, crystal runtime can downloaded here: http://scn.sap.com/docs/doc-7824


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -