AutoGUIHTML Method

 

Description

This method converts the current screen information into an HTML formatted text string. The text string will always begin with the <pre> and end with the </pre> HTML tags.
 

Applies To Objects

Screen
 

Syntax

Screen.AutoGUIHTML()

 

Parameters

None

 

Return Values

Returns an HTML formatted text string. For more information, refer to the AutoHTML ASP.NET Server sample application.

 

For example below is the first screen connecting to Zephyr's mainframe:

 

<pre>

<tt id=p0>

<textarea id=u0  name=zepi_000_0001_0800 rows=10 cols=81 wrap=soft onfocus="fnSetCursorPos(1);">                                                                               

            =======   ============     ======       ======                      

            =======   ==============   =======     =======                      

              ===       ===     ====     ======   ======                        

              ===       ==WELCOME==TO  THE====== =======                        

              ===   IBM Innovation Center - Dallas== ===                        

              ===       ===     ====     ===  =====  ===                        

            =======   ==============   =====   ===   =====                      

            =======   ============     =====    =    =====                      

                                                                                

 </textarea>

 <input id=u1 type=text name=zepi_000_0802_0080 size=78 maxlength=80 value="    MVR09GA       ***  z/OS V1 R9   via TCPIP Telnet ***" onfocus="fnSetCursorPos(802);">

 

<textarea id=u0  name=zepi_000_0883_0320 rows=4 cols=81 wrap=soft onfocus="fnSetCursorPos(883);">                                                                             

                                                                                

                                                                                

                                                                                

   </textarea>

 <input id=u1 type=text name=zepi_000_1204_0080 size=76 maxlength=80 value="  Choose from the following commands:" onfocus="fnSetCursorPos(1204);">

 

<textarea id=u0  name=zepi_000_1285_0555 rows=7 cols=81 wrap=soft onfocus="fnSetCursorPos(1285);"> (Not all applications are available in every system.)                     

                                                                                

      TSO    - Logon TSO (24x80)                                                

      IMS    - Logon IMS                                                        

      CICS   - Logon CICS TS 3.2                                                

                                                                                

                                                                                

</textarea>

 <input id=u1 type=text name=zepi_000_1841_0048 size=48 maxlength=48 value="" onfocus="fnSetCursorPos(1841);"><input id=u1 type=text name=zepi_000_1890_0030 size=30 maxlength=30 value="" onfocus="fnSetCursorPos(1890);">

<script>fnMoveFocus("zepi_000_1841_0048");</script>

</pre>

 

Sample VB Code

Private Function GetAutoGUIHTML() As String

 

On Error GoTo DisplayErr:

    GetAutoGUIHTML = m_Screen.AutoGUIHTML()

    Exit Sub

DisplayErr:

    Debug.Print "Failed to get AutoGUIHTML: " & Err.Description

    

End Function

 

Sample C++ Code

CString CVCSampleView:: GetAutoGUIHTML()

{

CString strHTML = "";

try

{

strHTML = m_Screen.AutoGUIHTML();

}

catch (CException* ex)

{

ex->ReportError();

ex->Delete();

}

 

return strHTML;

}

 

Sample C# Code

private string GetAutoGUIHTML()

{

string strHTML = string.Empty ;

try

{

strHTML = m_Screen.AutoGUIHTML();

}

catch (Exception ex)

{

System.Diagnostics.Debug.WriteLine("Failed to get HTML: " + ex.Message );

}

return strHTML;

}