CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7
  1. #1
    Join Date
    Aug 2000
    Location
    NY, USA
    Posts
    632

    FaxComExLib document conversion

    Finally after several days with many problems I made my VB6 app send faxes through MS fax printer on the server and get the status of each job.
    I used FaxComExLib.
    Now when objDocument.ConnectedSubmit methot is called the application associated with the type of the document is invoked. In my case it's MS Word (I'm faxing only Word documents). I would like to make it invisible along with messages displayed during conversion.
    Is there any way to do that?

    Thank you
    Vlad

  2. #2
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,284

    Re: FaxComExLib document conversion

    Quote Originally Posted by vchapran
    Now when objDocument.ConnectedSubmit methot is called the application associated with the type of the document is invoked. In my case it's MS Word (I'm faxing only Word documents). I would like to make it invisible along with messages displayed during conversion.
    Is there any way to do that?
    When you say the application is invoked, do you you mean that:
    MS Word opens?
    And you don't want MS Word to be shown?

  3. #3
    Join Date
    Aug 2000
    Location
    NY, USA
    Posts
    632

    Re: FaxComExLib document conversion

    Right.
    MS Word screen appears for a portion of second and I do not want it to do.

    Thanks.
    Vlad

  4. #4
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,284

    Re: FaxComExLib document conversion

    Well, it's a thing with Word. If I were to go to Windows Explorer or My Computer, right click a Word file and say Print - it does the same. I think it's because the document is closed and Word reads it quickly into memory, then exits. The same happens here with the documents you want to fax. They are closed, so Word reads them quickly.

    Just a long shot in actually hiding the Word screen.

    Include a reference to MS Word in your project - "Project"->"References"->find MS Word Object LIbrary
    Code:
    'open the doc
    Dim wordo As New Word.Application
    wordo.Application.Documents.Open fileName:="same name as the document to be faxed"
    Word.Application.Visible = False 'hides the word application window
    
    'fax the info here
    
    'after fax complete
    
    wordo.Quit False
    Set wordo = Nothing
    Hope this helps!

  5. #5
    Join Date
    Aug 2000
    Location
    NY, USA
    Posts
    632

    Re: FaxComExLib document conversion

    No, it doesn't work.
    I already have a code for Word objects, and I hide Word in that code. It's not visible during file preparation (I'm combining several documents into one, replacing some values with some data from a database etc), but during
    objFaxDocument.ConnectedSubmit(objFaxServer) execution Word appears. It doesn't depend on when I close Word object - before or after ConnectedSubmit.

    Thank you
    Vlad

  6. #6
    Join Date
    Oct 2005
    Posts
    3

    Re: FaxComExLib document conversion

    You can disable the messages in the actual Fax Console application * Tools * Fax Printer Configuration * Tracking (Tab) * Fax Monitor

    I am trying to solve the same issue as you were having, just wondering if have figured it out. It’s not only word; I am faxing a PDF document and the same thing is happening. It kind makes sense that it has to invoke the app, but I would like to be able not to see it. I’ve tried all kinds of stuff to make it not appear or to hide it however unsuccessfully. In case of a PDF doc I can’t even get rid of the document. (Setting the document object does absolutely nothing)

    Help appreciated
    Thanks

  7. #7
    Join Date
    Oct 2005
    Posts
    7

    Re: FaxComExLib document conversion

    Hi vchapran

    Can you please share you code.
    I also need to fax via windows fax

    Thanks
    Tim

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured