gpt4 book ai didi

c# - 使用 .NET 发送传真

转载 作者:太空宇宙 更新时间:2023-11-03 22:27:55 25 4
gpt4 key购买 nike

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

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

如何使用 Crystal Reports 和 .NET 发送传真?

最佳答案

我从 WordCraft(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.

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

    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]]

    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 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 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.

问题解决了! :)

关于c# - 使用 .NET 发送传真,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/545173/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com