如何了解FaxStatus [英] How to understand about FaxStatus

查看:106
本文介绍了如何了解FaxStatus的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨...
我正在尝试使用C#.NET编写传真程序.
在代码的SendFax部分中,我成功编写了用于发送传真的代码,但是我不知道如何了解已发送的传真状态.
我在Google上进行了搜索,但我对此一无所知,但是在我的程序中,代码无法正常工作,并且出现了错误:

Hi ...
I''m trying to write a Fax program using C#.NET.
In SendFax section of codes I succeed in write codes for sending faxes,but I didn''t know how to understand about sent fax status.
I searched in Google and I could know something about it,but in my program the codes didn''t worked and it has a error:

Retrieving the COM class factory for component with CLSID {55DABFD4-5C9E-11D1-B791-000000000000} failed due to the following error: 80040154.



我已经在下面指出了有错误的行:



I have indicated the lines that have error below:

using FAXCOMEXLib;
using FAXCOMLib;
.
.
.   
    FAXCOMLib.FaxServer fs = new FAXCOMLib.FaxServerClass();
// error occurs here
    FAXCOMLib.FaxJobsClass fj = new FAXCOMLib.FaxJobsClass();
    FAXCOMLib.FaxStatusClass fst = new FAXCOMLib.FaxStatusClass();
    FAXCOMLib.FaxPortClass fp = new FAXCOMLib.FaxPortClass();
    int send = 0;
            
    fp = (FaxPortClass) fs.GetPorts();
    fst = (FaxStatusClass)fp.GetStatus();

    fs.Connect("Hedayati-PC"); //specifies the machine name
    FAXCOMLib.FaxDoc faxDoc = (FAXCOMLib.FaxDoc)fs.CreateDocument(txtFileLocation.Text);
    send = faxDoc.Send();           

.
.
.
etc



我的操作系统是Windows 7 64位,我将编译平台设置为x86.
请引导我正确的方法.
非常感谢!

======================更新=========================== ====
我的问题尚未解决.
我认为我的FaxComLib.DLL无法正常工作.我尝试在Windows 7中注册它,但显示错误:0x8002801c.我通过Dependency Walker进行了测试,它有一个错误.我在Google中搜索了几个小时,但找不到任何新的FaxComLib.DLL文件.
在这种情况下请帮助我.

谢谢.



My OS is Windows Seven 64bits and I set the compile platform to x86.
Please guide me the correct way.
Thanks very much!

====================== Update ===============================
My problem isn''t solved yet.
I think my FaxComLib.DLL isn''t work correctly.I tried to register it in my Windows 7 but it shows an error: 0x8002801c to me. I test it by Dependency Walker and it has an Error. I search in google several of hours but I could''t find any fresh FaxComLib.DLL file.
Please help me in this case.

Thank you.

推荐答案

看看这个:
http://social.msdn.microsoft.com/forums/zh/vbgeneral/thread/88a6ea68-f476-4231-822f-27fabe59f458 [
问候
Espen Harlinn
Take a look at this:
http://social.msdn.microsoft.com/forums/en/vbgeneral/thread/88a6ea68-f476-4231-822f-27fabe59f458[^] - I think it will help you to figure it out :)

Remember that registering the dll''s in Windows 7 requires administrative privileges, often requiring you to run the registration process using "Run as administrator" option.

Regards
Espen Harlinn


有人无法回答我的问题吗?真的吗?!
Anyone can''t answer my question? really?!!


这篇关于如何了解FaxStatus的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆