hi
i have created application using gembox
i create a word file and save data on it
but i want after saving it itis opened to me using microsoft word directly
it is the code
i want report1 be opened after itis being saved
please help ....
i have created application using gembox
i create a word file and save data on it
but i want after saving it itis opened to me using microsoft word directly
it is the code
Code:
DocumentModel document1 = new DocumentModel();
Section section1 = new Section(document1);
document1.Sections.Add(section1);
Paragraph paragraph1 = new Paragraph(document1) { ParagraphFormat = { RightToLeft = true } };
section1.Blocks.Add(paragraph1);
string result = "x " + " ' " + textBox7.Text + " ' " + textBox3.Text + " x ";
Run run = new Run(document1, result) { CharacterFormat = { RightToLeft = true } };
paragraph1.Inlines.Add(run);
document1.Save("report1.docx");
please help ....
Comment