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

来源:互联网 发布:淘宝蓝钻cdk渠道揭秘 编辑:程序博客网 时间:2024/05/22 03:22
VB.NET源码-156个实用实例哦……<script type="text/javascript"><!--google_ad_client = "pub-8333940862668978";/* 728x90, 创建于 08-11-30 */google_ad_slot = "4485230109";google_ad_width = 728;google_ad_height = 90;//--></script><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
__________________________________________________________________________
自己顶一下
__________________________________________________________________________
原创粉丝点击