Hello
I am trying to develop a document reader/viewer - the documents are scanned and are of tiff, bmp , gif file format. I need to know what toolbox control I need to display tiff ,ect... file format. is there a such a thing as mspaint control so i can display the image? I have seen some document magagement system that looks like they are using MSPaint.? your help is really appreciated. Many thanks.
Loading

Ryan AlfordRank #1,411 · 1.2K reputationPosted Jul 5, 2008, 10:44 AM EDT
Sunny Chen162 reputationPosted Jul 5, 2008, 7:57 PM EDT
I think maybe you should use the picturebox control.
For some text or other formatted documents, you might need to convert the content of the files into a image and draw it onto the surface of a graphic. After that, it is the time to assign the graphic to the picturebox and display it there.
Hope this helps.
Waleed A6 reputationPosted Jul 11, 2008, 1:16 AM EDT
Many Thanks
Waleed A6 reputationPosted Jul 11, 2008, 1:27 AM EDT
I now know what other document viewer use to display document its the MicroSoft Office Document imaging Application.. another words MODI. I have embedded the MODI Object Component to my Form by adding COM and chosed MODI. How do I display image/ documents clicked from selected file in the list box onto MODI (MicroSoft Office Document imaging)
Your help is appreciated
Many Thanks
steve22 reputationPosted Jul 11, 2008, 4:13 AM EDT
I am rather new to C# and have successfully done what you are trying to do, using the picturebox control.
You just have to feed the picturebox with a string variable that contains the file name:
pictureBox1.Image = Image.FromFile(myfilename);
where you first set the string myfilename to something. For example, to the file that was selected from a list box.