返回首页

每个人,我想知道,如果你能帮助我,

我目前HeidiSQL和Visual Studio 2010终极
NBSP工作;
我已在Visual Studio中的数据库程序HeidiSQL和我的数据库不知道如何,我得到的链接,所以我最终方案将于
NBSP从我的数据库数据。
是一个走在我的程序,从SQL表的数量和一些表甚至会之间共享等不同的"列表视图"
NBSP
有可能是一个赤裸裸的解决方案{S0}


汤姆。| thomasriley

回答

评论会员:游客 时间:2012/02/06
imgsrc=http://www.orcode.com/img/ico/smiley_smile.gif{A}imgsrc={A3的}包含示例代码来回下载...参阅本...{S0}
P.Salini:如果你想预览你的页面的一部分,然后用这个JavaScript代码|

这里print_area是要预览的div的id。

function getPrint(print_area)

        {

            //Creating new page

            var pp = window.open();

            //Adding HTML opening tag with <HEAD> ?</HEAD> portion

            pp.document.writeln('<HTML><HEAD><title>Print Preview</title><LINK href=Styles.css  type="text/css" rel="stylesheet">')

            pp.document.writeln('<LINK href=PrintStyle.css  type="text/css" rel="stylesheet" media="print"><base target="_self"></HEAD>')

            //Adding Body Tag

            pp.document.writeln('<body MS_POSITIONING="GridLayout" bottomMargin="0" leftMargin="0" topMargin="0" rightMargin="0">');

            //Adding form Tag

            pp.document.writeln('<form  method="post">');

            //Creating two buttons Print and Close within a table

            pp.document.writeln('<TABLE width=100%><TR><TD></TD></TR><TR><TD align=right><INPUT ID="PRINT" type="button" value="Print" onclick="javascript:location.reload(true);window.print();"><INPUT ID="CLOSE" type="button" value="Close" onclick="window.close();"></TD></TR><TR><TD></TD></TR></TABLE>');

            //Writing print area of the calling page

            pp.document.writeln(document.getElementById(print_area).innerHTML);

            //Ending Tag of </form>, </body> and </HTML>

            pp.document.writeln('</form></body></HTML>');

 

        }

检查此链接
{A4纸}

对不起,如果我误解你的问题
评论会员:lb1461083149 时间:2012/02/06
{C}