You can use the PdfViewer Screen template to add an Adobe document viewer to your project.
To add a PdfViewer Screen to your project, follow these steps:
- In the Solution Explorer, right-click the Screens folder and select Add Screen.
- In the list of screen templates, select PdfViewer Screen.
|
If you do not see the PdfViewer Screen option, make sure you have installed PdfViewer for LightSwitch and included the extension in the project. |
- Under Provide screen information, enter a Screen Name. Data sources will not appear under Screen Data, so you do not need to make a selection.
- 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.
|
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. |