www.gnostice.com 

BeginDoc Method

Top  Previous  Next

Starts a document creation process.

 

 

 

 

Syntax

 

 

[VC++]

void BeginDoc();

 

[C#]

public abstract new void BeginDoc (  )

 

[VB]

Sub BeginDoc()

 

 

 

 

 

 

Remarks

 

 

Call BeginDoc to initiate a document creation process. The text, images and shapes are to be rendered only after calling this method. This method triggers the OnBeginDoc event.

 

 

The document is finally written to the output file or stream when the EndDoc method is called.

 

 

 

 

Example Code

 

 

[VC++]

m_Engine.SetFileName("Sample");

m_Engine.BeginDoc();

m_Engine.TextOutXY(1, 1, "Gnostice eDocEngine ActiveX");

m_Engine.EndDoc();        

 

 

 

[VB]

With gtEngineX1

       .FileName = "Sample"

       .BeginDoc       

       .TextOutXY 1, 1, "Gnostice eDocEngine ActiveX"       

       .EndDoc

End With

 

[C#]

       axgtEngineX1.FileName = "Sample"; 

  axgtEngineX1.BeginDoc(); 

  axgtEngineX1.TextOutXY( 1, 1, "Gnostice eDocEngine ActiveX" );

  axgtEngineX1.EndDoc(); 

 

 

 

See Also

 

 

EndDoc, OnBeforeBeginDoc