Solved

PictureBox + Print

Posted on 2002-06-09
4
283 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

920 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

15 Experts available now in Live!

Get 1:1 Help Now