![]() 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. You really shouldn't be printing a picture of a form in the vast majority of cases. That said, the PrintForm component in the PowerPacks was always a bit of a hack. There is also this NuGet package that may help. I 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. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |