Solved

PictureBox + Print

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

747 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

16 Experts available now in Live!

Get 1:1 Help Now