Visit Gigasoft's Web Site
 ProEssentials v9 Help

SerializeActiveXToFile

Scope

Pego, Pesgo, Pe3do, Pepso, Pepco

 

public int PeFunction.SerializeActiveXToFile( string fileName )

Parameter

Description

fileName

Name of file to create

The SerializeActiveXToFile function is used to create a file representing a stored binary ActiveX which can then be used as the target for the DATA attribute of an OBJECT tag within an HTML page.

 

Returns

NonZero if the function was successful, otherwise Zero.

 

Comments

PeFunction.SerializeActiveXToFile members of Pego.PeFunction, Pesgo.PeFunction, Pe3do.PeFunction, Pepso.PeFunction, Pepco.PeFunction

 

 

HTML / ASP Example

For example, SerializeActiveXToFile is called with the fileName "DefaultData.bin". Later an HTML page can use this file as part of the DATA attribute to construct an ActiveX based on this stored state.

 

<HTML>

<HEAD></HEAD>

<BODY>

<P>Graph Object Tag with Data Attribute.</P>

<OBJECT classid="clsid:C612BED1-4A73-456F-BAF7-5FF010070F7E"

DATA="http://www.yourserver.com/DefaultData.bin"

WIDTH="500"

HEIGHT="500" VIEWASTEXT> 

</OBJECT>

</BODY>

</HTML>

 

Within an ASP.NET project, the ProEssentials WebForm interfaces contains a property called ImageUrl which can contain this same name "DefaultData.bin" which causes the web page to open with an ActiveX in the provided default state. Granted RenderingType is also set to ActiveX.