c# - Crystal Reports in ClickOnce deployment -
my application needs print crystal reports report. not show preview, takes 2 parameters , shows print dialog set printer. works fine on computers have crystal reports installed, not have way enforce clients have installed.
i have read in various places adding clickonce prerequisite "sap crystal reports runtime engine .net framework" allow required crystal reports libraries registered on client. when installing application on client, download runtime, , installs runtime, application fails install stating various crystaldecisions , crystalreports assemblies must registered in gac.
the first crystaldecisions.reportappserver.commonobjectmodel. if add reference in project , redeploy, gives message assembly. literally did 15 times, , never got seamless install.
what missing? followed this guide sap website (zipped, 2.2 mb, contains microsoft compiled html help file, crnet_dg_2010_en.chm).
i had problem: click-once applications, must download , install 32-bit version of crystal reports runtime on client regardless of client computer's architecture. ended installing both 32-bit , 64-bit using msis provided on sap's site cover bases , make gac error go away. afterwards, ran smoothly.
download , install msis (not executable) here
for click once deployment
in addition making sap crystal reports runtime prerequisite, need modify product.xml file on development machine. file located in: {program files}\microsoft sdks\windows\v*.0a\bootstrapper\packages\crystal reports .net framework 4.0\
find following line , comment out: <bypassif property="processorarchitecture" compare="valuenotequalto" value="intel"/>
now, re-publish solution , setup should install both runtimes on 64-bit machines.
Comments
Post a Comment