Invalid Object Format Name Error Crystal Report
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Crystal Reports error “Invalid object format name.” for field objects up vote 0 down vote favorite I'm making a dynamic report using Crystal Reports and .NET C#. The content of the report is not fully known until run-time. The report template only contains Formula Fields and a connection to the database table. At runtime I collect the wanted data collection, create a new reportDocument object and set the collection to the reports DataSource. Then I collect all field objects from the report template and loop through them, setting the data properties. This works fine as long as the properties is of type string, BUT when it is of type bool or double, it crashes with the following error: "Invalid object format name" How can I set the data type of the field object to numeric/bool at runtime? Here's some code: //Collecting data and setting data source for (int i = 0; i < ColNumber; i++) { //Fields var DbFieldName = mappingNames[i]; var fieldType = comparisonObj.GetFieldType(DbFieldName); var fieldName = "Field" + (i + 1); var ffld = report.DataDefinition.FormulaFields[fieldName]; if (ffld != null) { ffld.Text = "{" + aliasName + "." + DbFieldName + "}"; } var fobj = report.ReportDefinition.ReportObjects[fieldName] as FieldObject; if (fobj != null) { fobj.Left = CurrentLeft; fobj.Width = FieldSpace * widths[i] / 100; if (IsNumber(fieldType)) { fobj.ObjectFormat.HorizontalAlignment = Alignment.RightAlign; fobj.FieldFormat.NumericFormat.RoundingFormat = RoundingFormat.RoundToTen; } else if (IsBool(fieldT
and SafetyAsset NetworkAsset Operations and MaintenanceCommerceOverviewSubscription Billing and Revenue ManagementMaster Data Management for CommerceOmnichannel CommerceFinanceOverviewAccounting and Financial CloseCollaborative Finance OperationsEnterprise Risk and ComplianceFinancial Planning and AnalysisTreasury and Financial Risk ManagementHuman ResourcesOverviewCore Human Resources and PayrollHuman Capital AnalyticsTalent ManagementTime and Attendance ManagementManufacturingOverviewManufacturing NetworkManufacturing http://stackoverflow.com/questions/15109244/crystal-reports-error-invalid-object-format-name-for-field-objects OperationsResponsive ManufacturingMarketingOverviewMarket with Speed and AgilityUnique Customer ExperiencesReal-Time Customer InsightsR&D/EngineeringOverviewDesign NetworkDesign OrchestrationProject and Portfolio ManagementSalesOverviewCollaborative Quote to CashSales Force AutomationSales Performance ManagementSelling Through Contact CentersServiceOverviewEfficient Field Service ManagementOmnichannel Customer ServiceTransparent Service Process and OperationsSourcing and ProcurementOverviewContingent http://scn.sap.com/thread/1883355 Workforce ManagementDirect ProcurementSelf-Service ProcurementServices ProcurementStrategic Sourcing and Supplier ManagementSupply ChainOverviewDemand ManagementDemand NetworkLogistics NetworkManufacturing Planning and SchedulingResponse NetworkResponse and Supply ManagementSales, Inventory, and Operations PlanningTransportation ManagementWarehouse ManagementSustainabilityOverviewEnvironment, Health, and SafetyProduct Safety and Stewardship NetworkBrowse by IndustryAerospace and DefenseAutomotiveBankingChemicalsConsumer ProductsDefense and SecurityEngineering, Construction, and OperationsHealthcareHigh TechHigher Education and ResearchIndustrial Machinery and ComponentsInsuranceLife SciencesMediaMill ProductsMiningOil and GasProfessional ServicesPublic SectorRetailSports and EntertainmentTelecommunicationsTravel and TransportationUtilitiesWholesale DistributionBrowse Platform and TechnologyAnalyticsOverviewBusiness IntelligencePredictive AnalyticsGovernance, Risk, and ComplianceEnterprise Performance ManagementApplication Platform and InfrastructureOverviewApplication PlatformContent and CollaborationInterface ManagementProcess Management and IntegrationData ManagementOverviewBig Data on HadoopData WarehousingDatabase ManagementEnterprise Information ManagementIT ManagementOverviewApplication Lifecycle ManagementIT Infrastructure ManagementSecurity SoftwareOverviewApplication and IT Infrastructure SecurityIdentity, Access and Authentication ManagementBrowse by ProductAnalyticsContent and CollaborationCust
SQL Server 2014 Express resources Windows Server 2012 resources Programs MSDN subscriptions Overview Benefits Administrators https://social.msdn.microsoft.com/Forums/en-US/969cc3f8-ea5e-43a7-ae41-b18de0f8b481/invalid-object-format-name-error?forum=vscrystalreports Students Microsoft Imagine Microsoft Student Partners ISV Startups TechRewards Events Community Magazine Forums Blogs Channel 9 Documentation APIs and reference Dev http://www.vbforums.com/showthread.php?438291-Crystal-Report-gives-error-for-a-user-with-Chinese-culture centers Samples Retired content We’re sorry. The content you requested has been removed. You’ll be auto redirected in 1 second. Ask a invalid object question Quick access Forums home Browse forums users FAQ Search related threads Remove From My Forums Asked by: "Invalid object format name" Error Archived Forums C-D > Crystal Reports for Visual Studio (Retired) Question 0 Sign in to vote Hi there, I am invalid object format trying to upgrade a crystal application from VS.Net 2003 to VS.Net 2005. Some of the reports work just fine in the new enviroment. But one of the reports does give me a hard time. It is a little complicated, so please bare with me. The report uses a c# derived DataSet class as its Database Fields source. It also uses a DataTable as its data source. When I try to bind the report with the data source, for example, myReport.setDataSource(myDataTable);. It throws the following exception: CrystalDecisions.CrystalReports.Engine.InternalException was unhandled by user codeMessage="\rError in File C:\\WINDOWS\\TEMP\\temp_c2eb4661-c3c0-429a-9d9f-c0b280e112bc {645E2563-B9C6-4A6F-9714-618DF7CB1EE2}.rpt:\nInvalid object format name."Source="CrystalDecisions.ReportAppServer.DataSetConversion"StackTrace:at CrystalDecisions.ReportAppServer.ConvertDotNetToErom.ThrowDotNetException(Exception e)at CrystalDecisions.CrystalReports.Engine.ReportDocument.SetDataSourceInternal(Object val, Type type)at CrystalDecisions.CrystalReports.Engine.ReportDocument.SetDataSource(DataTable dataTable)at NL2.Web.GlRptFsWModule.getReport(Boolean sendToPrinter, exportTo eExport) in c:\Inetpub\wwwroot\NL2\Web\reports\GlRptFsWModule.ascx.cs:line 900at NL2.Web.GlRptFsWModule.cViewButton_Click(Object sender, EventArgs e) in c:\Inetpub\wwwroot\NL2\Web\reports\GlRptFsWModule.ascx.cs:line 1246at System.Web.UI.WebControls.LinkButton.OnClick(EventArgs e)at System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument)at System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)at System.Web
culture If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. Results 1 to 1 of 1 Thread: Crystal Report gives error for a user with Chinese culture Tweet Thread Tools Show Printable Version Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode Nov 16th, 2006,03:42 AM #1 nkarovaliya View Profile View Forum Posts Thread Starter New Member Join Date Nov 2006 Posts 2 Crystal Report gives error for a user with Chinese culture I am working on localization of crystal reports. When I log in with a Chinese culture user and run a report, I get the following error message. Error in File C:\WINDOWS\TEMP\Requirements Report {FB1427EE-FBBD-489F-B78B-671ED86FB4ED}.rpt: Invalid object format name. Can anyone please help me resolve this issue? thanks, Naushad Reply With Quote Quick Navigation Reporting Top Site Areas Settings Private Messages Subscriptions Who's Online Search Forums Forums Home Forums Visual Basic Visual Basic .NET VB.net CodeBank Visual Basic 6 and Earlier CodeBank - Visual Basic 6 and earlier Modern Windows Experience (Metro) Office Development Mobile Development ASP, VB Script Database Development Reporting API Games and Graphics Programming Game Demos COM and ActiveX Network Programming Visual Basic FAQs Slow Chat with the Microsoft Visual Basic team .NET ASP.NET Visual Basic .NET MVC .Net C# WPF, WCF, WF Silverlight .NET Architecture and Design General General Developer Forum IoT, IoE, and Maker Forum Testers and Testing Application Testing Application Deployment Linux Development General PC VBForums Coding Contests Contest Entries Code It Better Maths Forum Other Languages Other BASIC C and C++ Java PHP XML, HTML, Javascript, Web and CSS jQuery Assembly Other Programming Languages VBForums CodeBank CodeBank - Visual Basic .NET CodeBank - Visual Basic 6 and earlier CodeBank - ASP / ASP.NET / MVC / Web API CodeBank - C# CodeBank - C++ CodeBank - Java / J# CodeBank - PHP Codebank - Game Programming Codebank - Mobile Development CodeBank - JavaScript Codebank - Cascading Style Sheets (CSS) CodeBank - Other VBForums UtilityBank U