A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Outlook » Fax
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Fax Inbox read in C#



 
 
Thread Tools Display Modes
  #1  
Old March 3rd, 2005, 08:13 AM
Rambabu
external usenet poster
 
Posts: n/a
Default Fax Inbox read in C#



I want to read Fax inbox items and Send items uisng C#
Application

Any one Know this one send to me


  #2  
Old March 3rd, 2005, 10:01 AM
Renu Bhattar \(MSFT\)
external usenet poster
 
Posts: n/a
Default

The following code snippet might be helpful.
Note: Do add the FaxComex.dll to the C# project

using FAXCOMEXLib;
:

:

//number of messages to be fetched

int count = 10;

string messageId;

FaxServerClass fax = new FaxServerClass();

fax.Connect("");

FaxFolders folders = fax.Folders;

FaxIncomingArchive incoming = folders.IncomingArchive;

FaxIncomingMessageIterator iterator = incoming.GetMessages(count);

FaxIncomingMessage message ;

for(int i=0;icount && (!iterator.AtEOF) ;i++)

{

message = iterator.Message;

messageId = message.Id;

iterator.MoveNext();

}

---

Renu Bhattar [MSFT]

Microsoft Printing, Imaging and Faxing
This posting isprovided "AS IS" with no warranties and confers no rights.
Please do not send mail directly to this aloas. This alias is for newsgroup
purposes only.


"Rambabu" wrote in message
...


I want to read Fax inbox items and Send items uisng C#
Application

Any one Know this one send to me




  #3  
Old March 4th, 2005, 04:30 AM
rambabu alaparthi via OfficeKB.com
external usenet poster
 
Posts: n/a
Default

I got Error

An unhandled exception of type 'System.InvalidCastException' occurred in
FAx1.exe

Additional information: QueryInterface for interface
FAXCOMEXLib.IFaxFolders failed.


How to retify this error

Can you send as possible as

--
Message posted via http://www.officekb.com
  #4  
Old March 4th, 2005, 06:43 AM
rambabu alaparthi via OfficeKB.com
external usenet poster
 
Posts: n/a
Default

But i got QueryInterface for interface FAXCOMXLib.IFolder Error


How to remove this error

--
Message posted via http://www.officekb.com
  #5  
Old March 4th, 2005, 09:43 AM
Rambabu
external usenet poster
 
Posts: n/a
Default


Renu Bhattar (MSFT) wrote:
The following code snippet might be helpful.
Note: Do add the FaxComex.dll to the C# project

using FAXCOMEXLib;
:

:

//number of messages to be fetched

int count = 10;

string messageId;

FaxServerClass fax = new FaxServerClass();

fax.Connect("");

FaxFolders folders = fax.Folders;

FaxIncomingArchive incoming = folders.IncomingArchive;

FaxIncomingMessageIterator iterator = incoming.GetMessages(count);

FaxIncomingMessage message ;

for(int i=0;icount && (!iterator.AtEOF) ;i++)

{

message = iterator.Message;

messageId = message.Id;

iterator.MoveNext();

}

---

Renu Bhattar [MSFT]

Microsoft Printing, Imaging and Faxing
This posting isprovided "AS IS" with no warranties and confers no

rights.
Please do not send mail directly to this aloas. This alias is for

newsgroup
purposes only.


"Rambabu" wrote in message
...


I want to read Fax inbox items and Send items uisng C#
Application

Any one Know this one send to me



  #6  
Old March 4th, 2005, 09:45 AM
Rambabu
external usenet poster
 
Posts: n/a
Default


Renu Bhattar (MSFT) wrote:
The following code snippet might be helpful.
Note: Do add the FaxComex.dll to the C# project

using FAXCOMEXLib;
:

:

//number of messages to be fetched

int count = 10;

string messageId;

FaxServerClass fax = new FaxServerClass();

fax.Connect("");

FaxFolders folders = fax.Folders;

FaxIncomingArchive incoming = folders.IncomingArchive;

FaxIncomingMessageIterator iterator = incoming.GetMessages(count);

FaxIncomingMessage message ;

for(int i=0;icount && (!iterator.AtEOF) ;i++)

{

message = iterator.Message;

messageId = message.Id;

iterator.MoveNext();

}

---

Renu Bhattar [MSFT]

Microsoft Printing, Imaging and Faxing
This posting isprovided "AS IS" with no warranties and confers no

rights.
Please do not send mail directly to this aloas. This alias is for

newsgroup
purposes only.


"Rambabu" wrote in message
...


I want to read Fax inbox items and Send items uisng C#
Application

Any one Know this one send to me



  #7  
Old March 10th, 2005, 08:57 AM
Raghavendra R [MSFT]
external usenet poster
 
Posts: n/a
Default

Do you have the interop DLL GAC-ed or placed in the same directory as the
program (exe file)? Also share out your code unless you are sure you didn't
modify anything at all from what Renu wrote in the previous post.

--
Raghavendra R
Microsoft Printing, Imaging and Fax Team
This posting is provided "AS IS" with no warranties, and confers no rights.
Please do not send email directly to this alias. This alias is for newsgroup
purposes only.'

"rambabu alaparthi via OfficeKB.com" wrote in message
...
I got Error

An unhandled exception of type 'System.InvalidCastException' occurred in
FAx1.exe

Additional information: QueryInterface for interface
FAXCOMEXLib.IFaxFolders failed.


How to retify this error

Can you send as possible as

--
Message posted via http://www.officekb.com



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
hotmail as default inbox Hotmail as default inbox on Outlook Toda General Discussion 0 February 3rd, 2005 07:59 PM
Loosing Email From Inbox JonR Outlook Express 1 August 25th, 2004 01:08 PM
Outlook hangs when accessing IMAP inbox Chris Barnes General Discussion 3 August 10th, 2004 08:23 PM


All times are GMT +1. The time now is 06:48 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.