473,385 Members | 1,693 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.

open a pdf file at a specified page in C#

I have to open a help pdf file at a specified page in C# in windows form,

I tried this link,

http://bytes.com/topic/c-sharp/answers/459446-open-pdf-file-specified-page-c

Process myProcess = new Process();
myProcess.StartInfo.FileName = "Acrobat.exe";
myProcess.StartInfo.Arguments = "/A \"page=2=OpenActions\"C:\\TEMP\\Modified_User_Manu al_Ch1-3.pdf";
myProcess.Start();

I am getting an error says "The system cannot find the file specified" in myProcess.Start();

Do i have to install Acrobat.exe to execute this code.

Need hlp ASAP.
Oct 31 '11 #1
7 4212
GaryTexmo
1,501 Expert 1GB
When you call that code, you are telling it to go and start the process "acrobat.exe" which means that file must exist on your file system. So in short, yes, you need to install acrobat, otherwise you'll get the exact error that you're getting ;)
Oct 31 '11 #2
Hi Gary,
Thanks for your prompt response.

Is there any trial version of acrobat.exe available. I did some research. i couldn’t find one.

Is there any other way to achieve this behavior in Windows form. I have to open a help file using specific chapter or bookmark or page.

Need help ASAP.

Dorinda
Oct 31 '11 #3
GaryTexmo
1,501 Expert 1GB
If you just want to view the PDF, why don't you use the free reader?

Here's a link to Adobe Reader...
http://get.adobe.com/reader/

It looks like the executable name is acrord32.exe.

As for a free version of acrobat, check adobe's page. Otherwise I don't know. Sorry!
Oct 31 '11 #4
Thanks you so much. That realy helps.
Oct 31 '11 #5
Hi Gary,

Is it possible to open the PDF using Bookmark instead of Page number?

Thanks.
Dorinda
Nov 3 '11 #6
GaryTexmo
1,501 Expert 1GB
http://partners.adobe.com/public/dev...Parameters.pdf

That's the doc for a PDF's open parameters. Apparently you can use the nameddest parameter to specify the bookmark.
Nov 3 '11 #7
Hi Gary,
To create the nameddest, I opened the pdf in acrobat(trial), i don' t see any deatination tab in Navigation Panel(View > Navigation Panels)
Is there any other way to set namedest parameter.
Dorinda.
Nov 3 '11 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: tbrothers | last post by:
I'm new here so if I posted this incorrectly please go easy. I recently moved my website from a Unix hosting service to a Windows 2003 IIS hosting service. The site was converted from php/mysql...
0
by: SampathTangudu | last post by:
Hi, We are trying to use the Hash Tables for passing information from one aspx page to another aspx page. We are using the below code. IsolatedStorageFile isoStore =...
8
by: Michael | last post by:
I am running a web server (IIS) on Windows 2003 SP 1. My ASP.NET C# applications run fine. However, my application is a combination of Classic ASP and C#. For some reason when you attempt to...
6
by: chanmm | last post by:
Dear all, I have run the same web application in my Windows XP Pro without any problem but once I deploy it in Windows 2003 Server the message below appear: The system cannot find the file...
3
by: polocar | last post by:
Hello, I'm writing a program in C#. In the interface you have 2 textboxes in which you can specify the pdf file name (with its position in the hard disk) and the page of that file you want to go...
4
by: norm4h8 | last post by:
Hi everyone! I have a problem with trying to open a file in C. The following line in my code is suppoed to open a specified file if it exists and create a new one with this name if one doesn't...
9
by: Andrew Poulos | last post by:
I have some js that looks like this: fOpenPDFInNewWindow = function(url,page) { var page = page || 1; newPDF = window.open(url+"#pagemode=bookmarks&page="+page,...
4
lwwhite
by: lwwhite | last post by:
I'm working with VB in an Access 2003 database. I have a form, called "EditWindowsFields," that contains a field called "sourcedoc." I am trying to use the Shell function to open the XML file that is...
0
by: teo | last post by:
Hallo, by a Label on a .aspx page (and the <a href="..."tag behind it) I'm able to open an .html page with : a Frame on the left and on the right the page #1 (among all the ones...
0
by: teo | last post by:
Hallo, I need to open a page with frames; I need to open it NOT with the usual first page in its centre, but with a different page in the centre. Detailed explanation:
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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.