Show/Hide Toolbars

Inventu Viewer+ .NET Programmer's Reference

Navigation: HostConnection Class > Methods

EndSessionPrint

Scroll Prev Top Next More

Ends active session-based printing (not device printing) -- see StartSessionPrint on starting a session print job.

 

String HostConnection.EndSessionPrint(string fileType);

 

Arguments

 

HostConnection

Required. HostConnection class Reference (this is a static method, no HostConnection object need be created prior to calling this method

 

fileType

Required. The file type that has been written and will be alerted to the active session terminal emulation logic.

 

Remarks

 

Closes the active session print.

 

Example:

 

 public virtual void EndPrinting()

 {

         if (this.sw!=null)

         {

                 this.sw.Write(PCL_RESET);

                 this.sw.Close();

                 this.sw = null;

         }

         if (!this.sessionPrintEnded)

         {

                 this.serverMacro.host.oConn.EndSessionPrint("PCL");

                 this.sessionPrintEnded = true;

         }

 }

 

 

See Also

 

StartSessionPrint

 

Applies To: HostConnection object

 


© 2022 Inventu Corporation