How to print pdf file when i feel that file and save in some folder, when i save file, call automoatic that file to open in adobe reader?

Recommended Answers

I don't understand the question.

Do you want to save some data as a PDF and then have it automatically open in Adobe Reader after it is saved?

Jump to Post

I'm not sure I truly understand the question but .NET provides classes in the System.Diagnostics namespace that can be used to start external processes such as Adobe Reader (acrord32.exe) which can be used to load and print a PDF.

Jump to Post

All 6 Replies

I don't understand the question.

Do you want to save some data as a PDF and then have it automatically open in Adobe Reader after it is saved?

Yes! Or to print without Adobe Reader.Code for print saved PDF...

I'm not sure I truly understand the question but .NET provides classes in the System.Diagnostics namespace that can be used to start external processes such as Adobe Reader (acrord32.exe) which can be used to load and print a PDF.

When i print file, paper is empty, not print the file.

Here is a brute-force method of printing one.

using System.Diagnostics;
namespace DW_417294_CS_CON
{
   class Program
   {
      static void Main(string[] args)
      {
         string strFileName = @"c:\users\???\documents\adobe\A_Mighty_Fortress_chord.pdf";
         Process p = new Process();
         p.StartInfo.FileName = @"c:\Program Files\Adobe\Reader 8.0\Reader\AcroRd32.exe";
         p.StartInfo.Arguments = @"/t " + strFileName;
         p.Start();
      }
   }
}

Thanks!! :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.