troubleshooting Question

Write graphics object (e.Graphics.Drawstring/Drawline etc..) to a file and save

Avatar of Cherryex
Cherryex asked on
Visual Basic.NET
3 Comments1 Solution394 ViewsLast Modified:

I really don't know how to approach this, I have created a report which takes data from a data table loop through it and performs some calculations before outputting it nicely formatted using graphics.Drawstring and drawline etc..   At the moment all I am doing is sending this to a printer or print preview, which works fine.  What I would like to do is have an option to save the report to a file.  

I don't know how to output it into a file, which file format would it use, do I use a streamwriter or Binarywriter?? Any ideas or examples would be greatly appreciated.

Mike Tomlinson
High School Computer Science, Computer Applications, Digital Design, and Mathematics Teacher
Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros