Adding a PdfViewer Screen

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:

  1. In the Solution Explorer, right-click the Screens folder and select Add Screen.
  2. 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.
  3. 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.
  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.
    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.

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback