Accusoft.ImagXpress13.Net
ImageXView Constructor()
Example 




Initializes a new unlicensed instance of the ImageXView class.
Syntax
'Declaration
 
Public Function New()
'Usage
 
Dim instance As New ImageXView()
public ImageXView()
public: ImageXView();
public:
ImageXView();
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.
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

Reference

ImageXView Class
ImageXView Members
Overload List

 

 


©2018. Accusoft Corporation. All Rights Reserved.

Send Feedback