Show / Hide Table of Contents

Class WebClientPrint

Provides methods for registering the WebClientPrint script code in ASP.NET Views.

Inheritance
System.Object
WebClientPrint
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace:Neodynamic.SDK.Web
Assembly:cs.temp.dll.dll
Syntax
public class WebClientPrint

Properties

LicenseKey

Gets or sets the LicenseKey.

Declaration
public static string LicenseKey { get; set; }
Property Value
Type Description
System.String

LicenseOwner

Gets or sets the LicenseOwner.

Declaration
public static string LicenseOwner { get; set; }
Property Value
Type Description
System.String

Methods

CreateScript(String, String, String)

Returns a [script] tag linking to the WebClientPrint script code by using the specified URL for the client print job generation.

Declaration
public static string CreateScript(string webClientPrintUrl, string clientPrintJobUrl, string sessionID)
Parameters
Type Name Description
System.String webClientPrintUrl

The URL to the WebClientPrint API (usually a Controller class).

System.String clientPrintJobUrl

The URL to the client print job generation.

System.String sessionID

The current Session ID.

Returns
Type Description
System.String

A [script] tag linking to the WebClientPrint script code by using the specified URL for the client print job generation.

CreateWcppDetectionScript(String, String)

Returns a [script] tag linking to the WCPP-detection script code.

Declaration
public static string CreateWcppDetectionScript(string webClientPrintUrl, string sessionID)
Parameters
Type Name Description
System.String webClientPrintUrl

The URL to the WebClientPrint API.

System.String sessionID

The current Session ID.

Returns
Type Description
System.String

A [script] tag linking to the WCPP-detection script code.

Remarks

The WCPP-detection script code ends with a 'success' or 'failure' status.

You can handle both situation by creating two javascript functions which names must be wcppDetectOnSuccess() and wcppDetectOnFailure(). These two functions will be automatically invoked by the WCPP-detection script code.

The WCPP-detection script uses a delay time variable which by default is 10000 ms (10 sec). You can change it by creating a javascript global variable which name must be wcppPingDelay_ms. For example, to use 5 sec instead of 10, you should add this to your script:

var wcppPingDelay_ms = 5000;

GenerateScript(String, String)

Generates the WebClientPrint scripts based on the specified query string. Result is stored in the ResponseContent

Declaration
public static byte[] GenerateScript(string webClientPrintUrl, string queryString)
Parameters
Type Name Description
System.String webClientPrintUrl
System.String queryString
Returns
Type Description
System.Byte[]

GetProcessRequestType(String)

Determines the type of process request based on the Query String value.

Declaration
public static RequestType GetProcessRequestType(string queryString)
Parameters
Type Name Description
System.String queryString

The query string of the current request.

Returns
Type Description
RequestType

A valid type of process request. In case of an invalid value, an ArgumentException is thrown.

Back to top Copyright © 2003- Neodynamic SRL
http://www.neodynamic.com