Populating a adataset from llblgen

Posts   
 
    
Anthony
User
Posts: 155
Joined: 04-Oct-2006
# Posted on: 02-Jun-2008 04:26:12   

Is it possible to populate a dataset(of a view vwInvoices) using llblgen?

I was hoping i could populate a dataset using a TypedView of the same view?

ie I have created a typed view called vwInvoicesTypedView which i want ot use to populate a dataset. I need to do this becasue the crystal report can use the dataset and not the llblgentypedview.

Using llblgen 2.5,dotnet2,windorms

Walaa avatar
Walaa
Support Team
Posts: 14983
Joined: 21-Aug-2005
# Posted on: 02-Jun-2008 10:05:23   

A TypedView is a DataTable, so all you need to do is add it to the DataSet.

Anthony
User
Posts: 155
Joined: 04-Oct-2006
# Posted on: 02-Jun-2008 13:18:45   

that did it..thanks

    Dim dsInvoices As New DataSetInvoices

    'Load the standalone report
    ' mrptDoc.Load("invoice.rpt", CrystalDecisions.Shared.OpenReportMethod.OpenReportByDefault)
    'Pass the dataset to the report
    dsInvoices.Tables.Clear()
    dsInvoices.Tables.Add(VwInvoicesTypedView)