Solved

PictureBox + Print

Posted on 2002-06-09
4
301 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

738 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