Applies To:
  • CitectSCADA 6.xx
  • CitectHMI 6.xx

Summary:
I would like to use CitectSCADA to display a Rich Text File (RTF) with pictures. Is this possible?
 

Solution:
You can use the ActiveX component called "Microsoft Web browser" to achieve this.

You will also need the following cicode function:

FUNCTION HtmFileOpen(STRING An, STRING FileName)

    STRING sFile;
    sFile =
FormOpenFile("Open", FileName, "*.*");
        IF sFile <> "" THEN 
            _ObjectCallMethod
(
ObjectByName(An), "Navigate", sFile, 0, 0, 0 ,0);
        END
END


Paste the ActiveX "Microsoft Web Browser" onto your page and use a button to call this function:

HtmFileOpen("AN36", "*.*") where AN36 will need to replaced with the AN number of the ActiveX (Microsoft Web Browser).

A pop up will appear each time the button is pressed at runtime, which will allow you to choose the appropriate RTF file to display (which can have pictures in it).

Note: The ActiveX will also allow you to open Excel files, PDF files, any picture files and even Powerpoint.

 

Keywords:
Pictures, JPEG  

Attachments