954,529 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Delphi Prism DSOFile Help

Hello,

I am currently using Delphi Prism to try and extract file properties.
Below is the code I am currently using which should work, however, the compiler generates an error:
Error 1 (PE190) "DSOFile.OleDocumentProperties" is an interface and cannot be instantiated C:\Users\Zumla\Desktop\Comp4\.Net Project\Computing4\Computing4\Main.pas 114 63 Computing4

Help would be much appreciated

Thank you!

Var
  DocP : DSOFile.OleDocumentProperties;
Begin
  //Collect Information Using DSOFile
  DocP := New  DSOFile.OleDocumentProperties(Input.Text);
  DocP.Open((Input.Text).Trim, True, DSOFile.dsoFileOpenOptions.dsoOptionOpenReadOnlyIfNoWriteAccess);

   //Get Author
   FileAuthor.Text := DocP.SummaryProperties.Author;   
End;
Zumla
Newbie Poster
2 posts since Feb 2011
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: