PdcApplication.OpenFile
Jump to navigation
Jump to search
Declaration
OpenFile(strFilePath As String)
Description
Open a file based on a filepath. This function is mostly intended for use in the Cloud for when a file was saved to the users computer and now needs to be opened. But it also works on-prem.
Parameters
strFilePath: A path leading to a file or folder, for example: "C:\Users\Admin\Documents\". Keep in mind that this path needs to be from the perspective of the user.
Notes
This method is available both in the EciCloud and in the on-prem version of Bemet.
Code example
Dim objReport As pdcReport
objReport = PDC.App.Reports.Open(1409)
objReport.PrintToFile("\\tsclient\C\ECI\filename.pdf")
PDC.App.OpenFile("C:\ECI\filename.pdf")
Availability
Bemet 2024R4 and higher.