C# .NET - Getting error "Invalid object format name" in crystal report.
Asked By binta prasad on 01-Jun-12 02:00 AM

I'm writing a function to change the font color of the data in crystal report.When i'm trying to load crystal report its showing error "Invalid object format name". I don't know what to do? Pls help me.
Code for setting the color dynamically
private void ReportColorSettings(ReportDocument report)
{
try
{
DAL.Institute objInstitute = new DAL.Institute();
DataTable objDataTable = objInstitute.GetReportColor();
System.Drawing.ColorConverter objConverter = new System.Drawing.ColorConverter();
section = (Sections)report.ReportDefinition.Sections;
for (int i = 0; i < section.Count; i++)
{
foreach (ReportObject r in section[i].ReportObjects)
{
//ObjectFormat oformat;
FieldFormat fformat;
if (r.Kind.ToString() == "FieldObject")
{
FieldObject f = (FieldObject)r;
//fformat = f.FieldFormat;
f.Color = (System.Drawing.Color)objConverter.ConvertFromString("#" + objDataTable.Rows[0]
[i].ToString());
}
if (r.Kind.ToString() == "TextObject")
{
TextObject t = (TextObject)r;
t.Color = (System.Drawing.Color)objConverter.ConvertFromString("#" + objDataTable.Rows[0][i].ToString()); ;
}
}
}
}
catch (Exception ex)
{
}
}

inputs to crystal report C++ / VB
Can a crystal report can file that was take a orginal crystal report file as input into another crystal report? I then want the crystal report 11 to convert this file to word 2003, excel
he i wnna know how to show Crystal report without help of crystal report viewer ? I think its not possible to show Crystal report without help of crystal report viewer ok is it not possible to give a aplication
How can I use Strongly Typed report to load a crystal report into crystal report viwer http: / / support.businessobjects.com / library / kbase / articles / c2010371.asp keywords: VB.NET, Strongly Typed
hi, using vb6 + crystal report + oracle how to open crystal report using crystal report viewer First Open Components from the Projects Menu of VB6 Then select the Controls Tab
Which vesrion of Crystal Report supports Editable Rich Text Format. I think as per my best knowldge Crystal Report version XI (11) will supoort Editable Rich text format keywords: Visual Studio 2008, Version Crystal Report Version, Crystal Report, report, Format, rich text format description: Crystal Report Which vesrion of Crystal
Hi what is the code for printing page in Crystal report in ASP.Net 2.0 Anushree http: / / support.businessobjects.com / communityCS / TechnicalPapers / crnet_web_app_printing.pdf.asp keywords: C Printing page in crystal report report, Crystal report, Printing web description: Printing page in crystal report Hi what is the code for
Hi, I have problem to show Crystal Report. I have created Crystal Report Viewer and crystal Report and connection to database, Just I don't know how to load crystal Report from
any one help for trial key code for crystal report 2008. . . . . . . . . . . . . . . . . . . . . . . . keywords: Search Server 2008, Oracle, Oracle Database, report, crystal report description: crystal report any one help for trial key code for crystal report 2008. . . . . . . . . . . . . . . . . . . . . . . . 28-Oct-12
I'm trying to build a Crystal Report. I have defined a dataset, created a Crystal Report (MyCrystalReport.rpt) page and a page with a CrystalReportViewer. I'm trying to push data book tells me that strongly-typed reports are referenced by passing an instance of the report class to the ReportSource Property of the viewer, as so: CrystalReportViewer1.ReportSource = New Employee_List (where