cancel
Showing results for 
Search instead for 
Did you mean: 

About refreshment of a subreport of Crystal Reports for VS2010

Former Member
0 Kudos

contributes for the first time.

I am sorry for poor English.

Currently, u201CCrystal Reports for Visual Studio 2010u2033

with a Sub-Report in Create forms (more precisely, the old version 2003

of the application that was created in Updated to match the corresponding support environment Windows7)

I have Is not cause compilation errors,

when running Follow the steps below when you Refresh Sub-report u201Cis not supported in the sub-Reportu201D

of Errors in our state.

In Crystal Reports 2011 and Crystal Reports for VS2010 Why do not correspond to the Sub-Report?

Who know how to respond better to this condition I would appreciate your teaching.

Environmental

Windows 7 Professional SP1 (version 32bit)

SQL Server 2008

Crystal Reports for VS2010

Crystal Reports 2011

Visual Studio 2010 Professional SP1

Languages: VB

Other: GrapeCity PowerTools FlexGrid for Windows Forms 5.0J

Logic error

Dim mcrySub1 As New ReportDocument

·

·

Processes such as SQL parameter settings

·

·

mcrySub1 = mcryMain.OpenSubreport (strReportNM_Sub1)

mcrySub1.Refresh () << hear is error in this part.

mcrySub1.SetDataSource (lDtSub1)

And the following error.

u201CSystem.NotSupportedException: in the sub-Reports are not supported.

Location CrystalDecisions.CrystalReports.Engine.ReportDocument.Refresh ()

Location Riekibunseki.frmMain.MakeReport_Tantosya ()

Where 😧 Source XXXXXX frmMain.vb Development ○ ○: 1383 line u201D

Accepted Solutions (1)

Accepted Solutions (1)

former_member183750
Active Contributor
0 Kudos



mcrySub1 = mcryMain.OpenSubreport (strReportNM_Sub1) 
mcrySub1.Refresh () << hear is error in this part. 
mcrySub1.SetDataSource (lDtSub1)

Do not use refresh. Just pass in the dataset:



mcrySub1 = mcryMain.OpenSubreport (strReportNM_Sub1) 
mcrySub1.SetDataSource (lDtSub1)

Ludek

Follow us on Twitter http://twitter.com/SAPCRNetSup

Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

Former Member
0 Kudos

I'm sorry

Although shown logic was performed, the next error occurs.

A message dialog field name is not found.

Details: errorkind

File: reportfilename

Error of {7F238D0A-7A98-465 F-B983-8697FAF94DD7}.rpt:

Formula: Gross income sum total "

if {# sale-proceeds sum total} =0 then 0

However, the field currently displayed by the message

is correctly defined, when it opens by the designer

of the crystal report 2011.

A problem was not solved although the formula was redefined

in the formula field of field Explorer.

Moreover, when it opens by a designer's preview,

it is displayed without a problem.

former_member183750
Active Contributor
0 Kudos

Enable the option "Verify on First Refresh". See if that helps.

- Ludek

Answers (0)