473,466 Members | 1,394 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How to open .pdf file from c# Application - Please help

Hi All,

I want to open a .pdf file from my C# application and show to the user.

I have acrobat reader in the client's computer.

How to do this? Any suggestions please ?

Thanks for your time.

Regards
Anand Ganesh
Nov 15 '05 #1
4 61058
Hi,

You could use System.Diagnostics.Process.Start()
take a look at it in the MSDN

Cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"Anand Ganesh" <an**********@hotmail.com> wrote in message
news:uh**************@TK2MSFTNGP09.phx.gbl...
Hi All,

I want to open a .pdf file from my C# application and show to the user.

I have acrobat reader in the client's computer.

How to do this? Any suggestions please ?

Thanks for your time.

Regards
Anand Ganesh

Nov 15 '05 #2
Alternately, you can host the web browser control in your C# application and
load this .pdf file into the browser control.

"Anand Ganesh" <an**********@hotmail.com> wrote in message
news:uh**************@TK2MSFTNGP09.phx.gbl...
Hi All,

I want to open a .pdf file from my C# application and show to the user.

I have acrobat reader in the client's computer.

How to do this? Any suggestions please ?

Thanks for your time.

Regards
Anand Ganesh

Nov 15 '05 #3
Which function call of the web browser can load the pdf file?

Pengyu.

"Rao TRN" <rt*****@mohomine.com> wrote in message
news:eO**************@TK2MSFTNGP11.phx.gbl...
Alternately, you can host the web browser control in your C# application and load this .pdf file into the browser control.

"Anand Ganesh" <an**********@hotmail.com> wrote in message
news:uh**************@TK2MSFTNGP09.phx.gbl...
Hi All,

I want to open a .pdf file from my C# application and show to the user.

I have acrobat reader in the client's computer.

How to do this? Any suggestions please ?

Thanks for your time.

Regards
Anand Ganesh


Nov 15 '05 #4
Hi,

IMHO it's better if you use Process.Start() it will open acrobat reader and
you will see the document in another window.

Unless that you want to see the pdf inside your application I would go for
the Process.Start method

Cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"Pengyu Hong" <ho**@stat.harvard.edu> wrote in message
news:uW**************@TK2MSFTNGP12.phx.gbl...
Which function call of the web browser can load the pdf file?

Pengyu.

"Rao TRN" <rt*****@mohomine.com> wrote in message
news:eO**************@TK2MSFTNGP11.phx.gbl...
Alternately, you can host the web browser control in your C# application

and
load this .pdf file into the browser control.

"Anand Ganesh" <an**********@hotmail.com> wrote in message
news:uh**************@TK2MSFTNGP09.phx.gbl...
Hi All,

I want to open a .pdf file from my C# application and show to the user.
I have acrobat reader in the client's computer.

How to do this? Any suggestions please ?

Thanks for your time.

Regards
Anand Ganesh



Nov 15 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Bang | last post by:
Hi All, Recently I installed unixODBC(2.2.3) and MySql and MyODBC on Redhat 9.0. After the installation, I am able to use test program isql to connect to the database I created with mysql. ...
6
by: Stefania Scott | last post by:
Hi, I need to find how can I know that a program I am going to shell it is already open. This program uses an csv file that I need to refresh before shelling the program, however if the csv file...
8
by: sudha | last post by:
Hi, To open a word doc from c#, i use the following code : Word.ApplicationClass WordApp = new Word.ApplicationClass (); // give any file name of your choice. object fileName =...
0
by: CM | last post by:
Hi there: I have a web project which can be open and run without problem. I didn't open the web application for a period and during which I didn't modified any IIS items, but now I cannot open any...
4
by: CM | last post by:
Hi there: I have a web project which can be open and run without problem. I didn't open the web application for a period and during which I didn't modified any IIS items, but now I cannot open any...
6
by: Shimon Sim | last post by:
Hi 1) Is it possible to force browser to open image in default windows application? That is what specifies in Folder Options for jpg extension. 2) Also if the 1) is possible is it possible to...
4
by: Fabian | last post by:
Hello, I want to open a Word Document in my C# Programm. I tried this : Word.Application wordapp = new Word.Application(); object path = "TEST.DOC"; object vk_read_only = false; object...
6
by: Moumen VB.NET 2003/2005 Developer | last post by:
How can I detect if a file sitting on a network drive is still open by another application? This application resides on another machine on the network? I am using VB.NET 2003 Your help is...
5
by: Yoshitha | last post by:
Hi I am developing a C#.Net windows application for my project. In that project I have an IDE to work on. The application is similar to Adobe Photoshop. My requirement is as follows. 1) I must...
5
by: Stefano Tonello | last post by:
Hi all, I need to call windows' "open with" dialog from my C# windows form application. After the user selects application, control must return to me (I have to launch directly the process). I...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.