473,396 Members | 1,997 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,396 software developers and data experts.

Open multiple pages in ONE pdf using Buttons in c#

Sir / Mam, please help me with this issue..

when i click button 1 it opens the page in one pdf with the nameddestination...

when i click button 2 it opens different page in another pdf with the namedestination...

Any ideas... to open different pages or topics in one pdf when i click different buttons..???...

Plz.... Desperate......Desperate.....





using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace button_click_pdf_2
{
public partial class Form1 : Form
{

System.Diagnostics.Process myProcess = new System.Diagnostics.Process();
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{

myProcess.StartInfo.FileName = "AcroRd32.exe";
myProcess.StartInfo.Arguments = " /n /A \"nameddest=nameddest\" C:\\temp\\file.pdf\"";
myProcess.Start();
}
private void button2_Click(object sender, EventArgs e)
{
myProcess.StartInfo.FileName = "AcroRd32.exe";
myProcess.StartInfo.Arguments = "/n /A \"nameddest=nameddest:\" C:\\temp\\file.pdf\"";
myProcess.Start();

}
}
}
.
Mar 12 '12 #1
0 1390

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

Similar topics

1
by: matt | last post by:
I'm using this to scan Multiple pages into Access 2k :- Call KillTempFile strTempFile = TempFile(False, "scan") Me.scanControl.MultiPage = True Me.scanControl.ScanTo = FileOnly...
0
by: ghadley_00 | last post by:
MS Access Create form / report with multiple pages using different background images Hi, Would like to have users fill out a multipage form, and then click a print button, which pulls up the...
1
by: Novice | last post by:
Hey all, I have finally managed to create a Custom WebControl and am using a technique from another programmer to maintain state between pages - I would just like to validate this idea. ...
4
by: tshad | last post by:
Can I set up multiple pages in the same Location tag? I thought I saw somewhere that I could. I tried the following, but it doesn't work. ***************************************************...
4
by: Jay | last post by:
Still can't seem to find a solution to printing a lengthy datagrid on multiple pages including datagrid headeron each page. I am not using Crystal Reports or Reporting Services or VStudio. Any...
2
by: ray well | last post by:
hi, i need to print multiple pages on a printer. this is what i'm using now Sub Print() Dim PrintDoc As New PrintDocument AddHandler PrintDoc.PrintPage, AddressOf Me.PrintText Do While...
1
by: anna_john | last post by:
How do i link to multiple pages using the same link? i would like to get an answer related to jsp or javascript
4
by: TazaTek | last post by:
Hi, I'm wanting to create a form that will take in some information, and return 2 (or more) pages in new tabs. I didn't know if this would be a better server side, or client side application. ...
0
by: shajith | last post by:
hello sir, please help me ,how to add multiple pages in print.i have sent my coding also pls help me.................... Private Sub PrintDocument1_PrintPage(ByVal sender As Object,...
13
by: malcolmk | last post by:
Hi, been scratching my head and looking all over but cant get session data to pass to multiple pages. The scenario is like this. I present a splash page with an option to login at the bottom via...
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: 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?
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...
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...
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,...

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.