Posts Tagged ‘print’
How to Print Datagrid in ASP.Net
To print only the content of the datagrid control, you need to encapsulate it with div element.
Example:
-
<script type="text/javascript" language="javascript">// <![CDATA[
-
function PrintDataGrid(elementname) {
-
var oDiv = document.getElementById(elementname);
-
var oprint_window = window.open('', '', 'letf=0,top=0,width=1,height=1,toolbar=0,scrollbars=0,status=0');
-
-
oprint_window.document.write(oDiv.innerHTML);
-
oprint_window.document.close();
-
oprint_window.focus();
-
oprint_window.print();
-
oprint_window.close();
-
}
-
// ]]></script>
…
or
-
<input id="Button1" onclick="javascript:PrintDataGrid('DatagridData')" type="button" value="button" />
How to Print ASCII characters in SQL Server (T-SQL)
Posted by: admin in Database, MS SQL Server on March 6th, 2009
Use char(intValue)
Param: intValue = Is an integer from 0 through 255. NULL is returned if the integer expression is not in this range.
| Control character | Value |
|
Tab |
char(9) |
|
Line feed |
char(10) |
|
Carriage return |
char(13) |