Hello again). Now I have another problem. How could I create a *.doc files?
It must include Text, Picture (from PictureBox) and simple table (x rows and Y collumns, I mean, without any difficulties). Table I'd like to create and fill in code only (without using any objects from tollBox.... ) .. I don't know how explane it more closely, but I beleive, that you understand me correct.
Thank you.
ArtemPosted Aug 11, 2007, 1:26 AM
Hi there! I find a simple solving of my problem. *.rtf is practicaly the same *.doc .. But *.rtf files we can create from "richTextBox" ...
Pictures is not the problem too. Here is a little code, which can add picture to the richTextBox from pictureBox:
Bitmap bitmap = new Bitmap(pictureBox1.Image); Clipboard.SetDataObject(bitmap); DataFormats.Format pic = DataFormats.GetFormat(DataFormats.Bitmap);richTextBox1.Paste(pic);
... Yes. It can't solve my problem at all, but now I can continue to write my program.
If you have some ideas or advise, that'll be great! :)
ArtemPosted Aug 11, 2007, 12:22 AM
Hey! I find some information in youe articles. :) "how to create well formatted MS Word documents using C#, XML and XSLT" . But there only a few information about creating "???????") I don't know how it named ib English... Tablets, tables . :) damn.. ok.
And How to put text or pictures? There in introduction was "Using XSLT to create Word document requires the knowledge of RTF key words. RTF specification is available in MSDN site." ... Is it possible? I'll try...