Adding a PdfViewer Screen

You can use the ComponentOne PdfViewer Screen template to add an Adobe document viewer to your project.

To add a ComponentOne PdfViewer Screen to your project, follow these steps:

1.   In the Solution Explorer, right-click the Screens folder and select Add Screen.

2.   In the list of screen templates, select ComponentOne PdfViewer Screen.

Note: If you do not see the ComponentOne PdfViewer Screen option, make sure you have installed PdfViewer for LightSwitch and included the extension in the project.

3.   Under Provide screen information, enter a Screen Name. Data sources will not appear  under ScreenData, so you do not need to make a selection.

4.   Click OK. The C1PdfViewer control is automatically added to the screen.

See A Simple PDF Application for instructions on incorporating a PDF into the PdfViewer.

Please note: Even if you activate your license during installation, the first time you run a new PdfViewer application, a reminder screen will appear. To prevent that from happening, open the LightSwitch screen designer, select the C1PdfViewer node, and save the screen. In the Properties window, you should see a green shield icon next to the About C1PdfViewer link. This indicates that C1PdfViewer is licensed. You need to do this for every PdfViewer screen you create.


ComponentOne Logo
Send comments about this topic to ComponentOne.
Copyright © GrapeCity, inc. All rights reserved.