Accusoft.ImagXpress12.Net
ImageXView Constructor()
See Also  Example Send Feedback
Accusoft.ImagXpressSdk Namespace > ImageXView Class > ImageXView Constructor : ImageXView Constructor()




Glossary Item Box

Initializes a new unlicensed instance of the ImageXView class.

Syntax

 
Visual Basic
C#
Managed Extensions for C++
C++/CLI
 
 

Remarks

This is the default constructor for the ImageXView class. If you need to create an ImageXView dynamically it is strongly recommended that you do so with one of the other constructors. If you use this constructor you will need to set the Workspace property before displaying the control on the form or calling one of its methods. See the example below on how to do this properly.

Note: Failure to set the Workspace property with a valid ImagXpress workspace component when you use this constructor will cause the control to display a warning message in its window as well as throw an exception on certain properties and methods.

Example

This sample shows how to use this constructor properly to avoid licensing issues.
C#Copy Code
public partial class Form1 : Form
{
		public Form1()
		{
			InitializeComponent();
			// Create an ImagXpress object for licensing
			Accusoft.ImagXpressSdk.ImagXpress imagXpress1 = new Accusoft.ImagXpressSdk.ImagXpress();
         //***The SetSolutionName, SetSolutionKey and possibly the SetOEMLicenseKey methods must be called to distribute the runtime***
         imagXpress1.Licensing.SetSolutionName(“YourSolutionName”);
         imagXpress1.Licensing.SetSolutionKey(12345,12345,12345,12345);
         imagXpress1.Licensing.SetOEMLicenseKey(“1.0.AStringForOEMLicensingContactAccusoftSalesForMoreInformation…”);
 
			// if you use the default empty constructor, you must call the Workspace property before
			// displaying the control or calling one of its methods.
			Accusoft.ImagXpressSdk.ImageXView imageXView1 = new Accusoft.ImagXpressSdk.ImageXView();
			imageXView1.Workspace = imagXpress1;
		}
}

See Also

©2013. Accusoft Corporation. All Rights Reserved.