Discussion Locked

Two Column Chart

0 helpful
6 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi,
I am using Report Designer in VB6 to generate Report.
can any one tel me how to generate two column chart in that?

Thanks

6 replies

by mohammad_m_saggaf

hi,
Actualy you can't put charts in the report designer. You just can retrieve data from the database or make some calculations on the fields.
I hope I Helped.

by sona

Thanks for the reply.
But can we retrieve data from the database in two column?
Thanks

by rrv

Use MS Chart Control in VB6. Check MSDN for sample code to bring data in recordset and show in chart. The code will be

sql="select xColumn, Column1, Column2 from file"
RS.open sql,Connection, adOpenForwardOnly, adLockReadOnly, adFldIsNullable
set MSChart1.Datasource=rs

All the best

This discussion is closed to new replies.