当前注册人数155278人 邮箱: 密码: 注册新用户 忘记密码
首页 C/C++/MFC C# ASP.NET VB.NET MATLAB   站内搜索 BBS讨论社区 下载代码说明/积分规则
为什么要注册?

1. 可以直接免费从本站下载代码,防止邮件发送不到您的邮箱,或登录不了国外网站

2. 可以设定关键字,当有您关心的代码收录时,邮件通知您

3. 对这里的代码进行评分和评论

4. 可以和大家一起分享你的源代码,得到更多的建议

Gridview Control with print and preview features

支持打印及预览的Gridview控件源码

2007年12月05日
VB.NET, windows,
支持打印及打印预览的DataGrid
 
相关知识

     '重置初始环境
    If (bRightToLeft) Then
      'right align
      CurrentX = PrintDoc.DefaultPageSettings.PaperSize.Width_
                 - PrintDoc.DefaultPageSettings.Margins.Right
    Else
      'left align
      CurrentX = PrintDoc.DefaultPageSettings.Margins.Left
    End If

    'advance to next row
    CurrentY += PrintGrid.Cell(i, 0).Height
    CurrentRow += 1
    '如果超出底部页边距,则需要另外一页
    'return true
    If (CurrentY > PrintDoc.DefaultPageSettings.PaperSize.Height_
              - PrintDoc.DefaultPageSettings.Margins.Bottom) Then
      Return True
    End If

源代码原文下载:
Source link has yet to be found. Please, try to download it from local website.

源码图片

从本站下载附件及源代码(1个附件,已经成功下载422次)

最值得关注的外文源代码

Gridview Control with print and preview features
DataGrid with built-in filter functionality
Extending the GridView CommandField To Add Delete Confirmation
Edit Individual GridView Cells in ASP.NET
评论(评论是增加积分的一个有效途径)
字数在300字内
请如实评论
本源代码共评论57次,此处显示最近20次评论! 查看所有评论

tyut  2010年05月02日
不是C#吧是VB
nbastar  2009年12月29日
谢谢
jaczhao  2009年10月19日
想下载试试,我是C#新手
曙光  2009年09月20日
是winform的吧,web也能用吗?
hah   2009年08月03日
不错的,我正在找的
junouyang  2009年07月23日
是winform的吧,web也能用吗?
lcq  2009年06月16日
是啊,确实挺好的
gray  2009年05月18日
是啊,确实挺好的
netprize  2009年02月12日
还没用,大家说好就是真的好,下下来先,看来还得用C#重写
dbrose  2009年02月12日
支持打印及预览的Gridview控件源码
donneyming  2008年12月17日
支持打印及预览的Gridview控件源码
dnlrh  2008年12月16日
xiexie
tianya2146  2008年12月11日
很好 支持
qy1983127  2008年11月26日
有没有C#的
qy1983127  2008年11月26日
有没有C#的
ruirui  2008年11月24日
ding
narnia2008  2008年11月15日
很好 支持
今生只为你  2008年11月14日
支持打印及预览的Gridview控件源码
小改  2008年11月10日
支持打印及预览的Gridview控件源码
jacky  2008年10月29日
怎么下载的??
字数在300字内
请如实评论
CopyRight (C) codesoso.com 2007-2009 All Rights Reserved   免责声明
京ICP备08011023号