.NET and Printer - InfoPath Dev
in

InfoPath Dev

.NET and Printer

Last post 11-08-2005 12:49 AM by mbrighi. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 11-03-2005 07:29 AM

    .NET and Printer

    I'm a .NET developer.
    How can I change the active printer in infoPath istance?

    In word the code is:
    Dim PDFConverter_WordApplication As Object
    PDFConverter_WordApplication = CreateObject("Word.Application")
    PDFConverter_WordApplication.ActivePrinter = ("Amyuni PDF Converter")

    I have tryed:
    Dim PDFConverter_InfoApplication As Object
    PDFConverter_InfoApplication = CreateObject("InfoPath.Application")
    PDFConverter_InfoApplication.ActivePrinter = ("Amyuni PDF Converter")
    but ".ActivePrinter" isn't a valid property...

    Help please..

    Bye
    Marco
  • 11-05-2005 12:34 AM In reply to

    Hi Marco and welcome to our forum!
    Greg knows how to do this. I'll ask him.

    Patrick Halstead [InfoPath MVP]
    InfoPathDev
    Patrick Halstead
    Project Manager at Qdabra
  • 11-06-2005 11:26 PM In reply to

    Thank's, it's very important for me to do this operation.
    Write me as soon as possible....
    Marco
  • 11-07-2005 10:03 AM In reply to

    Actually, I've never done this before. I recall a previous thread (I think on the MS Newsgroups) from a guy who was doing this, but he had issues. Mainly, that he could set the printer once, but could not change it again after that. Or--he could change it via code, but it only physically changed the first time. To change it again, he had to close InfoPath and reopen it.

    His attempt was to change it to a different printer for a particular view, then change it right back to the default printer (for the other views). He could get it to change to the different printer, but never got it to change back.

    As far as I know, this was never resolved.

    I don't know the process he used to change the printer to begin with. I would suggest searching both this site, and the Microsoft public newsgroups, as it was on one of those two places where I saw it. I believe I had replied to his message at least once too, which may help narrow down your search.

    Good luck.

    Greg Collins [InfoPath MVP]
    InfoPath Dev
  • 11-08-2005 12:49 AM In reply to

    I don't know views....how can I modify it? Where can I find some examples?
    Thank's

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