Skip to content

Changing Properties DSOFile Word

Onur Sorhan

Asked Jul 12, 2012, 4:56 AM EDT1 answer
Share
LinkedInX
The lower panel in the water with the Word File elected DSOFile Seen Entering TextBox'lara Information How We May Change the specifics?




TypeScript
private void button1_Click(object sender, EventArgs e)
     {
             string FileName = listViewFileInfoList.SelectedItems[0].SubItems[0].Text;
             string Path = listViewFileInfoList.SelectedItems[0].SubItems[1].Text;
             string LastWriteTime = listViewFileInfoList.SelectedItems[0].SubItems[2].Text;
             string Extension = listViewFileInfoList.SelectedItems[0].SubItems[6].Text;
             string IsReadOnly = listViewFileInfoList.SelectedItems[0].SubItems[4].Text;
             string CreationTime = listViewFileInfoList.SelectedItems[0].SubItems[5].Text;


                  FileInfo SelectedFileInfo = new FileInfo(Path + "\\" + FileName);


                      DSOFile.OleDocumentProperties doc = new DSOFile.OleDocumentProperties();
                      doc.Open(Path + "\\" + FileName, false, DSOFile.dsoFileOpenOptions.dsoOptionDefault);



                      doc.SummaryProperties.Title = textBox1.Text;
                      doc.SummaryProperties.Subject = textBox2.Text;
                      doc.SummaryProperties.Category = textBox3.Text;
                      doc.SummaryProperties.Author = textBox4.Text;
                      doc.SummaryProperties.LastSavedBy = textBox5.Text;
                      doc.SummaryProperties.Comments = textBox6.Text;
                      doc.SummaryProperties.Company = textBox7.Text;
                      doc.Save();



Please Help Ya
It did not help, Something He Would've tried: (

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    DSOFile.OleDocumentProperties doc = new DSOFile.OleDocumentProperties();
            doc.Open(SelectedFileInfo.FullName, false, DSOFile.dsoFileOpenOptions.dsoOptionOpenReadOnlyIfNoWriteAccess);


            doc.SummaryProperties.Title = textBox1.Text;
            doc.SummaryProperties.Subject = textBox2.Text;
            doc.SummaryProperties.Category = textBox3.Text;
            doc.SummaryProperties.Author = textBox4.Text;
            doc.SummaryProperties.LastSavedBy = textBox5.Text;
            doc.SummaryProperties.Comments = textBox6.Text;
            doc.SummaryProperties.Company = textBox7.Text;
            doc.Close(true);
            MessageBox.Show("Degisikleriniz Kaydedilmistir");
    0