In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article to introduce how to achieve dynamic ASP.NET Crystal Report disguised, very detailed content, interested in small partners can refer to reference, hope to be helpful to everyone.
Beginners tend to think of ASP.NET Crystal Reports as datagrid, giving it a data source and it will show up. It's not true. However, this dynamic ASP.NET crystal report is not impossible to achieve, but to achieve disguised form, absolute words have to ask the crystal developers.
Roughly talk about how to achieve dynamic ASP.NET crystal reports, the principle is that specific requirements need to call their own.
The main steps to achieve dynamic ASP.NET Crystal Reports:
1. Insert FormulaFields,text object in ASP.NET Crystal Report
2. in the program
Dim dry As New CrystalReport1 'ASP.NET CrystalReport Class Name CrystalReport1 in Project
'Text 1
dry.ReportDefinition.ReportObjects.Item("text1").Left = 12 'Typography
dry.ReportDefinition.ReportObjects.Item("text1").ObjectFormat.EnableCanGrow = True
Dim GetTextObject1 As CrystalDecisions.CrystalReports.Engine.TextObject
GetTextObject1 = dry.ReportDefinition.ReportObjects.Item("text1")
GetTextObject1.Text = "love you.......... " 'Pay value
'Field 1
dry.ReportDefinition.ReportObjects.Item("t1").Left = 12 'Typography
dry.DataDefinition.FormulaFields("t1").Text = "{codes.type_id}" 'Pay value, table name. field
3. basically completed
Realize dynamic ASP.NET crystal report reference knowledge:
1. Retrieves the DataDefinition object through the DataDefinition attribute of the ReportDocument object.
ReportDocument Member
Common Instance Properties
DataDefinition DataDefinition。Gets the DataDefinition object.
2. DataDefinition class
DataDefinition member CrystalDecisions.CrystalReports.Engine namespace
requirements
Namespace: CrystalDecisions.CrystalReports.Engine
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP
Assembly: CrystalDecisions.Crystalreports.Engine (in CrystalDecisions. Crystalreports. Engine.dll)
Contains all information about data operations based on data sources in the report.
For a list of all members of this type, see DataDefinition Members.
Object
DataDefinition
remarks
You can use this class to define how records are selected for reports and groups, and to retrieve collections of groups and various field definitions.
Retrieves the DataDefinition object through the DataDefinition property of the ReportDocument object.
3. Retrieves FormulaFields objects through the FormulaFieldDefinitions property of DataDefinition objects.
DataDefinition Members
DataDefinition class CrystalDecisions.CrystalReports.Engine namespace
Common Instance Properties
FormulaFields FormulaFieldDefinitions。Gets the FormulaFieldDefinitions collection.
4. FormulaFieldDefinitions
FormulaFieldDefinitions member CrystalDecisions.CrystalReports.Engine namespace
requirements
Namespace: CrystalDecisions.CrystalReports.Engine
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP
Assembly: CrystalDecisions.Crystalreports.Engine (in CrystalDecisions. Crystalreports. Engine.dll)
FormulaFieldDefinition objects that contain each formula field in the report.
For a list of all members of this type, see FormulaFieldDefinitions Members.
Object
SCRCollection
FormulaFieldFieldDefinitions
remarks
Retrieves the FormulaFieldDefinitions collection through the FormulaFields property of the DataDefinition object.
5. Get FormulaFieldDefinition object and set formula.
For example: FormulaFieldDefinition.Text = "{Customer. Customer ID}"
FormulaFieldDefinition member
FormulaFieldDefinition class CrystalDecisions.CrystalReports.Engine namespace
Common Instance Properties
FormulaName (inherited from FieldDefinition) string. Gets the field definition *** formula name in Crystal Report formula syntax.
Kind (inherited from FieldDefinition) FieldKind. Gets the type of the field.
Name string. Gets the formula field name displayed in Field Explorer.
NumberOfBytes (inherited from FieldDefinition) Int32. Gets the number of bytes required to store field data in memory.
Text String. Gets or sets the text of the formula.
UseCount (inherited from FieldDefinition) Int32. Gets the number of times a field is used in a report.
ValueType (inherited from FieldDefinition) FieldValueType. Gets the type of the field value.
Common Instance Method
Check the formula. If there is a syntax error, the error string and false are returned.
About how to achieve dynamic ASP.NET Crystal Report disguised to share here, I hope the above content can be of some help to everyone, you can learn more knowledge. If you think the article is good, you can share it so that more people can see it.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un