We're a community of 1077K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,076,322 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

Printing Picture-Box in real-time

Hi,
A graph is getting plotted in a Picture Box with real-time field values. I want to print the graph in real-time, say in every 10 secs. Tried the following :

Printer.PaintPicture Picture2.Image, 0, 0
Printer.EndDoc
but this didn't worked.....

help plzzz....

2
Contributors
4
Replies
2 Hours
Discussion Span
8 Months Ago
Last Updated
5
Views
frnds2vivek
Light Poster
39 posts since Mar 2012
Reputation Points: 0
Solved Threads: 2
Skill Endorsements: 0

The code should be...

Printer.PaintPicture Picture2.Picture, 0, 0

and not Picture.Image

AndreRet
Industrious Poster
4,706 posts since Jan 2008
Reputation Points: 391
Solved Threads: 481
Skill Endorsements: 20

doing it.. got an Error 481, Invalid Picture....

frnds2vivek
Light Poster
39 posts since Mar 2012
Reputation Points: 0
Solved Threads: 2
Skill Endorsements: 0

searching around.. came across a point that Printer.Paintpicture prints only Images. If its true.. is there a way out to copy the picture of picture box to a image box..?? hopefully then the command should work....

frnds2vivek
Light Poster
39 posts since Mar 2012
Reputation Points: 0
Solved Threads: 2
Skill Endorsements: 0

the picture can only be a jpg/jpeg file and not bmp. Command will not work if you use the .image command. i've tested the code and it prints perfect on my side.

AndreRet
Industrious Poster
4,706 posts since Jan 2008
Reputation Points: 391
Solved Threads: 481
Skill Endorsements: 20

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page rendered in 0.0807 seconds using 2.63MB