1. Taruh satu picture utama, dan scrollbar horisontal dan vertical.
2. Taruh 5 picture di picture utama. Masalah ukurannya gimana bisa
diatur di form_resize.
3. Load picturenya untuk masing2 picture. Pastikan picturenya bertipe
bmp (.bmp, .wmf, .emf, .cur, .ico, or .dib). Picture box setahu gw cuma
bisa load picture bertipe bmp. Terserah kapan event load picture-nya
ditrigger. 
4. Print. Berikut fungsi sederhana untuk show image dan print image:
 
Private Sub cmdShowImage_Click()
     Call  Print_Picture (Main_Picture)
End Sub
 
Private Sub cmdPrint_Click()
    Call Print_Picture (Printer)
End Sub
 
Sub Print_Picture(ByVal obj as Object)
    obj.PaintPicture Picture1, XPos1, YPos1,Width1, Height1
    obj.PaintPicture Picture2, XPos2, YPos2,Width2, Height2   
    obj.PaintPicture Picture3, XPos3, YPos3,Width3, Height3
    obj.PaintPicture Picture4, XPos4, YPos4,Width4, Height4
    obj.PaintPicture Picture5, XPos5, YPos5,Width5, Height5
 
    If TypeName(obj) = "Printer" Then
         obj.EndDoc
    End If
End Sub
 
 

Best regards

~subchan

 

 

 

________________________________

From: [email protected]
[mailto:[EMAIL PROTECTED] On Behalf Of saripudin hidayat
Sent: Monday, January 21, 2008 8:24 PM
To: indoprog vb; Programmer VB; Wahana Programmer; Wawan Purwanto;
thebad kalong
Subject: [Programmer-VB] Ngeprint image di VB pake sintak print



temen2 smua..., aku ad mslh gede bgt nih.
aku pengen bikin aplikasi VB pakai pictureBox, tapi aku pengen kalo d
print hasil di kertas sama dengan yang ada di pictureBox nya.
misal:
di pictureBox bisa menampung 5 image maka di kertas juga bisa mencetak 5
image. gimana cara ngatur ukuran PictureBox nya?

________________________________

Bergabunglah dengan orang-orang yang berwawasan, di bidang Anda di
Yahoo! Answers
<http://sg.rd.yahoo.com/mail/id/footer/def/*http://id.answers.yahoo.com/
>  

 


This email and any attachments are confidential and may also be privileged.  If 
you are not the addressee, do not disclose, copy, circulate or in any other way 
use or rely on the information contained in this email or any attachments.  If 
received in error, notify the sender immediately and delete this email and any 
attachments from your system.  Emails cannot be guaranteed to be secure or 
error free as the message and any attachments could be intercepted, corrupted, 
lost, delayed, incomplete or amended.  Standard Chartered PLC and its 
subsidiaries do not accept liability for damage caused by this email or any 
attachments and may monitor email traffic.

 

Standard Chartered PLC is incorporated in England with limited liability under 
company number 966425 and has its registered office at 1 Aldermanbury Square, 
London, EC2V 7SB.

 

Standard Chartered Bank ("SCB") is incorporated in England with limited 
liability by Royal Charter 1853, under reference ZC18.  The Principal Office of 
SCB is situated in England at 1 Aldermanbury Square, London EC2V 7SB. In the 
United Kingdom, SCB is authorised and regulated by the Financial Services 
Authority under FSA register number 114276.

 

If you are receiving this email from SCB outside the UK, please click 
http://www.standardchartered.com/global/email_disclaimer.html to refer to the 
information on other jurisdictions.

Kirim email ke