Welcome Guest! To enable all features please Login or Register.



Go to last post Go to first unread
Paul Rayman  
#1 Posted : Tuesday, January 5, 2016 6:43:54 AM(UTC)
Paul Rayman

Rank: Administration

Groups: Administrators
Joined: 1/5/2016(UTC)
Posts: 1,095

Thanks: 7 times
Was thanked: 128 time(s) in 125 post(s)
I installed the Pdfium.N0et SDK with the nuget package manager, the DLL is loaded into my project, but I cannot find this PdfViewer item in my ToolBox in the designer view.
Can you help me with this?

NuGet is focused on installing libraries and tools into a Visual Studio solution. It does not explicitly install anything outside of that folder such as UserControls into Toolbox, so you must do it yourself.

Using the Visual Studio menus
  1. Open the form file of your project's main window in the Designer. For example, it would be MainForm.cs or UserControl1.cs.

  2. In the Toolbox, select the tab where you want to add the control.

  3. Right-click the Toolbox and select Choose Items from the shortcut menu.

    The Choose Toolbox Items dialog box opens. The below picture shows the Choose Toolbox Items dialog box.

    Choose Toolbox Items dialog

  4. Click the .NET Framework Components tab.

  5. Click the Browse button. In the Open dialog box, navigate to the Patagames.Pdf.WinForms.dll assembly, select it and click Open.
    If you use the Nuget Package Manager to install Pdfium.Net SDK then the file is located in the solution directory\packages\Pdfium.Net.SDK.2.x.x\lib\net45 (20, 30, 35 OR 40 - it depends on your project type)

  6. Put a check mark next to the control, and then click OK.
    The PdfViewer control appears at the bottom of the selected tab in the Toolbox.

  7. From the Toolbox, drag the control onto the design surface.
    The PdfViewer control appears on the design surface.

Using the the drag-drop approach

  1. Run Visual Studio 2005/2008/2010/2012/2013/2015/2017.

  2. Open any windows forms project/solution.

  3. Expand the Toolbox.

  4. Right-click the Toolbox in the empty area underneath and choose Add Tab to create a new tab. Name the tab "Patagames UI for WinForms".

  5. Open a Windows Explorer and locate the Patagames assemblies folder.

  6. Select Patagames.Pdf.WinFowms.dll and drag-drop them to the empty space in the newly created tab in Visual Studio

Resetting the toolbox through the Reset context command will remove the tools from the toolbox. If you need to reset the toolbox, just add the controls as described above.

Edited by user Wednesday, July 18, 2018 6:45:17 AM(UTC)  | Reason: Not specified

Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.