Community discussion forum
Retrieving the Summary properties of a file
-
This thread is for discussions of Retrieving the Summary properties of a file.
-
Advertisement
Simply the fastest line-level profiler for .NET ever
“The low overhead means it has minimal impact on the execution of my program”
Mark Everest, Development Team Leader, Renault F1 Team Ltd.Try out the new ANTS Profiler 4 for yourself. Download your 14-day trial now
-
Having trouble getting this too work.
I've downloaded the ole file property reader linked at the bottom of the page. I registered the dll using regsvr32, but errors are being returned.
Dim filename as string="c:\test\test.doc"
Dim dso As DSOFile.OleDocumentProperties' returns error "DSOFile.OleDocumentProperties not defined"
dso = New DSOFile.OleDocumentProperties
' returns error "DSOFile.OleDocumentProperties not defined"
dso.Open(filename.Trim, True, DSOFile.dsoFileOpenOptions.dsoOptionOpenReadOnlyIfNoWriteAccess)' returns error "DSOFile not declared"
Console.WriteLine(dso.SummaryProperties.Author)
Console.WriteLine(dso.SummaryProperties.ByteCount)
Console.WriteLine(dso.SummaryProperties.CharacterCount)
Console.WriteLine(dso.SummaryProperties.CharacterCountWithSpaces)
Console.WriteLine(dso.SummaryProperties.Comments)
Console.WriteLine(dso.SummaryProperties.Company)
Console.WriteLine(dso.SummaryProperties.DateCreated)
Console.WriteLine(dso.SummaryProperties.DateLastSaved)
Console.WriteLine(dso.SummaryProperties.LastSavedBy)
Console.WriteLine(dso.SummaryProperties.LineCount)
Console.WriteLine(dso.SummaryProperties.PageCount)
Console.WriteLine(dso.SummaryProperties.ParagraphCount)
Console.WriteLine(dso.SummaryProperties.RevisionNumber)
Console.WriteLine(dso.SummaryProperties.Subject)
Console.WriteLine(dso.SummaryProperties.Title)
Console.WriteLine(dso.SummaryProperties.WordCount)How do I use this library after downloading it?
-
My above question was solved when I used the menu item Website > Add reference > com tab > dso ole document properties reader 2.0.
However, when I try to open a file using:
dso.Open(FileName, True, DSOFile.dsoFileOpenOptions.dsoOptionOpenReadOnlyIfNoWriteAccess)
I get this error:
The name is not valid. (Exception from HRESULT: 0x800300FC (STG_E_INVALIDNAME))
-
I want to retrieve the document properties for a .pdf file
This properties can be viewed by opening the file and from the file menu click on document properties
Can anyone provide me a help for this -
Its very urgent for me
Can anyone provide me the solution
anandparmar wrote:I want to retrieve the document properties for a .pdf file
This properties can be viewed by opening the file and from the file menu click on document properties
Can anyone provide me a help for this -
Hi Anandparmar,
Did you find a solution to this issue? I am trying to accomplish the same thing.
Thanks,
Spiro
-
Try this out--
Import
System.Runtime.InteropServices.COMException
-
Hi
I m getting a Error Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
when edit the properties of .tlf , .bmp Image file using DSO File
I m using Code as
Imports System.runtime.InteropServices
Dim objDocument As New DSOFile.OleDocumentPropertiesClass
objDocument.SummaryProperties.Title = TextBox1.Text
objDocument.SummaryProperties.Subject = TextBox2.Text
objDocument.SummaryProperties.Comments = TextBox6.Text
Please reply to this error as soon as possible
Prashant
-
this code is working ....thanks
-
Hi
-
Hi,
Code is working fine very help full.
can u also please provide the code how to retirve the Owner of a file.
from security.
Thanks
john
-
But I must tell that .. this .dll is only applicable to .doc files .. I am not sure whether it is same effective for .rtf or .txt file ?????
can anyone confirm me about this ???
Post a reply
Quick links
Recent activity
- anu anand.lv replied to Excel Oledb Engine and VB.NET
- Rafeeque Ahmed replied to HELP ME, URGENT RESPONSE
- anu anand.lv replied to we search the company in I...
- chandradev prasad replied to how to select item to datag...
- Alexis Méndez replied to how to select item to datag...
- chandradev prasad replied to how to select item to datag...
Enter your message below
Sign in or Join us (it's free).