|  | 
| Report Control displays blank lines.... | 
| Post Reply   | 
| Author | |
| ddlittle   Senior Member   Joined: 19 February 2004 Location: United States Status: Offline Points: 132 |  Post Options  Thanks(0)  Quote  Reply  Topic: Report Control displays blank lines.... Posted: 18 September 2009 at 7:34pm | 
| 
   Not sure why.  It adds the rows, but nothing in them...
 I tried to set the font to bold and strikethrough, but no luck.  the reportsample for C# works perfectly, and I can't see any differences that would matter. Any ideas? Here's the code: axReportControl1.Columns.Add(1000, "First", 200, true); axReportControl1.Columns.Add(1001, "Last", 300, true); ReportRecord rec2; ReportRecordItem item2; stdole.StdFont fntStrike; rec2 = new ReportRecord(); rec2.AddItem("Santa"); rec2.AddItem("Claus"); axReportControl1.AddRecordEx(rec2); fntStrike = axReportControl1.PaintManager.TextFont; fntStrike.Strikethrough = true; fntStrike.Bold = true; axReportControl1.Populate();Thanks! - David | |
|  | |
| jpbro   Senior Member     Joined: 12 January 2007 Status: Offline Points: 1357 |  Post Options  Thanks(0)  Quote  Reply  Posted: 18 September 2009 at 8:14pm | 
| 
   The ItemIndex parameter of the .Columns.Add method must be a sequential number starting from 0. Why we need to provide a sequential number starting from zero is anybodies guess, but that's just the way it is. I recommend doing something like: 
 And it should work. | |
| 
     Product: Xtreme SuitePro (ActiveX) version 16.2.6 Platform: Windows XP - SP3 Language: Visual Basic 6.0 SP6 | |
|  | |
| Post Reply   | |
| Tweet | 
| Forum Jump | Forum Permissions  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 |