473,385 Members | 1,375 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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 61055
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.