将任何tiff文件或图片作为传真发送 [英] Send any tiff file or picture as fax

查看:66
本文介绍了将任何tiff文件或图片作为传真发送的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨朋友

我使用以下代码发送传真。

但这只是代码。发送文字。

我想发送图片和tiff。

我也想设置纸张类型。

A5张A4纸

请帮忙。

Hi Friends
I am using the following code to send a fax.
But this code only. Sends text.
I would like to send Picture and tiff.
I would also like to set the type of paper.
A5 sheet of A4 paper
Please help.

public void SendFax(string parFileName, string parFaxNumber, string parSenderName, string parDisplayName, string parRecipientName)
       {

           fserver = new FaxServer();


           FaxDoc insFaxDocClass = null;
           try
           {
               fserver.Connect(Environment.MachineName);
           }
           catch (Exception exp)
           {
               MessageBox.Show(exp.Message);
               return;
           }

           try
           {
               insFaxDocClass = (FaxDoc)fserver.CreateDocument(parFileName);
           }
           catch (Exception exp)
           {
               MessageBox.Show(exp.Message);
               return;
           }

           insFaxDocClass.FaxNumber = parFaxNumber;
           insFaxDocClass.SenderName = parSenderName;
           insFaxDocClass.DisplayName = parDisplayName;
           insFaxDocClass.RecipientName = parRecipientName;

           try
           {

               int i = insFaxDocClass.Send();
               //insFaxDocClass.Send();
               txstatus.Text = i.ToString();

           }
           catch (Exception exp)
           {

               MessageBox.Show(exp.Message);
               return;
           }

           fserver.Disconnect();
       }

推荐答案

考虑到我们对你正在使用的FaxServer一无所知,我们几乎无法回答你的问题。



一个更好的选择是询问你有这个FaxServer的人。
Considering we know NOTHING AT ALL about the "FaxServer" you're using, it's pretty impossible to answer your question.

A better choice would be to ask the people you got this "FaxServer" from.


这篇关于将任何tiff文件或图片作为传真发送的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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