flow document printout RRS feed

  • Question

  • Greetings, 
    I have a problem with printing in WPF.
    I am creating a flow document and add some controls to that flow document.
    Print Preview works ok and i have no problem with printing from a print preview window.
    The problem exists when I print directly to the printer without a print preview. But what is more surprisingly - when I use XPS Document Writer as a printer
    everyting is ok, when i use some physical printer, some controls on my flow document are not displayed.
    Thanks in advance
    Wednesday, November 4, 2009 8:42 AM


  • Greetings,
    I've resolved the problem.I found that binding and sending document to the printer are asynchronously operations. So I made an Appliaction.DoEvents() equivalent in WPF based on Beatriz Stollnitz article. This resolved the problem

    • Marked as answer by niao Thursday, November 5, 2009 7:49 AM
    Thursday, November 5, 2009 7:49 AM