InfoPath 2007 C# Automating print to MS Office Document Image Writer - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

InfoPath 2007 C# Automating print to MS Office Document Image Writer

Last post 10-28-2014 07:59 AM by Wheels. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 10-15-2014 06:11 AM

    InfoPath 2007 C# Automating print to MS Office Document Image Writer

    Good morning experts.

    I am wondering if anyone had an C# example where a user can click on a (submit) button, and the code will call an API (or other printer object) to 'print' to the MS Office Document Image Writer. The end result being the file would be saved in a .tif format. I was able to code the export to .pdf (I wish .tif was an export or save option), but I am having quality issues.

     I have looked into converting XPS to TIF with very little or no success.

    Thank you for your time. WHEELS

  • 10-24-2014 10:12 AM In reply to

    Re: InfoPath 2007 C# Automating print to MS Office Document Image Writer

    Ok I figured out how to accomplish this, but it involves reading and writing registry keys. Once the .TIF file is created, I am trying to Fax it, but I am having threading issues where it tries to Fax before the file exists.

    If I put in a 'sleep', or a sleep in a while loop it loop endlessly: 

    while (!File.Exists(@"C:\Users\Wheels\Desktop"))

    {

     

    Thread.Sleep(500);

     

    }

    WHEELS

  • 10-24-2014 10:19 AM In reply to

    Re: InfoPath 2007 C# Automating print to MS Office Document Image Writer

  • 10-28-2014 07:59 AM In reply to

    Re: InfoPath 2007 C# Automating print to MS Office Document Image Writer

     Thank you Hilary.

Page 1 of 1 (4 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.