Hello Everyone,
I have found a couple different threads regarding printing and receiving this “Object reference not set to an instance of an object.” error. Unfortunately I’m not sure that any of those were able to give me a solution.
We have a process that is supposed to print a new Crystal report we created. If it runs through the process it receives the error “Object reference not set to an instance of an object.”. However if I then just reprint it sending it to the same printer there is no issue. This can be seen in this screenshot:
Would this be some type of permissions issue with the report that I am missing? I looked at the presentation object that we created and IFSPRINT does have authority to the presentation object.
Here is our crystal log if that helps as well, but it actually looks like there isn’t any issue here and runs fine.
12/28/2021 1:23:46 PM2IFSCRWebSetup]-PDecryptPassword] Decrypting Password : CgQIpYEUa2VbVlOMlqi9HFRZDDpTyALte5tU
12/28/2021 1:23:46 PM2IFSCRWebSetup]-PGetDbInfoFromXml] Decrypted.
12/28/2021 1:23:46 PM2IFSCRWebSetup]-PDecryptPassword] Decrypting Password : CgQIt12VR8RNQOEAvuJUU6ujZaHacKQOJcJC
12/28/2021 1:23:46 PM2IFSCRWebSetup]-PGetDbInfoFromXml] Decrypted.
12/28/2021 1:23:46 PM2IFSCRWebSetup]-PGetDbInfoFromXml] Retrieved Information from XML : DBUser-ifssys DBPassword-******* PrintUser-IFSPRINT PrintPassword-******* DBServerName-IFSPROD AppOwner-CHIE1APP IALOwner-CHIE1INFO
12/28/2021 1:23:46 PM2IFSCRWebSetup]-PGetSavedPDFReport] Exporting the report in PDF format.
12/28/2021 1:23:46 PM2IFSCRWebSetup]-PGetSavedPDFReport] File Name : 40C044.rpt
12/28/2021 1:23:46 PM2IFSCRWebSetup]-PGetSavedPDFReport] ParameterValues : 5593782 ,LangCode = en
12/28/2021 1:23:46 PM2IFSCRWebSetup]-Pbase64Encode] for 5593782
12/28/2021 1:23:46 PM2IFSCRWebSetup]-Pbase64Encode] Encoded value : NTU5Mzc4Mg==
12/28/2021 1:23:46 PM2IFSCRWebSetup]-Pbase64Decode] for NTU5Mzc4Mg==
12/28/2021 1:23:46 PM2IFSCRWebSetup]-Pbase64Decode] Decoded to 5593782
12/28/2021 1:23:46 PM2IFSCRWebSetup]-POpenReport] File Name : en\40C044.rpt
12/28/2021 1:23:46 PM2IFSCRWebSetup]-PGetAppSetting] Get the value for OpenReportPath from Web.config.
12/28/2021 1:23:46 PM2IFSCRWebSetup]-POpenReport] The file C:\ifsreports\en\40C044.rpt is found
12/28/2021 1:23:46 PM2IFSCRWebSetup]-PGetAppSetting] Get the value for OpenReportPath from Web.config.
12/28/2021 1:23:46 PM2IFSCRWebSetup]-PLoadInfoServiceReport] Loading infoServe report : C:\ifsreports\en\40C044.rpt
12/28/2021 1:23:46 PM2IFSCRWebSetup]-PLoadInfoServiceReport] DBUser = IFSPRINT ,DBPassword : ******* ,DBServerName : IFSPROD ,AppOwner : CHIE1APP
12/28/2021 1:23:46 PM2IFSCRWebSetup]-PLoadInfoServiceReport] Setting up logon information for each database object.
12/28/2021 1:23:46 PM2IFSCRWebSetup]-PSetTableLocation] Set appropriate post-fixes for CHIEF_KIT_LABEL_REP
12/28/2021 1:23:46 PM2IFSCRWebSetup]-PSetDatabaseLocation] Generating fully qualified database object name for CHIEF_KIT_LABEL_REP
12/28/2021 1:23:46 PM2IFSCRWebSetup]-PSetDatabaseLocation] Table.Location : CHIE1APP.CHIEF_KIT_LABEL_REP
12/28/2021 1:23:46 PM2IFSCRWebSetup]-PGetSavedPDFReport] SubReport count : 0
12/28/2021 1:23:46 PM2IFSCRWebSetup]-PSetInfoServiceReportParameters] Result Key : 5593782 - Setting up parameters for InfoServices report.
12/28/2021 1:23:46 PM2IFSCRWebSetup]-PSetInfoServiceReportParameters] Formula Form : IFS_RESULT_KEY
12/28/2021 1:23:46 PM2IFSCRWebSetup]-PGetSavedPDFReport] Report of layout 40C044.rpt has been exported successfully.
Thanks for any help that anyone can provide,
Derek Hansen