Click here to Skip to main content
15,902,114 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Accessing a VC++ DLL in VB Pin
Dave Kreskowiak10-Sep-03 3:31
mveDave Kreskowiak10-Sep-03 3:31 
GeneralRe: Accessing a VC++ DLL in VB Pin
Member 57284910-Sep-03 4:00
Member 57284910-Sep-03 4:00 
GeneralRe: Accessing a VC++ DLL in VB Pin
Dave Kreskowiak11-Sep-03 4:22
mveDave Kreskowiak11-Sep-03 4:22 
GeneralVB6 Connecting to Lotus Notes and Novell Groupwise Pin
matthew l7-Sep-03 23:52
matthew l7-Sep-03 23:52 
GeneralForm as Startup Object Pin
SuperGeek7-Sep-03 13:34
SuperGeek7-Sep-03 13:34 
GeneralRe: Form as Startup Object Pin
Nick Seng7-Sep-03 15:49
Nick Seng7-Sep-03 15:49 
Generalconvert integer to points Pin
pnpfriend7-Sep-03 5:12
pnpfriend7-Sep-03 5:12 
GeneralPrint Preview an Imgae Pin
su_see7-Sep-03 0:10
su_see7-Sep-03 0:10 
Hi,

Currently, I am using visual studio.net to program. The language used is vb.net.

I need to build an application that allows me to print preview an image and then print the image out. I have draged in a PrintPreviewDialog control from the toolbar and also a OpenFileDialog control for me to browse the image that I want to preview and print it out.In my codes i wrote the followings:

Codes:
PrintPreviewDialog1.ShowDialog()
Dim printDoc As New PrintDocument()
printDoc.DocumentName = OpenFileDialog1.FileName
PrintPreviewDialog1.Document = printDoc

However, the above codes work well for text document and not for image. If I choose an image, the output shown was a white blank piece of paper. Is there a way to change the printpreview dialog settings or there are any alternatives to preview and print an image file? Thank you in advance.


GeneralLandscape print in datareport Pin
Meysam Khayatan6-Sep-03 10:15
Meysam Khayatan6-Sep-03 10:15 
GeneralSome problem in FlexGrid Pin
Meysam Khayatan6-Sep-03 2:07
Meysam Khayatan6-Sep-03 2:07 
GeneralAbout DataReport Pin
Meysam Khayatan6-Sep-03 2:05
Meysam Khayatan6-Sep-03 2:05 
GeneralCaption bar/ title bar Pin
always995-Sep-03 23:18
always995-Sep-03 23:18 
GeneralRe: Caption bar/ title bar Pin
Meysam Khayatan6-Sep-03 2:12
Meysam Khayatan6-Sep-03 2:12 
GeneralRe: Caption bar/ title bar Pin
always996-Sep-03 2:42
always996-Sep-03 2:42 
GeneralLoading microsoft word in windowa application Pin
su_see5-Sep-03 17:16
su_see5-Sep-03 17:16 
GeneralLaunch apps from VB.NET Pin
CPlacek5-Sep-03 3:20
CPlacek5-Sep-03 3:20 
GeneralRe: Launch apps from VB.NET Pin
Nick Seng5-Sep-03 15:59
Nick Seng5-Sep-03 15:59 
GeneralRe: Launch apps from VB.NET Pin
CPlacek8-Sep-03 4:29
CPlacek8-Sep-03 4:29 
GeneralClosing recordset object Pin
iluha4-Sep-03 14:33
iluha4-Sep-03 14:33 
GeneralRe: Closing recordset object Pin
Hisi4-Sep-03 16:24
Hisi4-Sep-03 16:24 
GeneralRe: Closing recordset object Pin
Hesham Amin4-Sep-03 21:03
Hesham Amin4-Sep-03 21:03 
GeneralVB.Net Help Pin
bmpu_ssss4-Sep-03 10:15
bmpu_ssss4-Sep-03 10:15 
GeneralNeed Help on Drag and Drop/Beginner Pin
barry5474-Sep-03 9:24
barry5474-Sep-03 9:24 
GeneralHelp needed with oshell.FindFiles... Pin
Invincer4-Sep-03 3:21
Invincer4-Sep-03 3:21 
GeneralSharing a module (containing classes) between projects Pin
Matt Philmon3-Sep-03 11:32
Matt Philmon3-Sep-03 11:32 

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.