Hi,
I have a printing application which is working fine in Win 7. But I have some issues in Win 8. When I print the visual in windows 8, it spools to the printer, says Printing but nothing is actually printed. Basically I am using XAML to construct the visuals. This issue occurs with only specific HP printer. But I am able to print other documents to the same HP printer from Windows 8
I am trying to print a collection visuals. I have a combobox which populates all the printers connected to the machine.
It looks like there might be problems with my visuals. i tried to generate the visuals as a Xps document. I am able to open the xps document, see the content. But even printing that xps document directly using print dialog fails in Win 8. I am able to print to other printers. Only problem with that selected printer, at the same time other documents are getting printed in that HP printer without issues.This is the code I am using.
XpsDocumentWriter writer = PrintQueue.CreateXpsDocumentWriter(selectedPrinter);
vToXpsD = (VisualsToXpsDocument)writer.CreateVisualsCollator();
vToXpsD.BeginBatchWrite();
foreach (var item in m_visualsCollection)
{
vToXpsD.Write(item);
}
vToXpsD.EndBatchWrite();
Hari