Rss & SiteMap

Foxtable(狐表) http://www.foxtable.com

新一代数据库软件,完美融合Access、Foxpro、Excel、vb.net之优势,人人都能掌握的快速软件开发工具!
共246 条记录, 每页显示 10 条, 页签: [1]... [8][9][10][11] [12] [13][14][15] ...[25]
[浏览完整版]

标题:[分享]锐浪报表Grid++Report在狐表的应用(合集)2023.12.23更新

111楼
y2287958 发表于:2021/6/30 14:07:00

 下载信息  [文件大小:   下载次数: ]
图片点击可在新窗口打开查看点击浏览该文件:demo.rar

请帮忙看看,谢谢!

112楼
linyunu 发表于:2021/6/30 14:26:00
忘了修改

    Private Sub CustomDesign_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load
        '通过设定设计器控件的属性,自定义外观与行为
        'AxGRDesigner1.OnlyLayout = True
        'AxGRDesigner1.ShowExplorer = False
        'AxGRDesigner1.ShowInspector = False
        AxGRDesigner1.Report = Report

        openFileDialog1.InitialDirectory = ProjectPath 
        If OpenReportFile IsNot Nothing Then
            Report.LoadFromFile(OpenReportFile)
            AxGRDesigner1.Reload()
        End If
    End Sub

 下载信息  [文件大小:   下载次数: ]
点击浏览该文件:demo.rar


[此贴子已经被作者于2021/6/30 14:29:45编辑过]
113楼
xuanxiao 发表于:2021/6/30 14:43:00
用户已屏蔽!
114楼
y2287958 发表于:2021/6/30 16:34:00
以下是引用linyunu在2021/6/30 14:26:00的发言:
忘了修改

    Private Sub CustomDesign_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load
        '通过设定设计器控件的属性,自定义外观与行为
        'AxGRDesigner1.OnlyLayout = True
        'AxGRDesigner1.ShowExplorer = False
        'AxGRDesigner1.ShowInspector = False
        AxGRDesigner1.Report = Report

        openFileDialog1.InitialDirectory = ProjectPath 
        If OpenReportFile IsNot Nothing Then
            Report.LoadFromFile(OpenReportFile)
            AxGRDesigner1.Reload()
        End If
    End Sub

 下载信息  [文件大小:65.7 KB  下载次数:2]
点击浏览该文件:demo.rar


[此贴子已经被作者于2021/6/30 14:29:45编辑过]

成了,谢谢!

115楼
linyunu 发表于:2021/7/1 0:17:00
另一种写法

去除
    Public Sub New(ByVal OpenReportFile As String)
        MyBase.New()
        InitializeComponent()
        Me.OpenReportFile = OpenReportFile
    End Sub


    Private OpenReportFile As String = Nothing   ' Private  改为 Public 


打开模版

Dim fm As CustomDesign = new CustomDesign()
fm.OpenReportFile = ProjectPath & "出库单.grf"      模版路径
fm.Show()
[此贴子已经被作者于2021/7/1 0:23:29编辑过]
116楼
y2287958 发表于:2021/7/1 9:27:00
以下是引用linyunu在2021/7/1 0:17:00的发言:
另一种写法

去除
    Public Sub New(ByVal OpenReportFile As String)
        MyBase.New()
        InitializeComponent()
        Me.OpenReportFile = OpenReportFile
    End Sub


    Private OpenReportFile As String = Nothing   ' Private  改为 Public 


打开模版

Dim fm As CustomDesign = new CustomDesign()
fm.OpenReportFile = ProjectPath & "出库单.grf"      模版路径
fm.Show()
[此贴子已经被作者于2021/7/1 0:23:29编辑过]

好的,好的。这样更容易理解,再次谢谢。图片点击可在新窗口打开查看

117楼
y2287958 发表于:2021/7/1 9:46:00
还有问题请教,上面做的是打开报表设计器同时打开一个报表模板。
现在想再进一步就是:在设计器已经打开的情况下,如何用代码打开另外一个模板?(当然这个可以用设计器的工具栏菜单按钮完成,但在狐表中使用并不直接)
[此贴子已经被作者于2021/7/1 9:45:48编辑过]
118楼
y2287958 发表于:2021/7/1 9:51:00
知道了,原文件全局代码中就有。
还是不行。如果我想已有按钮中使用,如何做?(现在是用动态生成按钮完成)
[此贴子已经被作者于2021/7/1 10:07:09编辑过]
119楼
fanllys668 发表于:2021/7/7 10:15:00
导出exce
120楼
蓝色理想 发表于:2021/7/7 14:26:00
厉害了,我的哥
共246 条记录, 每页显示 10 条, 页签: [1]... [8][9][10][11] [12] [13][14][15] ...[25]

Copyright © 2000 - 2018 foxtable.com Tel: 4000-810-820 粤ICP备11091905号

Powered By Dvbbs Version 8.3.0
Processed in .04688 s, 4 queries.