Click here to Skip to main content
15,903,175 members
Home / Discussions / C#
   

C#

 
GeneralRe: Create image from panel control to include child controls Pin
Danzy8312-Nov-11 2:40
Danzy8312-Nov-11 2:40 
GeneralRe: Create image from panel control to include child controls Pin
Matt U.12-Nov-11 2:55
Matt U.12-Nov-11 2:55 
GeneralRe: Create image from panel control to include child controls Pin
Danzy8312-Nov-11 3:36
Danzy8312-Nov-11 3:36 
AnswerRe: Create image from panel control to include child controls Pin
Luc Pattyn12-Nov-11 4:09
sitebuilderLuc Pattyn12-Nov-11 4:09 
GeneralRe: Create image from panel control to include child controls Pin
Danzy8312-Nov-11 4:29
Danzy8312-Nov-11 4:29 
AnswerRe: Create image from panel control to include child controls Pin
Luc Pattyn12-Nov-11 4:38
sitebuilderLuc Pattyn12-Nov-11 4:38 
GeneralRe: Create image from panel control to include child controls Pin
Danzy8312-Nov-11 4:53
Danzy8312-Nov-11 4:53 
AnswerRe: Create image from panel control to include child controls Pin
Luc Pattyn12-Nov-11 5:25
sitebuilderLuc Pattyn12-Nov-11 5:25 
I hope you did increase the bitmap size by the DPI ration, and then applied SetResolution before executing Griff's panel1.DrawToBitmap(...). I expect it to work properly, but then printing is a complex topic.

Warning: when you get it to work, it will show what the screen shows, even when the printer page is larger. There are ways to print all the content of panning Controls (ListBox, RichTextBox, DataGridView, ...) , that involves a fair amount of P/Invoke and Windows magic.

FWIW: when I want full control of the printed output, I simply avoid all WinForms Controls, and construct my own page control using Graphics.DrawXyz into a PrintDocument. My Sokoban article holds an example.

Smile | :)
Luc Pattyn [My Articles] Nil Volentibus Arduum

AnswerRe: Create image from panel control to include child controls Pin
OriginalGriff12-Nov-11 4:53
mveOriginalGriff12-Nov-11 4:53 
GeneralRe: Create image from panel control to include child controls Pin
Danzy8312-Nov-11 4:56
Danzy8312-Nov-11 4:56 
AnswerRe: Create image from panel control to include child controls Pin
OriginalGriff12-Nov-11 5:11
mveOriginalGriff12-Nov-11 5:11 
QuestionPInvoke registry value - Help please. Pin
CCodeNewbie11-Nov-11 23:26
CCodeNewbie11-Nov-11 23:26 
AnswerRe: PInvoke registry value - Help please. Pin
Richard MacCutchan12-Nov-11 0:11
mveRichard MacCutchan12-Nov-11 0:11 
AnswerRe: PInvoke registry value - Help please. Pin
Luc Pattyn12-Nov-11 1:50
sitebuilderLuc Pattyn12-Nov-11 1:50 
AnswerRe: PInvoke registry value - Help please. Pin
CCodeNewbie12-Nov-11 2:42
CCodeNewbie12-Nov-11 2:42 
GeneralRe: PInvoke registry value - Help please. Pin
Richard MacCutchan12-Nov-11 3:20
mveRichard MacCutchan12-Nov-11 3:20 
AnswerRe: PInvoke registry value - Help please. Pin
Luc Pattyn12-Nov-11 4:20
sitebuilderLuc Pattyn12-Nov-11 4:20 
GeneralRe: PInvoke registry value - Help please. Pin
Richard MacCutchan12-Nov-11 5:38
mveRichard MacCutchan12-Nov-11 5:38 
GeneralRe: PInvoke registry value - Help please. Pin
CCodeNewbie12-Nov-11 4:22
CCodeNewbie12-Nov-11 4:22 
GeneralRe: PInvoke registry value - Help please. Pin
Richard MacCutchan12-Nov-11 6:30
mveRichard MacCutchan12-Nov-11 6:30 
GeneralRe: PInvoke registry value - Help please. Pin
Luc Pattyn12-Nov-11 6:59
sitebuilderLuc Pattyn12-Nov-11 6:59 
GeneralRe: PInvoke registry value - Help please. Pin
Richard MacCutchan12-Nov-11 7:08
mveRichard MacCutchan12-Nov-11 7:08 
AnswerRe: PInvoke registry value - Help please. Pin
Luc Pattyn12-Nov-11 7:28
sitebuilderLuc Pattyn12-Nov-11 7:28 
GeneralRe: PInvoke registry value - Help please. Pin
Richard MacCutchan12-Nov-11 7:35
mveRichard MacCutchan12-Nov-11 7:35 
GeneralRe: PInvoke registry value - Help please. Pin
Luc Pattyn12-Nov-11 7:44
sitebuilderLuc Pattyn12-Nov-11 7:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.