Solved

PictureBox + Print

Posted on 2002-06-09
4
289 Views
Last Modified: 2011-04-14
Hi,
I have a PictureBox in my vb form.
In the PictureBox,i plot some lines (at run time).
Code example :
Picture1.Line (0, 0)-(20, 5), vbBlue, BF
I got problem when try to print the form.(Me.PrintForm)
The output that shown at the monitor is perfect good,
however when printed out,the contents of the picture box is blank.
It just printed out the border of the PictureBox.
I already set the PictureBox's property autoredraw to true.
Can anybody help me?
Thanks.
0
Comment
Question by:boyyle
  • 2
4 Comments
 
LVL 28

Expert Comment

by:AzraSound
ID: 7066823
Member Name boyyle
Questions Asked 15
Last 10 Grades Given C A A B C  
Question Grading Record 5 Answers Graded / 5 Answers Received


Please maintain your open questions.  You will find it difficult to find help on current questions when experts see your lack of appreciation for any past help you have received.
0
 
LVL 22

Accepted Solution

by:
rspahitz earned 50 total points
ID: 7068422
Hi boyyle.

Answer below...

Here on Expert's Exchange, it is common coutesy to answer all questions with an "A" grade since you always have an opportunity to respond to the experts until you get an "A" answer!

Also, since the experts put time into helping you, it's nice to respond by closing questions when you've gotten the answer.  If you don't, many experts will not help you in the future.

To ensure that the displayed picture prints, you will need to transfer the image from the image property to the picture property:  picture1.picture = picture1.image
0
 

Author Comment

by:boyyle
ID: 7112410
Thanks rspahitz.
For ur solutions on my question and the advices.
0
 
LVL 22

Expert Comment

by:rspahitz
ID: 7113987
Thanks for the "A", and glad to help on both accounts! :)
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now