[VB.NET]FastReport3,VS.net上使用,如何把修改好的格式存回数库里???

本文介绍了如何在Visual Studio .NET环境中使用FastReport3组件从数据库读取报表格式,并进行了相应的修改。文中提供了具体的代码示例,展示了如何将修改后的报表格式重新保存回数据库。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

VB.NET源码-156个实用实例哦…… <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>
FastReport3,VS.net上使用,如何把修改好的格式存回数库里???
从数据库里读取FR格式进行修改,但修改后不知道如何保存到数据库里,请指点指点

Dim SqlConnection1 As New SqlClient.SqlConnection()
Dim SqlCommand1 As New SqlClient.SqlCommand()
Dim SqlDataReader1 As SqlDataReader

Dim FastReport1 As New TfrxReportClass
Dim bytData1 As Byte() = Nothing


SqlConnection1.ConnectionString = strModConnectionSQLString
SqlCommand1.Connection = SqlConnection1
SqlConnection1.Open()

SqlCommand1.CommandText = "SELECT * FROM Table1 Where AutoCode=1 "
SqlDataReader1 = SqlCommand1.ExecuteReader
Do While SqlDataReader1.Read
bytData1 = SqlDataReader1.GetValue(SqlDataReader1.GetOrdinal( "FRImage "))
Loop

SqlDataReader1.Close()

Dim FileStream1 As New System.IO.MemoryStream

FileStream1.Write(bytData1, 0, bytData1.Length)

FastReport1.LoadReportFromStream(FileStream1)
FastReport1.DesignReport()
__________________________________________________________________________
FastReport1 不知道是什么东西,
保存数据库我知道是使用 SqlCommand。
SqlCommand1.CommandText = "Update 或者 Insert语句 "
SqlCommand1.ExecuteNonQuery
__________________________________________________________________________
自己顶一下
__________________________________________________________________________
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值