Web Forms :: Open Pdf In New Window Other Than Same Application
Oct 19, 2010
I am using crystal reports 2008 with asp.net 3.5 to generate .pdf reports. When I use the code below it exports the pdf file in the same application window. I hate this. I have to go back for getting another report. I want this to be opened in a separate window so that users can still work on input parameter page.
RecDetrpt.ExportToHttpResponse(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat, Context.Response, false, string.Empty);
View 4 Replies
Similar Messages:
Oct 29, 2012
in my project i have a gridview,and i provide a print option for every row...if i print the selected row it will be printed in the crystal reports..its working fine..what i need is ,when i click the print option it will opens in pdf format....i tried but when i click the print option a pop up box will displayed like open with and save us..i dont need like that.if i click the print option it will open directly in pdf format..how?
Here is my code
Dim CrystalReport As New ReportDocument CrystalReport.Load(Server.MapPath("CrystalReport.rpt")) CrystalReport.SetParameterValue("fname", fname) CrystalReport.SetParameterValue("lname", lname) CrystalReport.SetParameterValue("company", company) CrystalReport.SetParameterValue("desig", desig) CrystalReport.SetParameterValue("dept", dept) CrystalReport.SetParameterValue("tsalary", tsalary) CrystalReport.SetParameterValue("gsalary", gsalary) CrystalReport.SetParameterValue("npayable", npayable) CrystalReportViewer1.ReportSource = CrystalReport Response.Buffer = False Response.ClearContent() Response.ClearHeaders() CrystalReport.ExportToHttpResponse(ExportFormatType.PortableDocFormat, Response, True, "Employee")
View 1 Replies
Jan 4, 2011
I can't use RegisterStartupScript('window.open...), because Chrome blocks the popup without even informing the userI can't use "onclientclick=window.open(..." in the markup, because I have to invoke code in the button click event handler before opening the popup window.I can't expect every user of the website to add the site as an exception in Google Chrome's popup blocker, since they'll assume it's an error on the website and not with the popup blocker
View 5 Replies
Oct 6, 2010
I want to add a button to my user control in SilverLight 4.0 application which will open a new browser window with an aspx in it when it is clicked.
Additionaly, can I lock the SL application until this new window is closed (Alike a modal dialog)?
View 2 Replies
Oct 18, 2010
i have an aspx page in which a link in the grid view opens a popup page . the data in the grid view would be dynamic and i need to send the id of the row of grid while calling the child window. i get the id using sender.id, but how would i send this using window .open()?
View 2 Replies
Mar 10, 2011
I have a login page that is loaded in popup window (colorbox) and after user logs in it should be closed and parent window should be loaded with new page.
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
Do While reader.Read()
If Trim(reader("ZAP").ToString()) = Trim(textBoxZap.Text) Then
Session("A") = "1"
Response.Redirect("~/default.aspx")
Else
lblErr.Text = "incorect"
End If
Loop
So once the buton is clicked and user name and password is corect popup window should be closed and user redirected to default aspx.
View 1 Replies
Apr 28, 2010
I am trying to open a popup window from main window using window.open() method. How to get back the value from the called popup window to the calling window in vb.net, basically i need to get back the value and populate in the text box available in the main window.
View 3 Replies
Feb 17, 2011
I have an asp.net page that contains an Iframe embedded with some data and a ImageButton. On ImageButton click event (server side) I have Response.Redirct:
Response.Redirect("results.aspx");
This always open the results.aspx in iframe. I want that results.aspx should always open in the parent window. I tried the following till now but none worked:
Response.Redirect("<script language='javascript'>self.parent.location='results.aspx';</script>");
Response.Redirect("javascript:parent.change_parent_url('results.aspx');");
..and also tried the options from [URL]
View 1 Replies
Sep 11, 2010
Click imagebutton open window.open in class asp.net 2.0
View 2 Replies
Feb 12, 2010
How do I pass a window name to window.open(url, windowname) programmatically? I am using a user control inside aspx forms. I want the windowname to be different, so from each link a separate window opens.
I have an asp:hyperlink in a .ascx form. The code looks like this:
<asp:hyperlink runat="server" id="xx", navigateurl="is set programmatically" onclick="javascrip:return popup(this, 'my window'; " text="xxx"/>
'my window' needs to be a variable.
View 3 Replies
Aug 26, 2010
I have an aspx page which contains a user control(a gridview). When I click on a link button in the gridview, I will open a popup window(An aspx page) successfully. When I click on save button in the popup, I am saving the details and refreshing the parent page successfully. I have a button in popup window. My requirement is:
When I click on the button inside popup window1, I would like to open another popup(aspx)(Say popup window2) in a new window without closing popup window1. When I save some changes in popup window2 and click on save button in popup window2, I need to close it and refresh popup window1.
View 2 Replies
Sep 23, 2010
we are running a click-to-call service, my idea is basically like this: website have a link on their page, when the link is clicked, a web page(say it is popup.aspx) hosted on our server is popup, user can input their phone number, and click "call me" button to let the website call him. In the button click event, I want to get Request.UrlReferrer, then query the db to get website's phone. But in IE, Request.UrlReferrer is null(firefox is ok, not test chrome yet),my question is how to get opening window' url in IE? we put popup.aspx on our server because
our client website is not force to use asp.net. we have the control what we put on the popup window, and can modify the page just from our side, if we put the pop window on our partner's side, if we have 100 partner, and we change the page's design, we will notify everyone of them to change this, change that. we can implement a statics system to know how popup a day, which site is most popular,etc
View 1 Replies
Sep 24, 2010
I am using the javascript to open a child window using window.showModaldialog(), i have retuen a value from the child page is working fine in IE and firefox but is not working in chrome browser, is there any work around or alternative for it to work in chrome as well.
View 2 Replies
Aug 25, 2010
I using VS2008 and C# for an ASP.NET web application. From within C# code, how to use the "Window.Open" method to create a new browser window? I know it can be done in ASP script code using Javascript but I would like to create new window from C# as desired.
View 11 Replies
Aug 2, 2010
I am trying to open a file share link from the window.open ... but its adding the http://localhost/vdir/ before the path can any one say what is the problem?
View 1 Replies
Aug 9, 2010
Quick one. I've created a PDF using iTextSharp and want to open it straight away inside a new window. I've tried the following to no avail:
[Code]....
View 6 Replies
Nov 24, 2010
<link href="StyleSheet.css" rel="stylesheet" type="text/css" />
</head>
<body>
[code]...
View 2 Replies
Aug 30, 2010
i'm interested to know how can i open a small pop up window when clicking a button, not a new tab, but a new window.
View 2 Replies
Aug 31, 2010
I'm using the following span to open a page in a new window. What is INCREDIBLY odd is that it is exactly the same code from three different pages, but the first refuses to open in a new window. The only difference is that the first example resides within an Ajax Accordian Panel so I suspect that it might be an Ajax related issue.
[Code]....
View 2 Replies
Oct 11, 2010
Is it possible to Open a new browser tab/window using c#. I have query string info I don't want to put in a hidden field due to it showing on the client side. I do save the data in ViewState and encrypt the viewstate; however, I don't know how to access that information on client side.
I can access the viewstate data fine on Server Side but I need to open the new browser window on server side in order to access the ViewState. I may be wrong. Is there a trick to this?
I did find a way; however, on any other click after the initial click everything goes to a new window:
Control:
[code]....
View 1 Replies
Feb 3, 2010
how to open the second pop up window. as i always replace the extisting pop up window if type the following code:
Page.ClientScript.RegisterStartupScript(this.GetType(), "openpopup"
"<script language="javascript"></script>)o;
View 2 Replies
Feb 16, 2011
I have a button that once clicked it open a pdf file in the same window. I need to be able to open in a new window
How can I open this pdf in a new window.
[Code]....
The reason for my request is that before a user click on print report, a user click on a button to make some of the controls on the page grayed out - enabled = false; so when a user click on print report, a pdf document open BUT once he click on return back in the browser, all the controls that were grayed out are back. so how to fix this issue. i thought to open a new window for the pdf.
View 6 Replies
Mar 9, 2010
How do you write C# code to open up a New Browser window with for example [URL]
View 4 Replies
Jan 2, 2010
i am using one Xml file in my application . now i want to open new window when i am clicking the image in Xml file. i am sharing my code below
<xml
version="1.0"
encoding="utf-8"
?>
<Advertisements>
<Ad>
<ImageUrl>
</ImageUrl>
<NavigateUrl>[URL]</NavigateUrl>
<AlternateText>[URL]</AlternateText>
Keyword>A</Keyword>
<Impressions>Technology</Impressions>
<Caption>This is the caption for Ad#1</Caption>
<Ad>
<ImageUrl>[URL]g
</ImageUrl><NavigateUrl>[URL]
</NavigateUrl><AlternateText>[URL]</AlternateText>
<Keyword>s</Keyword>
<Impressions>Web Site</Impressions>
<Caption>This is the caption for Ad#2</Caption>
</Advertisements>
View 1 Replies
Nov 8, 2010
I have a PDF help document that I would like to store on the server. When a user is on the site and clicks on the help link, I would like it to open the PDF help document and go to a particular page, depending on where the user was when they clicked on the link. For example, if they are on the Staff Projections page when they clicked the help link, I would like the PDF to open in a new tab and automatically go to page 32 which contains information about Staff Projections. I am running .NET 3.5, and the company uses Internet Explorer 8.
View 2 Replies