[QUESTION] PrintPreview Using BitBlt |
Post Reply |
Author | |
Xander75
Senior Member Joined: 26 April 2007 Status: Offline Points: 353 |
Post Options
Thanks(0)
Posted: 18 January 2011 at 9:20am |
Hi,
I am currently designing an MDI application that displays a report that uses a Resizer Control to house a PictureBox control as a container for several controls, which include Labels, ReportControl and Barcodes. As you can see from the attached screenshot Figure 1 (costs blanked for obvious reasons) I have this working as I wish. However a requirement I have is to Print, Print Preview and Export to PDF all of which I have managed to do using BitBlt to get a snapshot of the PictureBox Container. Figure 1 If the program is on a laptop or screen with a smaller resolution the resizer control correctly shows the scrollbars, however then I have an issue with the Print, Print Preview and Export to PDF... see attached screenshot Figure 2. Although this is an issue, most users here have 19" Monitors therefore should never have this issue, but it would be good to resolve this. Figure 2 Does anyone know of a way of Printing and Previewing a PictureBox container that contains several different type of controls? Due to the PictureBox being larger than the hidden area it is not painting the controls, instead this is painting what is on top of the hidden area of the PictureBox! Any help would be appreciated. Also I would be willing to upload the code that does the Print, PrintPreview & Export to PDF if requested. Though I would need to code this into a Sample application, when I get some free time. I have resolved this for both Printing and Exporting to PDF using the example code below however I need to see if I can get this to work with the Codejock PrintPreview control:
|
|
Product: Xtreme SuitePro (ActiveX) v15.3.1
Platform: Windows 7 64-bit (SP1) Professional Edition Languages: C#.Net using Visual Studio 2012 & Visual Basic 6.0 (SP6) |
|
Xander75
Senior Member Joined: 26 April 2007 Status: Offline Points: 353 |
Post Options
Thanks(0)
|
Hi,
Just thought I would say that using the code above has resolved my print and export to pdf issue. However I can only seem to use the PrintPreview using BitBlt... unless anyone knows a way of displaying an image from a PictureBox on the PrintPreview and would like to share! All these views and not a peep |
|
Product: Xtreme SuitePro (ActiveX) v15.3.1
Platform: Windows 7 64-bit (SP1) Professional Edition Languages: C#.Net using Visual Studio 2012 & Visual Basic 6.0 (SP6) |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions 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 |