1
Answer

Changing Properties DSOFile Word

Onur Sorhan

Onur Sorhan

12y
2.3k
1
The lower panel in the water with the Word File elected DSOFile Seen Entering TextBox'lara Information How We May Change the specifics?




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: (




Answers (1)