VB .NET 2008 Printer Manipulation - InfoPath Dev
in

InfoPath Dev

VB .NET 2008 Printer Manipulation

Last post 11-13-2009 12:38 PM by Hilary Stoupa. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 11-09-2009 05:22 AM

    VB .NET 2008 Printer Manipulation

    Hello,I have a VB .NET 2008 application that opens a given InfoPath document in InfoPath 2003 or 2007 for the user: appIP.XDocuments.Open(lstrNewXmlFileBuilder.ToString())Now instead of opening the InfoPath GUI for the user, I want to send the InfoPath document to a PDF printer: appIP.Windows(0).XDocument.PrintOut()My problem is that I have not been able to find how to direct the PrintOut command to a specified printer.  If at all possible, I do not want to changed the user's Default Printer.    My app has referenced Microsoft.Office.Interop.InfoPath version 11 so that users with InfoPath 2003 can use it.  However, if the solution to this requires that I change that reference to version 12, I am prepared to do that.I would appreciate any help that I can get; my boss wants this project to be completed last week. 

     

    Steve Custer
    Bluelight Software, LLC
  • 11-13-2009 12:38 PM In reply to

    Re: VB .NET 2008 Printer Manipulation

    The MSDN docs say about PrintOut:

    The PrintOut method uses the current printer settings

    So, that's out. It looks like the XmlForm.Print method also uses the current printer settings, so I don't think switching to 2007 would make a difference here. It may be changing the default printer is the only path for this.

     

    Hilary Stoupa

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