如题,Office/PDF文件调用I-FaxPrinter生成tif传真文件;
我的目的是客户上传office或者pdf文件后,我在服务端,生成tif文件然后自动发送传真。
是调用I-FaxPrinter的虚拟打印机。微软的虚拟打印工具产生的tif文件,办卡不支持。
有好的方法,或者组件调用能让我实现上述目的,再送高分重谢。(100-200)

解决方案 »

  1.   

    上网找了好久就一个帖子:
    Word.Document thisDocument = null; 
    Word.Application thisApplication = null;//new Word.ApplicationClass(); 
    CreateWordDocument(faxfile,ref thisDocument,ref thisApplication); 
    string printer=thisApplication.ActivePrinter; 
    thisApplication.ActivePrinter="I-FaxPrinter"; 
    PrintOutDoc(thisDocument); 
    faxpath=@"c:\tempfax.tif"; 
    object saveChanges = Type.Missing; 
    object originalFormat = Type.Missing; 
    object routeDocument =Type.Missing; 
    thisApplication.ActivePrinter=printer; 
    thisApplication.Quit(ref saveChanges, ref originalFormat, ref routeDocument);代码没有完全,调试没有通过,OFFCIE编程整得不多.
      

  2.   

    6楼,谢谢你的回复,怎么发传真,如果是G3格式的,通过驱动I-FaxPrinter转化的tif文件,我测试是能够发送的。
    但是这个工具在客户那里安装不上,安装上了,使用也有问题。而且客户使用不方便,我的意思是只要在服务端装了这个驱动,我上传文件,调用方法把上传的文件转化为G3格式。
    微软自带的office工具是产生的是G4格式,供应商提供的板卡不支持。杭州三汇的板卡。