Click here to Skip to main content
15,886,362 members
Home / Discussions / C#
   

C#

 
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 
GeneralRe: document Pin
cmarmr22-Apr-04 7:51
cmarmr22-Apr-04 7:51 
would this print out more the one copy of my image . if not what would i have to change


public string[] files=new string(2)

Private Sub printButton_Click(sender As Object, e As EventArgs)
Try
files[0]= "C:\My Folder\MyFile.bmp"
files[1]= "C:\My Folder\MyFile.bmp"
' Assumes the default printer.
Dim pd As New PrintDocument()
AddHandler pd.PrintPage, AddressOf Me.pd_PrintPage
pd.Print()
Catch ex As Exception
MessageBox.Show("An error occurred while printing", _
ex.ToString())
End Try
End Sub

' Specifies what happens when the PrintPage event is raised.
Private Sub pd_PrintPage(sender As Object, ev As PrintPageEventArgs)
' Draw a picture.
ev.Graphics.DrawImage(Image.FromFile(files[0]), _
ev.Graphics.VisibleClipBounds)
ev.HasMorePages = True

ev.Graphics.DrawImage(Image.FromFile(files[1]), _
ev.Graphics.VisibleClipBounds)

' Indicate that this is the last page to print.
ev.HasMorePages = False
End Sub



chad
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 
GeneralRe: Loading in old MFC Serialized files Pin
Simon Wren22-Apr-04 4:18
professionalSimon Wren22-Apr-04 4:18 

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.