Click here to Skip to main content
15,881,812 members
Home / Discussions / C#
   

C#

 
GeneralGame of life Pin
lssu22-Apr-04 8:06
lssu22-Apr-04 8:06 
GeneralWeb Parts for SharePoint Pin
Mabuti22-Apr-04 7:17
Mabuti22-Apr-04 7:17 
GeneralRe: Web Parts for SharePoint Pin
Heath Stewart22-Apr-04 7:27
protectorHeath Stewart22-Apr-04 7:27 
GeneralRe: Web Parts for SharePoint Pin
Daniel M. Edwards22-Apr-04 13:10
Daniel M. Edwards22-Apr-04 13:10 
GeneralColumns in DataColumn Pin
PiscinePatel22-Apr-04 6:25
PiscinePatel22-Apr-04 6:25 
GeneralRe: Columns in DataColumn Pin
Heath Stewart22-Apr-04 7:39
protectorHeath Stewart22-Apr-04 7:39 
Generaldocument Pin
cmarmr22-Apr-04 5:47
cmarmr22-Apr-04 5:47 
GeneralRe: document Pin
Heath Stewart22-Apr-04 7:34
protectorHeath Stewart22-Apr-04 7:34 
If you're referring to a document format like Word documents, then you need to use the Office PIAs which providing printing methods.

If you want to create a conceptual document that merely holds a list of images, then it's a different story.

You could, for example, extend PrintDocument and add an ArrayList or something that contains images. In your print event overrides you need to not only enumerate those images (not in the handler, mind you, but keeping track of the position since the PrintPage event is called once per printed page) but determine whether or not one image will fit on a page in whole or in part. There are plenty of examples of this both on MSDN[^], CodeProject (I believe), and elsewhere on the web. It's really not difficult, though, you just have to keep track of state or decide to resize your images - or allow for both and use a user preference to determine which way to go.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: document Pin
cmarmr22-Apr-04 7:51
cmarmr22-Apr-04 7:51 
GeneralRe: document Pin
Heath Stewart22-Apr-04 8:48
protectorHeath Stewart22-Apr-04 8:48 
GeneralRe: document Pin
cmarmr23-Apr-04 3:29
cmarmr23-Apr-04 3:29 
GeneralRe: document Pin
Heath Stewart23-Apr-04 3:45
protectorHeath Stewart23-Apr-04 3:45 
GeneralRe: document Pin
cmarmr26-Apr-04 11:01
cmarmr26-Apr-04 11:01 
GeneralSetup & deployment Project - Desktop shortcut - unable to edit target property Pin
Ruchi Gupta22-Apr-04 5:33
Ruchi Gupta22-Apr-04 5:33 
GeneralRe: Setup & deployment Project - Desktop shortcut - unable to edit target property Pin
Heath Stewart22-Apr-04 7:31
protectorHeath Stewart22-Apr-04 7:31 
GeneralRe: Setup & Deployment project - "All User" installation Pin
Heath Stewart22-Apr-04 4:57
protectorHeath Stewart22-Apr-04 4:57 
GeneralRe: Setup & Deployment project - "All User" installation Pin
Ruchi Gupta22-Apr-04 5:20
Ruchi Gupta22-Apr-04 5:20 
GeneralMulti images in each row in a listbox Pin
thomasa22-Apr-04 4:38
thomasa22-Apr-04 4:38 
GeneralRe: Multi images in each row in a listbox Pin
patnsnaudy22-Apr-04 4:52
patnsnaudy22-Apr-04 4:52 
GeneralInserting html code on a textbox control Pin
devgeez22-Apr-04 4:36
devgeez22-Apr-04 4:36 
GeneralRe: Inserting html code on a textbox control Pin
devgeez22-Apr-04 5:05
devgeez22-Apr-04 5:05 
GeneralRe: Inserting html code on a textbox control Pin
Heath Stewart22-Apr-04 5:09
protectorHeath Stewart22-Apr-04 5:09 
GeneralRe: Inserting html code on a textbox control Pin
Heath Stewart22-Apr-04 5:09
protectorHeath Stewart22-Apr-04 5:09 
GeneralLoading in old MFC Serialized files Pin
Simon Wren22-Apr-04 4:07
professionalSimon Wren22-Apr-04 4:07 
GeneralRe: Loading in old MFC Serialized files Pin
Heath Stewart22-Apr-04 4:10
protectorHeath Stewart22-Apr-04 4:10 

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.