This content has been marked as final. Show 5 replies
Did you change the Integration Setting, "FDM Web Server Name", to indicate the correct server (this should be changed from the default, "localhost")?
Also, your code may need some tweaking when upgrading from prior versions. Here is the code that I currently use to open the Check Report:
' Publish the Check Report in PDF format If Not Trim(strValGroup)="" Then lngReportID = 87' Default Check Report strBaseName = strLoc& "_" &strCat& "_20" &Right(Trim(RES.PstrPer),2)& "_" &Trim(Left(RES.PstrPer,3)) strPublishPath = API.DataWindow.Connection.PstrDirOutbox& "\Logs\" &LCase(strBaseName)&".pdf" Set objReport = CreateObject("upsWReportingDM.clsReportPublisher") objReport.mInitialize API objReport.mReportPublishToFile CLng(lngReportID), CStr(strPublishPath), CLng(31)' 31 = PDF Set objReport = Nothing End If
Thank you for your response
Yes, we are using a DNS name and the file we are trying to open includes this DNS path and file name
Have you tried RES.PlngActionType = 3? If that doesn't work, this may be a client-side issue.
If you Enable Validation Report in the Integration Settings, does the Check Report display the PDF during the normal Check phase? If not, make sure that the client machine's settings are configured to always open .XML files with Internet Explorer.
We are not having an issue generating the file, we are having an issue opening the file. Contents of the file we create are correct. File is in an accessable directory.
Have you ever tried to open the the file you created? in version 11? We can open the file with ActionType = 1 (ScriptActionTypes - File), but not with type = 4.
RES.PlngActionType = 4 '(See Enumeration: ScriptActionTypes - XML File)
RES.PstrActionValue = strFileName
Hi and thanks for your response.
Yes, we have tried all the various type of files ( ScriptActionTypes). The Type = 1 will open the file, but as a text stream without formatting, etc. If we try type = 3 we receive a different error message:
Error: Invalid Report ID: 0
upsAppServerDM._clsAppServerDM.fPublishReport(lngReportID[Int32], lngPubFileType[Int32], strReportSQL[String], strSubReportSQL[String])
Also, the Validation Report is enabled (we are using check with warnings - ID133), I have tried changing the default Web Settings from .PDF to .html and back again and tried the various other default options available under Web Settings.
If we create a simple test text file, we can open the file as text (Type = 1)
Here is the complete error message employing Type = 4 (XML)
Error: Object reference not set to an instance of an object.