Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. print preview for xps document

print preview for xps document

Scheduled Pinned Locked Moved C#
questioncsharpgraphicstutorial
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Shiva Prasad
    wrote on last edited by
    #1

    hi all, I am using DocumentViewer Class which exports print method only..I need to have a print preview option too in the winfx application. What's the right way to do this ? I am using vc# 2005 I also need suggestion for the following method In the Handler for print preview menu, I have a private void OnPrintPreview( ) { System.Windows.Forms.PrintPreviewDialog prev = new System.Windows.Forms.PrintPreviewDialog(); prev.document = //Here, How can I get the PrintDocument from DocumentViewer prev.ShowDialog() } DocumentViewer's document member variable is of type IDocumentPaginitorSource. Pls let me know how to get System.Drawing.Printing.PrintDocument type from IDocumentpaginitor. Thanks,

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups