Show/Hide Toolbars

Inventu Viewer+ .NET Programmer's Reference

Navigation: HostConnection Class > Methods

StartSessionPrint

Scroll Prev Top Next More

This method is unrelated to host device printing--it is designed for a client process to utilize the event management and print file support in the core service.

 

bool HostConnection.StartSessionPrint();

 

If successful, will return the active print server work folder combined with the active working (temporary and unique) print file name.

 

Example:

 

         this.printWorkFile = serverMacro.host.oConn.StartSessionPrint() + ".tmp";

 

         if (this.printWorkFile.StartsWith("No "))

         {

                 this.errorMessage = "StartSessionPrint failed with '" + this.printWorkFile + "'";

                 return;

         }

         sw = new StreamWriter(printWorkFile);

         if (sw == null)

         {

                 this.errorMessage = "StartSessionPrint failed to open '" + printWorkFile + "'";

         }

 

See EndSessionPrint() for completing a session print job.