Click here to Skip to main content
16,004,969 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Please help with my graduation project Pin
Paul Conrad9-Mar-08 11:55
professionalPaul Conrad9-Mar-08 11:55 
GeneralRe: Please help with my graduation project Pin
Abdduke10-Mar-08 13:31
Abdduke10-Mar-08 13:31 
QuestionWeb service api call pooling? Pin
DuffIT8-Mar-08 0:58
DuffIT8-Mar-08 0:58 
AnswerRe: Web service api call pooling? Pin
Mycroft Holmes8-Mar-08 22:54
professionalMycroft Holmes8-Mar-08 22:54 
GeneralSet round shape of Buttons in vb.net Pin
r_mohd7-Mar-08 23:54
r_mohd7-Mar-08 23:54 
GeneralRe: Set round shape of Buttons in vb.net Pin
Smithers-Jones8-Mar-08 1:19
Smithers-Jones8-Mar-08 1:19 
GeneralRe: Set round shape of Buttons in vb.net Pin
Eslam Afifi8-Mar-08 22:25
Eslam Afifi8-Mar-08 22:25 
GeneralSpecify Paper size for Printing.PrintDocument Pin
teddycrew7-Mar-08 23:47
teddycrew7-Mar-08 23:47 
Hi all, i am using visual studio 2008

Am having problems specifying the papersize to print my graphic to. The follwing isnt generating any errors but also isnt printing A3 on my printer (which is available) keeps defaulting to A4

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click<br />
<br />
        PrintDocument1.PrinterSettings.PrinterName = "8500PS"<br />
<br />
        Dim ps As New Printing.PaperKind<br />
        ps = Printing.PaperKind.A3<br />
        PrintDocument1.DefaultPageSettings.PaperSize.RawKind = ps<br />
<br />
        PrintDocument1.Print()<br />
    End Sub<br />

<br />
    Private Sub PrintDocument1_PrintPage(ByVal sender As Object, ByVal e As System.Drawing.Printing.PrintPageEventArgs) Handles PrintDocument1.PrintPage<br />
        <br />
Dim g As Graphics = e.Graphics<br />
        g.DrawImage(Image.FromFile("C:\1\Winter.png"), 5, 5)<br />
<br />
    End Sub<br />


It is printing A4 every time?

Any help appreciated, thanks
GeneralRe: Specify Paper size for Printing.PrintDocument Pin
Xmen Real 8-Mar-08 3:29
professional Xmen Real 8-Mar-08 3:29 
GeneralRe: Specify Paper size for Printing.PrintDocument Pin
teddycrew9-Mar-08 13:48
teddycrew9-Mar-08 13:48 
GeneralHaving problems with Int32 column Pin
AAGTHosting7-Mar-08 20:22
AAGTHosting7-Mar-08 20:22 
GeneralRe: Having problems with Int32 column Pin
Christian Graus7-Mar-08 21:51
protectorChristian Graus7-Mar-08 21:51 
GeneralRe: Having problems with Int32 column Pin
AAGTHosting8-Mar-08 7:43
AAGTHosting8-Mar-08 7:43 
QuestionHow to rotate a button control n degrees Pin
beaujess7-Mar-08 8:00
beaujess7-Mar-08 8:00 
GeneralRe: How to rotate a button control n degrees Pin
Smithers-Jones7-Mar-08 8:29
Smithers-Jones7-Mar-08 8:29 
GeneralRe: How to rotate a button control n degrees Pin
Paul Conrad7-Mar-08 14:19
professionalPaul Conrad7-Mar-08 14:19 
Generalnetwork communication .net vb between device and desktop Pin
Cory Kimble7-Mar-08 7:23
Cory Kimble7-Mar-08 7:23 
QuestionGetting control values into a report Pin
Member 45895427-Mar-08 7:08
Member 45895427-Mar-08 7:08 
GeneralDLL to call a function in a VB program Pin
steve_rm7-Mar-08 6:05
steve_rm7-Mar-08 6:05 
GeneralRe: DLL to call a function in a VB program Pin
Christian Graus7-Mar-08 10:10
protectorChristian Graus7-Mar-08 10:10 
QuestionWhy is this taking up all the memory? Pin
Jan Sommer7-Mar-08 4:22
Jan Sommer7-Mar-08 4:22 
GeneralPanels difficulty Pin
cstrader2327-Mar-08 2:19
cstrader2327-Mar-08 2:19 
GeneralRe: Panels difficulty Pin
Dave Kreskowiak7-Mar-08 10:16
mveDave Kreskowiak7-Mar-08 10:16 
GeneralRe: Panels difficulty Pin
cstrader2327-Mar-08 11:13
cstrader2327-Mar-08 11:13 
GeneralRe: Panels difficulty Pin
Dave Kreskowiak7-Mar-08 14:13
mveDave Kreskowiak7-Mar-08 14:13 

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.