加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 大数据 > 正文

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

发布时间:2020-12-16 23:47:26 所属栏目:大数据 来源:网络整理
导读:FastReport3,VS.net上使用,如何把修改好的格式存回数库里??? 从数据库里读取FR格式进行修改,但修改后不知道如何保存到数据库里,请指点指点 Dim SqlConnection1 As New SqlClient.SqlConnection() Dim SqlCommand1 As New SqlClient.SqlCommand() Dim SqlDa
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,bytData1.Length) FastReport1.LoadReportFromStream(FileStream1) FastReport1.DesignReport() __________________________________________________________________________ FastReport1 不知道是什么东西, 保存数据库我知道是使用 SqlCommand。 SqlCommand1.CommandText = "Update 或者 Insert语句 " SqlCommand1.ExecuteNonQuery __________________________________________________________________________ 自己顶一下 __________________________________________________________________________

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读