Back

Topic

[KB1166]How to open a pdf from WebVue

Tags: PDF, Scada Basic, Webvue

2 years ago
By LM
Options
Print
Applies to:

PcVue 12 onwards


Summary:

This project demonstrate how to open a pdf either from PcVue or from WebVue.


Details:

1. With PcVue you can copy the pdf file in TP directory of the project.
Then you can add the following instruction in a SCADA Basic program:
Application(“LOAD”, “explorer.exe”, “WebDeploymentTools.pdf”);

It will open the pdf file with the default pdf reader installed on your computer

2. With WebVue it requires to prepare the environment on the Web Server.
First, you need to create a sub directory (Resources for instance) in the Website directory (by default C:\inetpub\SV Website”) of the web server.
Then, you must add a virtual directory on IIS web site, which points to the previously created folder.
Finally restart IIS before executing the following Scada Basic instruction:
Webvue(“HYPERLINK”, “/Resources/WebDeploymentTools.pdf”, 1);

Sample project: OpenPdf.zip

You can also watch the 2 following videos:

Create_directory_and_paste_pdf.wmv

Add_virtual_directory_and_restart_IIS.wmv


Created on: 22 Sep 2022 Last update: 04 Sep 2024