Ticket ID: 21754
|
Creation Date: 6/25/2015 11:58 AM
|
Product: SiteKiosk Classic Windows
|
Attachment: -
|
TicketType: Support Request
|
Version: 8.91.3042
|
Language: English
|
Views: 28496
|
Last Modification Date: 7/23/2015 1:32 PM
|
Platform:
|
|
Level: Closed
|
|
|
Support Request: Print a webpage with two different printers
Hello,
I want to ask if it is possible to print a webpage ".print()" with two different printers. I've seen, that I have access to the printers and played around and tried to set/change the DefaultPrinter on runtime but without success.
var arrayLength = SiteKiosk.Printer.Printers.Count;
for (var i = 1; i < arrayLength-1; i++)
{
if(i==1)
{
SiteKiosk.Printer.DefaultPrinter = SiteKiosk.Printer.Printers.Item(i).PrinterName;
}
}
SiteKiosk.WindowList.MainWindow.SiteKioskWindow.SiteKioskWebBrowser.Print();
First I'll set Printer A as DefaultPrinter and print the current page. After this I'll change the DefaultPrinter to B and print the same page again. The whole process should work without dialogues or customer interactions.
Is there any way/idea to do this?
Kind regards,
René