Click here to Skip to main content
15,887,214 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: running a vb.net program on another comp Pin
Dave Kreskowiak5-Dec-04 3:03
mveDave Kreskowiak5-Dec-04 3:03 
GeneralRe: running a vb.net program on another comp Pin
Mekong River5-Dec-04 3:13
Mekong River5-Dec-04 3:13 
Generalpocket pc problem Pin
Ali Usman4-Dec-04 15:34
Ali Usman4-Dec-04 15:34 
GeneralRe: pocket pc problem Pin
Mitch F.4-Dec-04 15:54
Mitch F.4-Dec-04 15:54 
GeneralRe: pocket pc problem Pin
Dave Kreskowiak5-Dec-04 3:02
mveDave Kreskowiak5-Dec-04 3:02 
GeneralRe: pocket pc problem Pin
Mekong River5-Dec-04 3:23
Mekong River5-Dec-04 3:23 
GeneralAllowing Certain Keys Only Pin
Mitch F.4-Dec-04 14:03
Mitch F.4-Dec-04 14:03 
GeneralPrint Preview "print button" select printer Pin
crsimmons4-Dec-04 6:23
crsimmons4-Dec-04 6:23 
I have two questions about the print preview dialog.
(1) The MSDN talks about a "zoom" property for the print preview control. I am unable to select find or select that property?
(2) I am wanting to call printer dialog box to select a printer from the print preview dialog when the print button is hit.
Any help with either of the questions above is much appreciated.
Thank you,
Chris
_______________________________

Private Sub mnuFilePrintPreview_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles mnuFilePrintPreview.Click
'Show Print Preview
Try

' Create TextPrint object from class that is inherited from PrintDocument, passing in text
Dim MPO As New TextPrint(GetTheText())

' Set font
MPO.Font = New Font("Tahoma", 8)

With preReport 'Print Preview Dialog
.Document = MPO 'prdReport
.WindowState = FormWindowState.Maximized
.Icon = Me.Icon
.AutoScale = True
'.zoom 'I cannot select this property?
.ShowDialog()
End With

'If preReport.ShowDialog() = DialogResult.OK Then
' 'MPO.Print()
' MsgBox("print clicked")
' 'set PrintDialog.Document
' pntDialog.Document() = MPO 'pntDialog is a printer dialog
' If pntDialog.ShowDialog = DialogResult.OK Then
' MPO.Print()
' End If
'End If

Catch ex As Exception
MessageBox.Show("Printing Problem: " & ControlChars.NewLine & ControlChars.Tab & _
ex.Message, "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Information)
End Try
End Sub
GeneralRe: Print Preview "print button" select printer Pin
crsimmons5-Dec-04 2:53
crsimmons5-Dec-04 2:53 
QuestionHow can I cocnect TCP/IP to the Server? Pin
ATC4-Dec-04 4:14
ATC4-Dec-04 4:14 
Generaltroubles with MS.Access & ASP.NET. Pin
gamerPotatoe4-Dec-04 0:09
gamerPotatoe4-Dec-04 0:09 
GeneralRe: troubles with MS.Access & ASP.NET. Pin
Mekong River5-Dec-04 3:29
Mekong River5-Dec-04 3:29 
GeneralCRystal Report Pin
nitin_ion3-Dec-04 18:04
nitin_ion3-Dec-04 18:04 
GeneralDatagrid !!! Urgent Pin
syed saba3-Dec-04 16:22
syed saba3-Dec-04 16:22 
QuestionWindowshade? Pin
TAlvord3-Dec-04 13:32
TAlvord3-Dec-04 13:32 
AnswerRe: Windowshade? Pin
Dave Kreskowiak4-Dec-04 5:52
mveDave Kreskowiak4-Dec-04 5:52 
GeneralReturn the highest value Pin
helpmeplease...3-Dec-04 11:11
helpmeplease...3-Dec-04 11:11 
GeneralRe: Return the highest value Pin
Dave Kreskowiak3-Dec-04 12:35
mveDave Kreskowiak3-Dec-04 12:35 
GeneralRe: Return the highest value Pin
MohammadAmiry4-Dec-04 2:45
MohammadAmiry4-Dec-04 2:45 
QuestionCan Anyone Help me with this one? Pin
Suresh Prasad3-Dec-04 8:41
Suresh Prasad3-Dec-04 8:41 
AnswerRe: Can Anyone Help me with this one? Pin
Jim Matthews3-Dec-04 9:00
Jim Matthews3-Dec-04 9:00 
GeneralRe: Can Anyone Help me with this one? Pin
Suresh Prasad3-Dec-04 10:28
Suresh Prasad3-Dec-04 10:28 
GeneralRe: Can Anyone Help me with this one? Pin
Jim Matthews3-Dec-04 10:51
Jim Matthews3-Dec-04 10:51 
GeneralRe: Can Anyone Help me with this one? Pin
Suresh Prasad3-Dec-04 10:56
Suresh Prasad3-Dec-04 10:56 
GeneralRe: Can Anyone Help me with this one? Pin
Dave Kreskowiak3-Dec-04 12:34
mveDave Kreskowiak3-Dec-04 12:34 

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.