Jump to content

jp2code

Member
  • Posts

    3
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United States

About jp2code

Profile Information

  • OS
    Windows 7 x64

jp2code's Achievements

0

Reputation

  1. I don't ...*think* so.I've already created the image. What I'm after is the Windows Photo Viewer Print Dialog box ...but I don't know if that's what it is really called. I'm looking for something in Windows that already exists (like OpenFileDialog, SaveFileDialog, and PrintDialog), but I want the Print Dialog that Windows Photo Viewer uses (see screenShot.png attachment): public static void PrintWithSDK(string fullName) { // FYI: WindowsPhotoViewerPrintDialog does not really exist, or at least I've got it named incorrectly using (WindowsPhotoViewerPrintDialog dlg = new WindowsPhotoViewerPrintDialog()) { dlg.ImagePath = fullName; dlg.ShowDialog(); } } Above is the type of code I am after. Does anyone know if something like that exists?
  2. Hi Doc, Actually, I need to write some code so that the tool that is built into my application can send a print job to the printer. What you are describing sounds great, but to get it to work would require installing it on every PC that my application is installed on. We have hundreds of PCs at our facility running my application. I want to know how to programmatically call the Windows tool that is "built in" so that I do not have to do this.
  3. We have a tool in our company's Visual Studio 2008 (C#) application that generates a screenshot of our application that works great. We have been calling the PC's default photo viewer to display these images, which is typically Windows Photo Viewer. Everyone in our company likes the interface, but it is so realistic that we find our employees are trying to press buttons and controls on the image. I created a simple photo viewing tool to display the screenshots, but now I have lost the ability to easily send images to the printer with the Windows Photo Viewer software. Is there a way to call Windows Photo Viewer's "print" command when my form's Print button is clicked? Most of our PCs are Windows XP, but we are slowly migrating to Windows 7 (Vista never made it). FileInfo _screenShot; private void Print_Click(object sender, EventArgs e) { if ((_screenShot != null) && (_screenShot.Exists)) { PrintWithSDK(_screenShot.FullName); } } public static void PrintWithSDK(string fullName) { // Help needed here }
×
×
  • Create New...