Sending a fax using .NET.

I am trying to send faxes using the .NET program (C #) using Crystal Reports and Unimessage Pro (or any other fax program).

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

How to send a fax using Crystal Reports and .NET?

+1
source share
3 answers

WordCraft ( Unimessage Pro)

  • WilCapAX.INI Windows, . C:\Windows\WilCapAX.INI :   [WilCapAX]    = C:\Commands.DAT "C:\Commands.DAT" - , .NET Unimessage Pro. , ,
    .

  • .NET, -
    Unimessage Pro :

    2.1 , ,    WilCapAX.INI, C:\Commands.DAT, :

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

       , -   . C:\Commands.DAT    .

    2.2 Unimessage Pro -    Unimessage Pro    , WilCapAX.INI.   , WilCapAX.INI(C:\Commands.DAT),   ,    "C:\Commands.DAT" ,    ,    C:\Commands.DAT.

    2.3 C:\Commands.DAT(,    Unimessage Pro), .

!:)

+3

Joyfax Client Console 1.0 ()

. , lanuch Joyfax Client v5.2 , .

JoyfaxConsole [] -f [;...] [; FileN] -r ""

-f  file or folder  Files or files in sub folders to be faxed.
        i.e: C:\Test\;C:\MyPDFs\*.pdf
-r      Recipients  Recipient list. For more see Fax Recipients. Must begin and end with double quotation marks(").

:

-a  Synchronous Wait until fax sent completed;
-s  Subject Subject of fax, i.e.: "Joyfax Sell Sheet";
-m  Meno Memo of fax, i.e.: "Joyfax Server 5-user license";
-c  CoverPage Cover Page profile to be used;
-d  Header Header & footer profile to be used,
    0 = None; 1 = General; 2 = Compact; 3 = Detailed
-k  Kill Delete input files if fax sent successfully.

Retrun:

0 - Success;
1 - Initialize failed;
2 - Invalid parameter;
3 - Unknown erorr (may unsupported file type).

:

JoyfaxClientConsole -d 2 -f "C:\ PDF\D90.PDF" -r "Samm Kivin < 866-6554-564 > ; . < (846) 6554-564 > "

JoyfaxClientConsole -f C:\MyPDFs *.pdf; D:\Sell.xls -r "Samm Kivin < 866-6554-564 > "

JoyfaxClientConsole -s "Joyfax Sell Sheet" -m "Joyfax Server 5- " -f D:\Sell.xls -r "Kivin < 866-6554-564 > "

+1

, , , PCL ( ), :

<esc>(s..... 

, , Crystal.

Crystal ( Escape), , ( Courier). , . ; , .

, , Microsoft Driver Development Kit. - , , , .

, ( Crystal, ). RightFax -, "" . , PDF , RightFax , , , , .

RightFax :

{{begin}}
{{nocover}}
{{fax (403) 555-1212}}
{{subject Test Fax}}
{{attach c:\reports\report1.pdf delete}}
{{imagetype pdf}}
{{end}}
0

Source: https://habr.com/ru/post/1706387/


All Articles