Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - Report Control displays blank lines....
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Report Control displays blank lines....

 Post Reply Post Reply
Author
Message
ddlittle View Drop Down
Senior Member
Senior Member


Joined: 19 February 2004
Location: United States
Status: Offline
Points: 132
Post Options Post Options   Thanks (0) Thanks(0)   Quote ddlittle Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
jpbro View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 January 2007
Status: Offline
Points: 1355
Post Options Post Options   Thanks (0) Thanks(0)   Quote jpbro Quote  Post ReplyReply Direct Link To This Post 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:


axReportControl1.Columns.Add(axReportControl1.Columns.Count, "First", 200, True);
axReportControl1.Columns.Add(axReportControl1.Columns.Count, "Last", 300, True);


And it should work.
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3

Language: Visual Basic 6.0 SP6

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.156 seconds.