To create the custom panel for TravelDocs, you need to
open the DotEditPanels project in Microsoft Visual
Studio and generate the C# class.
- Close DotEdit if it is running.
- In Visual Studio, open the DotEditPanels project. (See Opening the DotEditPanels C# project.)
- Browse the Solution Explorer window.
- Press Ctrl+F5 (Start Without Debugging).
- If the DotEdit Panels.dotMaster is not displayed by default,
click the drop-down menu and choose DotEditPanels.dotMaster.
- Click Browse […] next to the DCO
Setup field and then select the file C:\Datacap\TravelDocs\dco_TravelDocs\TravelDocs.xml.
- Leave the Layout XML field empty
because there is no XML layout file for this tutorial.
Tip: Use the Layout XML field to specify
a panel layout XML file for a previously existing panel. You can create
the layout XML file from the dcf file that was
used in Datacap Batch Pilot verify projects. After you select an XML
layout file, DotEdit creates the new panel with the controls in the
same position as in the previously existing panel.
- In the Page Type field, select the
page for which to create the custom panel. For example,
the TravelDocs application has six page types, that include Rental_Agreement,
Optional_Insurance, Air_Ticket, Room_Receipt, Meals, Other_Charges.
- In the New name field, enter the
name for the new C# class (for example, Custom_TravelDocsPage.cs).
Tip: If this panel is your first custom TravelDocs
panel, you can leave the default name. To create a new version, enter
a new name.
- Click Create. DotEdit displays a message to
indicate that you must reload the project.
- Click OK to close the message window
and then close the dotmaster UserControl TestContainer window.
- Click Reload.
- In the Solution Explorer, double-click Custom_TravelDocsPage.cs (or
the name you entered) to display the custom panel for the TravelDocs
application.