fax

S

sam

how can i retrive the sender number and sender name from a fax file proerties?
the file is a tif file created by the windows fax consule.

thanks
 
D

dymondjack

Try this out... I don't know if it will work for what you are trying to do,
but it will return a list a properties for a particular file. It is based on
finding properties of a jpg file, but I've played around with it a bit and
returned properties from other types as well.

Credit for this goes to Michael Pierron
Orginal thread:
http://www.pcreview.co.uk/forums/thread-1862574.php




Public Function FileInfo$(sFile$)
Dim i%, T$
With CreateObject("Shell.Application").NameSpace(Left$(sFile,
lPosition(sFile, "\") - 1))
For i = 0 To 40
T = .GetDetailsOf(.ParseName(Dir$(sFile)), i)
If Len(T) Then
If i Then FileInfo = FileInfo & vbLf
FileInfo = FileInfo & .GetDetailsOf(.Items, i) & ": " & T
End If
Next i
End With
End Function

Private Function lPosition%(Chain$, Char$)
Dim iPos%
Do
iPos = InStr(lPosition + 1, Chain, Char, 1)
If iPos Then lPosition = iPos Else Exit Do
Loop
End Function



For i = 0 To 40
Change this number to return a different number of properties. In my
experience (as little as it is), it just repeats properties if you enter a
higher number than what the file has.


--
Jack Leach
www.tristatemachine.com

- "A designer knows he has reached perfection not when there is nothing left
to add, but when there is nothing left to take away." - Antoine De Saint
Exupery
 
S

sam

what i'm trying to do is a fax server. so i need to return the sender phone
number.
this item is located in the summary properties .
your code return's all other properties but not the sender phone number (csid)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

VBA Export to PDF 0
Fax sending button 0
fax 1
Outlook 2007 - Same Name BUG ? 1
Send report to Fax 1
Faxing Word doc 2
Copy/paste in based on duplicate value in previous row 0
Fax from a button controll 0

Top