使用.NET发送传真 [英] Sending fax with .NET

查看:171
本文介绍了使用.NET发送传真的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试使用Crystal Reports和Unimessage Pro(或任何其他传真程序)通过.NET(C#)程序发送传真。

I'm trying to send faxes with a .NET (C#) program using Crystal Reports and Unimessage Pro (or any other fax program).

我的问题是Unimessage Pro(和其他传真程序)对传真命令使用打印机字体。由于.NET不支持打印机字体,报表中的传真命令将转换为Courier New。这样做的结果是传真程序无法识别传真命令,但将其视为纯文本,并且不发送传真。

My problem is that Unimessage Pro (and other fax programs) uses printer fonts for the fax commands. Since .NET doesn't support printer fonts the fax commands in the report are converted to Courier New. The result of this is that the fax program doesn't recognize the fax commands but sees them as plain text and the fax isn't sent.

如何发送传真与水晶报告和.NET?

How do I send a fax with Crystal Reports and .NET?

推荐答案

我得到这个答案从WordCraft(公司背后Unimessage Pro)

I got this answer from WordCraft (company behind Unimessage Pro)



  1. 在主Windows文件夹中创建一个名为WilCapAX.INI的文件,例如
    C:\Windows \WilCapAX.INI文件
    应包含以下内容:
    [WilCapAX]
    命令= C:\Commands.DAT其中C: \\Commands.DAT是您要在.NET应用程序中创建

    a文本文件的名称,以将

    嵌入式命令传递给Unimessage Pro。
    您可以根据需要编辑路径,
    ,但保持缩写形式文件和

    文件夹名称。

  1. Create a file named WilCapAX.INI in the main Windows folder, e.g. C:\Windows\WilCapAX.INI The file should contain the following: [WilCapAX] Commands=C:\Commands.DAT Where "C:\Commands.DAT" is the name of a text file you are going to create in your .NET application to pass the
    embedded commands to Unimessage Pro. You can edit the path if necessary, but keep to short form file and
    folder names.

在您的.NET应用程序中,当您通过

发送邮件时Unimessage Pro您需要:

In your .NET application when you have something to send via
Unimessage Pro you then need to:

2.1创建一个名为的文本文件在WilCapAX.INI中定义的
名称,C:\Commands.DAT包含:

2.1 Create a text file named, depending on the name defined in WilCapAX.INI, C:\Commands.DAT containing:

 BLANK LINE
 [[TO=Fax Number or Email address]]
 [[SUBJECT=Whatever you want the subject to be]]

文件的第一行必须为空白或包含
而不是嵌入式命令 - 它将跳过
。 C:\Commands.DAT文件
中的其他行都应包含嵌入式命令。

The first line of the file must either be blank or contain something other than an embedded command - it will be skipped. The other lines in the C:\Commands.DAT file should each contain an embedded command.

2.2打印ONE消息到Unimessage Pro打印机 -
Unimessage Pro打印机接受打印作业,并且
查找在WilCapAX中指定的文件.INI。如果在WilCapAX.INI(C:\Commands.DAT)中指定的
文件是
,则会从中提取嵌入式命令,并从
中提取C:\Commands.DAT文件被删除,
打印捕获与从C:\Commands.DAT文件中提取的命令
一起处理。

2.2 Print ONE message to the Unimessage Pro printer - the Unimessage Pro printer accept the print job and will look for the file specified in WilCapAX.INI. If the file specified in WilCapAX.INI (C:\Commands.DAT) is found, embedded commands are extracted from it and then the "C:\Commands.DAT" file is deleted and the print capture processed together with the command extracted from the C:\Commands.DAT file.

2.3等待C:\Commands.DAT文件消失
(表示它已被
Unimessage Pro打印机处理),然后根据需要重复。

2.3 Wait for the C:\Commands.DAT file to disappear (indicating that it has been processed by the Unimessage Pro printer) and then repeat as necessary.


这解决了问题! :)

这篇关于使用.NET发送传真的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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