Cannot Install Wisej.Web.Ext.PrintPreview.dll Extension Wisej 2.5

0
0

Hello,

I’ve been successfully implementing my Wisej app using vb.net and Visual Studio 2022, but I hit a snag working on a process to print pages.  Application.Print(Me) works, but I need to more precisely configure printer settings for pdfs of various page sizes, landscape, etc..  The PrintPreview extension looks like the ticket, but I can’t get the extension installed to try it.  1) I can’t find it using Nuget manager.  2) I downloaded the solution from GitHub and built the dll but it won’t allow me to drag and drop it into the tools menu in VS.  It simply beeps and nothing happens. 3) I see the manual way to insert it via RegEdit in the registry but I’m not comfortable messing with the registry. Adding the HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\17.0_517421c4\ToolboxControlsInstaller\Wisej.Web.Ext.PrintPreview  looks like trouble since this is new territory for me.

My questions are, will the PrintPreview extension provide the control I need over the formatting of the printed document and if so how do I add the extension?

Keep in mind I’m still using 2.5, I’m keen to update to 3 but I want to push the app closer to completion before I create a potential new issue with my code.  I’m a bit superstitious with updates especially given the last VS 2022 update which knocked me out of commission until I rolled it back.

Thanks very much!

Gerry

  • You must to post comments
0
0

1) I can’t find it using Nuget manager.
PrintPreview extension is not on nuget.
2) I downloaded the solution from GitHub and built the dll but it won’t allow me to drag and drop it into the tools menu in VS.
There is nothing to add to the toolbox- it’s not like, say, a button control where you can drag and drop it from the toolbox.

You can add it to your project by referencing the dll. (In Solution Explorer: References -> right-click, choose “Add Reference”, click “Browse”, select the dll)

PrintPreview is a dialog and a control that can be used in code to preview wmf or pdf files. It displays a System.Drawing.Printing.PrintDocument. All formatting or rendering support is part of System.Drawing.

For any additional help on PrintPreview, refer to Microsoft System.Drawing documentation: https://learn.microsoft.com/en-us/dotnet/api/system.drawing?view=net-8.0

For any additional questions, please refer to the forum guidelines under “Before Posting An Issue”: https://wisej.com/support/question/forum-guidelines

Hope this helps!
-Julie

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.