|
-
Aug 20th, 2021, 08:45 AM
#3
Thread Starter
Member
Re: Small trouble with PowerPacks in Visual Studio 2019 Community
 Originally Posted by jmcilhinney
The PrintForm component is a bit of a hack really. Generally speaking, you should not be printing a form but rather the data that the form contains, formatted appropriately. If you really need to print the actual UI then you can still do that without a PrintForm, as all controls have a DrawToBitmap method. I suspect that that is what PrintForm uses internally. Use a PrintDocument to do your printing and print the data is that's all you need or call DrawToBitmap and print that result if you really need it.
Still what bugs me is that PowerPacks works fine for another project on the same computer. It could be an issue of just the reference to it. I know too little to be able to figure out what to add and from where.
PrintDocument might need a lot of code because the form has a lot of text boxes and labels besides one image.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|