Printing A Gridview In Safari?
May 9, 2010
I am trying to create a form that has a calendar control, dropdownbox, button and Gridview. I want to print the gridview that I populate after I populate the grdiview.
I searched the web and found some examples using ClientScript.RegisterStartupScript. I was able to get it working in IE but when I tested my code in Safari, the PrintManager did not pop up.
Then I replaced the Gridview with a a ReportViewer and Designed a report using the ReportWizard. It worked find in IE but again when I tested in Safari I discovered that the RepportViewer's print icon will not appear in Safari.
My question: If you had to print from a simple webform -- say just the gridview -- how would you go about doing it.
View 3 Replies
Similar Messages:
Dec 22, 2010
I am using formview control to generate invoice. But instead of printing html view it is printing html code in PDF. I am doing like this:
[Code]....
View 2 Replies
Apr 6, 2010
I have the following code and when I click on "Edit" using Chrome or Safari, nothing happens.
[Code]....
I tried to remove my AJAX Updatepanel and the gridview worked.
View 2 Replies
Apr 19, 2010
i have gridview its working in IE and FF fine, but when i'm run in the Google chrome and safari, i gor outside border.
how i can rmove the only outside border to this both broswer?
View 6 Replies
Feb 15, 2012
How add Page break to Gridview Printing
My gridview size is 10 pages
And I want to print gridview with page break so that my page will get displayed without any row breaking on two pages.
View 1 Replies
Aug 10, 2010
i am printing girdview on clicking on button
[Code]....
Public Shared Sub PrintWebControl(ByVal ctrl As Control, ByVal Script As String)
'dim StringBuilder sb = new StringBuilder()
Dim sb As StringBuilder = New StringBuilder()
Dim stringWrite As IO.StringWriter = New IO.StringWriter(sb)
Dim htmlWrite As System.Web.UI.HtmlTextWriter = New System.Web.UI.HtmlTextWriter(stringWrite)
If TypeOf ctrl Is WebControl Then
Dim w As Unit = New Unit(100, UnitType.Percentage)
CType(ctrl, WebControl).Width = w
End If
Dim pg As Page = New Page()
pg.EnableEventValidation = False
pg.EnableViewState = False
pg.MaintainScrollPositionOnPostBack = False
If Script <> String.Empty Then
pg.ClientScript.RegisterStartupScript(pg.GetType(), "PrintJavaScript", Script)
End If
Dim frm As HtmlForm = New HtmlForm()
pg.Controls.Add(frm)
frm.Attributes.Add("runat", "server")
frm.Controls.Add(ctrl)
pg.DesignerInitialize()
pg.RenderControl(htmlWrite)
Dim strHTML As String = stringWrite.ToString()
HttpContext.Current.Response.Clear()
HttpContext.Current.Response.Write(strHTML)
HttpContext.Current.Response.Write("<script>window.print();</script>")
HttpContext.Current.Response.End()
End Sub
I get the error at line: pg.RenderControl(htmlWrite);
I tried setting the Enable Event Validation to false on the page but that didnt work..
View 1 Replies
May 31, 2012
I have printed GridView Control, there are labels above the GridView Control on Form ...
Now i need to print Labels, Textboxes above the GridView Control and also GridView Records ...
View 1 Replies
Dec 13, 2011
I need to print only the selected columns of the gridview
[URL]....
and i need to print according to selected columns of gridview ...not the selected rows
View 1 Replies
Nov 24, 2013
I want to implement this concept using master page, but its not working.
[URL] ....
When i click on the button 'Print Current Page', no action is taking place, even that print window is also not opening.
View 1 Replies
Dec 3, 2012
How to print the GridView headings in each page, in case the gridview returns about 100 records and we wish to print all of those, with page heading in each page.
View 1 Replies
Aug 11, 2012
i want to change the color of border rows and columns in the grid view in asp for printing purpose.
View 1 Replies
Feb 25, 2016
[URL]
using above code i am able to print gridview directly without hidden fields.after added to hiddenfields to gridview , hiddenfield values are visible for printing.after i am using gridview.colums[i].visible=false column not visible while printingproblem is after print the gridview not visible whatever my columns set visible false.Example:at printing time i am set checkbox visible false, after printing i want reload same page with checkbox but check box not visible after printing gridview
View 1 Replies
May 1, 2010
I'm developing an application in which user can decide if he wants to print something now or at some other time. So the idea is for user to click print and say now or determine the time when the document will be printed (without any further user inputs). I don't know what is the best way in asp.net mvc to this. Is there any way to print html in this way or do i have to convert that html in some other format and save it in database?
View 4 Replies
Mar 16, 2010
I have a gridview within an updatepanel which allows paging and has a linkbutton that when clicked shows a modalpopup for editing records. This works fine in IE, Firefox, and Opera but I do not get a postback in Chrome or Safari?? I have other linkbuttons on the page that are within updatepanels but are not within gridviews that are working fine. I have scowered the web but cannot find a solution.
[code]....
View 6 Replies
Nov 5, 2010
I am using a css stylesheet in one of my web pages. The styles work perfect for Mozilla and IE 7 and below. However theres a problem with it in IE8 and safari.
The width of class in the css is 700px. I have used a contentplaceholder in the master page from where this web page inherits. Now in IE8 it displays a little less than 700px. I think it displays a width of 600px. How can I solve this problem? Is there a tool for IE 8 similar to Firebug?
EDITED: I have figured exactly where the problem is by debugging the page source and the css. I dont know how I can change the width and alignment for ONLY IE8
I have fixed it for IE8 but having issues with Mac Safari. Anyway to target ONLY safari?
View 3 Replies
Jun 28, 2010
I have an asp.net page with an asp.net menu.
I defined the font in the menu items to be Myriad Pro.
In IE and Firefox it appears normally, but in Safari the menu items appear blank.
when I changed the font type to another font it worked fine.
so is there a way to make the Myriad Pro font appear on Safari.
View 4 Replies
Sep 28, 2010
I'm putting this tag at the header of my HTML pages, trying to get the page to stop vertical scrolling on mobile browsers like iPhone Safari:
View 2 Replies
Feb 21, 2011
For some reason, setting the width of a button with the standard notation isn't working while browzing with Safari:
width: 20px;
What is the syntax for Safari?
View 2 Replies
Aug 26, 2010
I've a project written with visual studio 2008 + asp.net 3.5 that renders perfecly also on safari browser.
I converted project to VS 2010 (without upgrading FW to 4.0, but manteining 3.5).
Well, locally using safari it renders perfectly, but on server (on server is installed only FW 3.5) it does not render correctly.
I've to said that in BrowserFile.broser i've:
<browsers>
<browser id="NewBrowser" parentID="Mozilla">
<identification>
<userAgent match="Unique User Agent Regular Expression" />
</identification>
<capture>
<userAgent match="NewBrowser (?'version'd+.d+)" />
</capture>
<capabilities>
<capability name="browser" value="My New Browser" />
<capability name="version" value="${version}" />
</capabilities>
</browser>
<browser refID="Mozilla">
<capabilities>
<capability name="xml" value="true" />
</capabilities>
</browser>
<browser refID="safari1plus">
<controlAdapters>
<adapter controlType="System.Web.UI.WebControls.Menu" adapterType="" />
</controlAdapters>
</browser>
</browsers>
i've also tried to delete safari section, but on server is still not working.
View 1 Replies
Jul 15, 2010
Does anybody have experience using ModalPopup extender in iPhone/Safari? I added a ModalPopup and when I click on the button it does not run my server side code. I am sure that I did everything correctly and the same code works just fine in IE and Chrome. Here is a chunk of the code:
[Code]....
andProtected Sub Button2_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button2.Click
View 1 Replies
Oct 8, 2010
I am using a check box to select and unselect all the rows
in a grid using the javascript. this is working fine in IE but its not working in safari
View 2 Replies
Mar 23, 2010
I am using .Net 1.1 for development of a web site. I have buttons for next and Back navigation in my user control. I have added this user control to my .aspx page. The navigation works fine in IE and FireFox, but the event does not get called for Safari and Google Chrome browsers.
View 1 Replies
Sep 17, 2010
Is DragPanelExtender not working in Safari/iPhone? Same page works just fine in other browsers but not on iPhone.
View 1 Replies
Feb 21, 2011
I am giving external css path in aspx page via
<link rel="stylesheet" media="all" href="file:///D:/CSS/Style.css" type="text/css" />
its works fine in firefox and ie while access that page.
but when i open this page in chrome or safari.
it does'nt do anything and no css is applying.
View 3 Replies
Jul 5, 2010
The text on my website is skewed and different areas are running together when viewing my site on a Mac using either Firefox or Safari. Is there anything I can do about this?
View 1 Replies