Javascript - Unable To Print The Full Content Of Page When Horizontal Scroll Bar Appears
Mar 4, 2011
I need to print the current page in the asp.net application for that I am using javascript:window.print().
It's working fine when the page content is within the bounds. However, if the horizontal scrollbar appears as a result of overflow, am able to print only the visible content while the overflown contents couldn't be printed.
Is there any workaround to get this working? Is there any other alternative apart from javascript to achieve this functionality?
View 1 Replies
Similar Messages:
Nov 3, 2010
How to Print the Asp.net Page Contents or Full Page in ASp.net . I have to given the facility to user to print the Page with enterd Data .How to Deal with the Print functionality in Asp.net
View 6 Replies
Apr 28, 2010
I've got a JQuery tabcontrol (4 tabs), which each of them control 1 gridview. now I got a button "print". It activates a javascriptfunction, which should build a page, containing all gridviews. I got something, but it does not work:
function doPrintPage() {
myWindow = window.open('', '', 'titlebar=yes,menubar=yes,status=yes,scrollbars=yes,width=500,height=600');
myWindow.document.open();
myWindow.document.writeln("<link href='/styles/Layout.css' type='text/css' rel='stylesheet' ></link>");
myWindow.document.write(document.getElementById('tabcontainer').innerHTML);
myWindow.document.close();
myWindow.focus();
myWindow.print();
return true;
}
I thought it may be the getElementByID() and then something like 'tabcontainer' (which contains the tabs) or 'tabcontent' (the content of each tab) or 'GridView1' or something, but I could be completely wrong.
View 1 Replies
Nov 4, 2010
have a asp.net application where I'm trying to load few documents into memory and print it. I learned that I can't use PrintDialog in a web app and the only way is to print using javascript by writing the content into a (hidden) iFrame.My question is how can Silverlight help me with this? Is it possible to show print dialog and get printer settings and print without a preview by sending the files directly to the printer? How hard it is achieve to using SL?
View 1 Replies
Sep 17, 2010
I got a problem in horzontal scrollbar in listbox. For Asp.Net, i put the div and inside placed the scroll bar. I got the horizontal scroll bar. But in list box if it is large data, it is scrolled a list box, not scrolled list box inside data. I put the code here.
[Code]....
[Code]....
View 3 Replies
Mar 31, 2010
I built some local reports (on a asp.net pages). The reportviewer control is inside a table, with width set to 100% and reportviewer width is also 100%. Because the width is high and unknown. For one of these reports I get a horizontal bar. But for another one...I can't get it. Both of them has interactive size(width) set to 8.5in.
View 2 Replies
Apr 30, 2010
how to make the horizontal scroll bar in listview?
View 1 Replies
Jul 28, 2010
how to place horizontal scroll bar in Ext js Grid.
View 1 Replies
Feb 25, 2016
Iam using master pages in my application.
How to scroll child page part only (without scrolling master page part)
View 1 Replies
Oct 15, 2010
I have a panel on a pretty basic C# page. I've set the height, and width, and set thescrollbars = "Vertical". However, on some pages, the panel adds a horizonal scroll bar. It seems very random, and I can't figure out why or how to prevent the panel from adding horizontal scroll bars. The content in the panel is dynamic from a sql database, and I use a Repeater to display the returned sql.
Here is my code from my page for the panel. Did I forget something?
<asp:Panel
ID="pnlBioContent"
runat="server"
CssClass="panel_with_padding"
Direction="LeftToRight" Height="400px"
ScrollBars="Vertical"
Width="505px">
View 4 Replies
Jun 13, 2010
I have set TextMode="MultiLine" for TextBox, could you tell me how can to display Horizontal scroll bar of the TextBox?
View 1 Replies
Sep 2, 2010
How to remove the horizontal scroll bar from a TextBox on web form.I am using IE8.0
<asp:TextBox ID="TextBox1" runat="server" Width="99%" Height="250" Wrap="False" TextMode="MultiLine" ReadOnly="True"></asp:TextBox>
The horizontal scroll bar is always visible weather there is text or not, in a disabled mode.
And the vertical scrollbar of textbox flickers when I am moving my mouse cursor over anchor tag <a />. For textarea control the scroll bar automatically goes up. I am hiding and showing a div tag on click of anchor tag.
View 2 Replies
Jan 20, 2010
how to make an horizontal scroll for my large GridView ?
...exquestion here : [URL]
View 1 Replies
Jun 28, 2010
How to add vertical and horizontal scroll for grid view in Dot Net ?
View 1 Replies
Jun 9, 2010
I have a gridview with around 250 columns which are generated automatically except first column which is fixed. Is there any way I can fix the first column but allow horizontal scrolling on remaining columns.
I have only 6 rows in gridview so don't need vertical scroll.Here is my code.
<div id="dvShipmentGrid" style="width: 1000px; padding-right: 10px;
View 3 Replies
Mar 15, 2011
I have a GridView in webform inside a DIV tag whose width is 920 pixels. I want to display all records from a database in the GridView using horizontal scroll.
View 1 Replies
Oct 26, 2010
I have placed my aspx controls inside html div like below-
<div style="width: 960px; height: 600px; vertical-align: top; overflow: auto; ">
<my controls>
</div>
Due to which it adds a horizontal scrollbar to my controls. Now i have a checkox inside this with autopostback property enabled due to which whenever i checked it, my sroll position changes which makes a difficult task for user to enter data. Is there any way to maintain the horizontal-position of scrollbar om autopostback? although i have tried maintainscrollposition=true in page tag but doesnot work for horizontal scroll position
View 3 Replies
May 7, 2015
i need to add vertical as well as horizontal scroll bar to grid view. i have read your artical about adding vertical scroll bar. how to add horizontal scroll bar ??
View 1 Replies
Jun 17, 2010
I have a static aspx menu. (horizontal)
I have content on the screen the sometimes requires horizontal scroll.
I would like to keep the menu the width of the visable screen and centered while scrolling. AKA. the menu would stay in the same position on the screen even when the user scrolls.
EDIT: I'm relaly looking for simple. Even something that would just keep the menu items aligned left would work for me. So the menu bar can go all the way accross, but the items in it would align left, so the right most part fo the menu bar would be empty on longer screens...
View 1 Replies
Jun 7, 2010
I have a datalist within a table and it scrolls horizontally. The data is set up to progress from past to future. By default the page loads with the table scrolled all the way to the left, and therefore displaying data which is furthest in the past. I would prefer for the table to load with the scroll bar in the middle, so that data at the split between past and future is displayed and the user can go further each way as he desires. how to set the focus within the table to let my datalist load exactly where I want it?
View 14 Replies
Jun 28, 2010
I have a page, under a master page. I gave a button for printing the page. But the page will be printed along with the master page contents too. How is it possible to print only the contents of the current page excluding the master page contents ?
View 2 Replies
Feb 8, 2010
i am trying to bind image column from database to a control (tried with gridview) to show images in one single row showing 3 images at a time with a scroll bar...can anyone let me know if there is any way of doing this with javascript but not with jquery??
View 7 Replies
May 31, 2013
I am trying to implement this ..[URL]I have created stored procedure which is working fine. I have changed the database and table name.
In code behind I changed string query = "[GetCustomersPageWise]"; to===> string query = "[GetMsgs]" /*
Which is the correct name of my new stored procedure
*/In repeater code I changed <b><u><span class="name">
<%# Eval("ContactName") %></span></u></b>
to ===> <b><u><span class="name">
<%# Eval("Date") %></span></u></b> /*and so on.
Date is a column name of the table i am using.*/
View 1 Replies
Feb 2, 2011
We have files on server of several types (.pdf, .docx, .jpeg). The scenario is a user press a button (a link) and the print dialog opens which will print the content of a file chosen.
I think it's gonna be a link to another page where we fill in response with a file content and JavaScript window.print();
View 1 Replies
Nov 8, 2010
n the web page I need to print some content partly fetched from database to the user. The user can print all the reciepts of his basket or just print one reciept. what I do for now is that I redirect user to another page including datalists that fetched regarding info from database and then by clicking print it prints data. after that user shoud push back button to be redirected back to main page.But I want to do something on my page, that some how maybe pop up modals or flyouts or anything else, will be able to show data collected from database match with users basket, and let user click print and then print it. I need a solution on the same page not on the other page.
View 2 Replies