专注收集记录技术开发学习笔记、技术难点、解决方案
网站信息搜索 >> 请输入关键词:
您当前的位置: 首页 > PB

pb程序自动发传真?该怎么处理

发布时间:2011-06-29 20:31:00 文章来源:www.iduyao.cn 采编人员:星星草
pb程序自动发传真?
如何实现:将数据窗口中的数据,发送出去,对方的传真机能够接收?

------解决方案--------------------
在计算机里加一个传真卡,通过对传真卡编程,可实现通过计算机向传真机发送传真(当然,你的传真卡得接电话线)
------解决方案--------------------
先買個Modem使用windows傳真服務就會增加一個打印機,直接列印到打印機就行了。
------解决方案--------------------
探讨
先買個Modem使用windows傳真服務就會增加一個打印機,直接列印到打印機就行了。

------解决方案--------------------
记得是99年左右吧,那时候买了个调制解调器,带传真、语音等功能,可以win98好像可以直接调用传真功能,还可以通过程序实现来电显示号码的功能,好久远的的回忆啊……

有个示例可以发到邮箱供参考(注意下面的说明)
Description
===========
This is a project containing a set of objects that can be used to send a fax using the Windows XP Fax Services. A sample application has been included to give an idea of the functionality.

It also includes a very simple PDF object that allows a datawindow or datastore to be saved to a PDF file.

Once a fax has been sent Windows will use the in-built Fax Console to manage the queueing. You will be able to track the progress of the faxes here. It automatically keeps a list of queued faxes, a list of sent faxes and shows any faxes that have failed.

Redial attempts and time between redials can be configured from Control Panel | Phone and Modem Options

Cover pages can be designed using the in-built Cover Page Designer from the Fax Console

Requirements
============
1. Must be running on at least Windows XP Home
2. A fax modem (internal or external) must be installed and configured
3. Windows XP Fax Services must be installed (see Windows Components in Add/Remove Programs)
4. If you want to create a PDF from a Powerbuilder datawindow then the Powerbuilder GhostScript stuff must be installed

How to Check for Necessary Components
=====================================
1. If Windows XP Fax Services are correctly installed then:
a) <windir>\System32\fxscomex.dll should exist
b) HKLM\Software\Classes\FaxComEx.FaxServer should exist in the registry

Known Issues
============
This has only been tested by connecting to a locally running server, i.e. Windows XP Fax Server which is part of Windows Xp Fax Services. In theory it should work with a remote fax server, but as I don't have one I can't test it

Things I know don't work on a local fax server:

1. Receipts don't appear to work, must be always set to ii_RECEIPTTYPE_NONE
2. Setting CoverPageType to local doesn't appear to work
3. Using parentheses doesn't work in many fields

I can't think of a way to trap the return codes/messages from the OLE objects, so I am only seeing the general Powerbuilder application error. If, for example, you enter a document name like this 'Doc1 (Test)' the code will fail, and I assume the OLE object (fxscomex.dll) is returning a nice code/message indicating why, however I don;t know how to trap it. Let me know if you have a way.

Futher Information
==================
The following link is a good starting point in understanding the Windows XP Fax Service object model:

http://msdn2.microsoft.com/en-us/library/ms689110.aspx
------解决方案--------------------
一体机在系统中安装好后,打印机项中有两个,一个是一体机的打印机,一个是一体机的传真,在数据送打印机时选择传真就行了。
友情提示:
信息收集于互联网,如果您发现错误或造成侵权,请及时通知本站更正或删除,具体联系方式见页面底部联系我们,谢谢。

其他相似内容:

热门推荐: