How to use command button to open external reports
Hi everyone,
We have started VB-PG2 migration project with PLC connect.
In VB graphic display,the command button is used to open external reports which is kept in some other other location and they have written vb code to accesss the same.
VB CODE:
Private Sub Command1_Click()
Shell "explorer /root," & \\172.16.4.11\Generated reports, vbNormalFocus
End Sub
But PG2 we are not able write code for the same,Is it possible to use any other option to open external folder(reports) by using "push button" or any other button?
Thanks,
Lohith.D
Voted best answer
I assume that you can use a 'Windows Application' or a 'Web Page' aspect to open the report.
Then you can use a 'Verb Button' in your PG2 display to call the 'Open' or 'Explorer' verb on the Report Aspect.
Then you can use a 'Verb Button' in your PG2 display to call the 'Open' or 'Explorer' verb on the Report Aspect.
Add new comment