Writing Code
 Crystal Reports Forum : Crystal Reports for Visual Studio 2005 and Newer : Writing Code
Message Icon Topic: help me!! Error Subreport Post Reply Post New Topic
Author Message
vuquangbg
Newbie
Newbie
Avatar

Joined: 16 Dec 2008
Location: Vietnam
Online Status: Offline
Posts: 2
Quote vuquangbg Replybullet Topic: help me!! Error Subreport
    Posted: 16 Dec 2008 at 7:01pm
Dim table As CrystalDecisions.CrystalReports.Engine.Table
                    Dim tableInfo As CrystalDecisions.Shared.TableLogOnInfo
                    reportDocument1.OpenSubreport("Crt_Baocao1sub")
                    For Each table In reportDocument1.Subreports("Crt_Baocao1sub").Database.Tables
                        tableInfo = table.LogOnInfo
                        With tableInfo.ConnectionInfo
                            .ServerName = Local_SVR
                            .DatabaseName = Local_DB
                            .UserID = Local_UID
                            .Password = Local_PWD
                        End With
                        table.ApplyLogOnInfo(tableInfo)
                        table.Location = Local_DB & ".dbo." & table.Name
                    Next
                    reportDocument1.Subreports("Crt_Baocao1sub").SetParameterValue("@Flatsub", 0)
                    reportDocument1.Subreports("Crt_Baocao1sub").SetParameterValue("@Province_ID", "35")

---> error : System.NotSupportedException - Not supported within subreports.

thanks for Reply
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.047 seconds.