To create a custom DotEdit panel for the Survey sample,
you need to generate custom forms for applications with multiple-page
documents, implement combination box options and list box options,
and interpret fields with multiple optical mark recognition (OMR)
fields.
Because the Survey application includes two page types,
you need to crate a custom panel for each page type.
- Close Taskmaster DotEdit if
it is running.
- In Microsoft Visual
Studio, open the DotEditPanels project. (See Setting
up the DotEdit development environment.)
- Browse the Solution Explorer window.
- If there are two existing custom panels called Survey_Page1.cs and Survey_Page2.cs,
right-click the two .cs files and choose Exclude From Project.
Important: If you do not exclude these two panels
from the project, this build error is generated: The file xxx could
not be added to the project. A file with the same path already exists
in the project. If you encounter any problems, try closing and
re-opening the project.
- Press Ctrl+F5 (Start Without Debugging).
- Click the Browse […] button next
to the DCO Setup field and then select the
file C:\Datacap\Survey\dco_Survey\Survey.xml.
- Leave the Layout XML field empty
because there is no XML layout file for this tutorial.
Tip: The Layout XML field allows you
to specify a panel layout XML file for a previously existing panel.
If you have an XML layout file, you can select it and DotEdit attempts
to create the new panel with the controls positioned as they were
in the previously existing panel.
- In the Page Type field, select Survey_Page1.
- In the New name field, enter the
name for the new C# class. If this is your first custom Survey panel,
you can leave the default name. To create a new version, enter a new
name.
- Click Create. Visual
Studio displays a message indicating that you need to reload the project.
- Click OK to close the message window
and then close the dotmaster UserControl TestContainer window.
- Click Reload.
- Repeat the step numbers 8 through 12, but this time select Survey_Page2 as
the Page Type.
- Click Build > Rebuild Solution to
build the new DLL.