Zumla 0 Newbie Poster

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;
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.