If they haven't fixed that, you may need to go back two or three versions to get one that works correctly. Just be aware that there were at least a couple of versions of the NuGet package that had a bug that prevented the control displaying. If I'm not mistaken, you need to install something on your machine first, then add the appropriate NuGet package to your project. If you do some searching then you should be able to find a more recent version, which would probably be v15. call DrawToBitmap on the form to create the picture and then use DrawImage with a PrintDocument.Īs for the ReportViewer, assuming that it is the standard Microsoft SSRS control, it is still available but you may have trouble getting the version used in that old project, depending on what it is. If you really want to same output as the PrintForm component then you can always do as it does internally, i.e. You should generally use a PrintDocument to print just the data you need. There are free software archiving sites still out there that still carry it. You really shouldn't be printing a picture of a form in the vast majority of cases. The 9.0 version can still be found online, except at Microsoft Downloads. That said, the PrintForm component in the PowerPacks was always a bit of a hack. There is also this NuGet package that may help. (new don't think that you can get an official download from Microsoft any more but, if you search online, you should be able to find third-party download links. This.StandardFiltersToUseRectangleShape = new () Here's the code where the rectangle is defined: private StandardFiltersToUseRectangleShape Here's the choose toolbox item where you can see RectangleShape is missing: How can I either get them to display in the design view or add new ones through the toolbox? Net Framework Components), but the shapes like Rectangle Shape are missing. I tried to add them to the toolbox (General, Choose Items. I've got the Power Pack dll in references. When I open it in VS 2017, none of the Power Pack shapes are show in the design view. I've got a windows forms app created in an older version of Visual Studio.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |