Sample Code: How to use the BIP in your site
BIP quick start
1. Within the downloaded zip file you will find a bin and BIP_Resources directories.
From the bin directory remove the BIP.dll file and add this to the bin directory
of your project. Also add the BIP_Resources directory to your project.
2. Add the following directive at the top of the page you want the BIP to appear
in
<%@ Register TagPrefix="ExportTechnologies" Namespace= "ExportTechnologies.WebControls.BIP"
Assembly= "ExportTechnologies.WebControls.BIP" %>
3. Add the following line to the place in the page where you want the BIP to
appear
<ExportTechnologies:BIP ID="BIP1" runat="server"/>
Working with the BIP's properties
The BIP has many properties which can be set during design time. Two of these
properties must be set on the loading of the page containing the control
SelectedImages - as detailed above you must set this property so that the BIP has
images to process
SaveImageFolder - set this property per the above instructions to give the BIP a
target folder for the newly created / copied images
After setting these properties, only the target folder may be changed, by typing
a new physical path into the text box provided. The selected images, once set, cannot
be changed at the moment. We have steered clear of implementing a browser for files
on the server as we feel that the majority of people will have their own methods
of obtaining files or directories. If an additional directory control would be useful,
please let us know via the feedback form above.
Via the user interface you specify all other available options for the BIP, and
on clicking the Create Images button, the BIP takes care of the rest.
|