Daily Archives: February 3, 2004

Crystal Reports Workaround

There is a barely documented problem with Crystal Reports for .NET that occurs if you try to pass a dataview as a datasource to a report. The report has been built via a project dataset (XSD).

Here is the tech support entry. It has a tracking id of “CR ADAPT00117088”. I probably don’t have the latest patch but there is no reference anywhere else to this track id.

The work around is just to pull the dataview data into a new datatable. Crystal doesn’t give a sample so here is one for anyone who may be looking.

First here is the long way around if you need a table to move into a dataset.

Dim tbl As DataTable = myDataView.Table.Clone
Dim iRow As Int32
For iRow = 0 To dv.Count – 1
   
tbl.ImportRow(dv.Item(iRow).Row)
Next
mycrystalreport.SetDataSource(tbl)  ‘this assumes you only have one table for your datasource

(I need to make a confession – I have been so stung by the problem of trying to move a table from one dataset into another that I didn’t stop and think that I was sending a datatable not a dataset, so I did this the long way around. Thanks to Mike below for pointing out my silliness…see his comment for the easy way.)

Conference evals from PASS

Interesting post from 2003 PASS track chair, Roman Rehak, on the evals from the conference. Besides been a .NET developer, Roman is an absolute whiz with SQL Server and has been doing a lot of talks for developers on what they should really know about working with SQL Server. Keep an eye on his weblog for some great pointers and insights – and occasional recipes. He happens to be an awesome cook – I have been fortunate to partake in some of his wonderful meals.

Steve Smith’s International Border Tour presentations!

Steve Smith, Mr. ASPAlliance etc is coming to speak to the Vermont.NET User Group on Monday night, Feb 9th and then he is on to Montreal for the GUVSM.NET User Group on Tuesday night. His Tuesday night talk in Montreal is an INETA sponsored event. Monday is a Julie & Rich’s Bed & Breakfast sponsored event. Steve is coming (sans Michelle boo hoo) on Saturday and we are going to have some Vermont fun with him. I have decided not to make him ski since I don’t want to be blamed for broken bones. We will take Steve snowshoeing in the Green Mountains as we have done with Chris Kinsman and Stephen Forte before. Steve is going to do a presentaion on Caching in ASP.NET and Whidbey. I (and many) are really looking forward to this.

“going to redmond” blog announcements

Don’t you always wonder what mysterious things are going on when suddenly a rash of (or even just a few) bloggers announce that they are going to “campus”. Oooh aaah. I remember last year James Avery talked about it a lot. I’m starting to see it pop up again. But you never hear WHY anyone goes. Everything is shrouded in mystery. Rory was the only one who said “I’m going because it’s fun and my birthday”. There is definitily a big event coming up in April which is the MVP global summit. So you will hear a lot of people talking about that.

Goodbye Beautiful Silky

Blue Heaven’s Ch. Silk Stocking

Silky at 3 months in 1994.

Silky the Champion at 2 years

Silky at 5 years

Silky is my parent’s dog. I have always loved him madly – he’s a hollywood hunk and a big love. But he’s 10. 10 for Newfs is generall pretty old. He’s feeling pretty badly now and they are putting him down today. He’ll feel so much better after that and will always stick around. Especially to be with his best best friend in the world, Daisy. This is always outrageously heartbreaking. Here are more of Silky’s family and progeny.