in

C1 Community

ComponentOne Community is a free source for developers and help authors to collaborate and communicate.

Binding a business object as a C1Report datasource? Help!

Last post 05-06-2008 1:43 PM by kwklingensmith. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 05-06-2008 1:43 PM

    Binding a business object as a C1Report datasource? Help!

    I am trying to create a c1Report based on a business object.

    I have tried the following:

    dim open_timesheets as list(of Open_Timesheets) = Open_TimesheetsDB.GetList    'populates a list of timesheets

    dim rs as IC1ReportRecordset = ctype(open_timesheets,IC1ReportRecordset)

    c1report1.datasource.recordset = rs

    I receive the following error at the dim statement:

    Unable to cast object of type system.collections.generic.list 'ST_Classes.Open_Timesheets' to type 'C1.Win.C1Report.UCreportRecordset'

    How can I base my report on a dataobject like this? I have tried everything I could think of to make this work... Examples would be fantastic! Thanks in advance! Ken

Page 1 of 1 (1 items)
Contact ComponentOne: 1.800.858.2739 ©1987-2008 ComponentOne LLC All Rights Reserved.