0

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?

3
Contributors
6
Replies
7
Views
5 Years
Discussion Span
Last Post by gogs85
0

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?

0

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

0

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.

0

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

0

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();
      }
   }
}
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.