<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-31012777</id><updated>2011-04-21T15:22:12.125-07:00</updated><title type='text'>Stony Solutions</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://stonysolutions.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/31012777/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://stonysolutions.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Eze Stephen Onyedi</name><uri>http://www.blogger.com/profile/13103426355433356546</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://www.geocities.com/stonypeterz/Images/MyPic.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>2</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-31012777.post-115279143935963886</id><published>2006-07-13T03:39:00.000-07:00</published><updated>2006-07-13T04:50:39.366-07:00</updated><title type='text'>Dynamic Crystal Reports</title><content type='html'>This is something I experienced a long time ago but had to post it here for people that need it.&lt;br /&gt;&lt;br /&gt;Working with the datareport in VB 6.0 was fun. Most of my coleagues would connect their reports to the dataenvironment before they could display records in the datareport. I had a way of doing it without a dataenvironment and I would be able to display a subset of records in a given table. That I enjoyed alot.&lt;br /&gt;&lt;br /&gt;While moving to VB.Net, I discovered that the datareport was no more there. We have crystal report in place of that. I tried applying my tricks but it did not work. Then I discovered this:&lt;br /&gt;&lt;br /&gt;I'll create a command (say cmdReport) with select statement (Select ... From myTable where ...)and a reportviewer (Say RView) at design time. I create a report file (myReportFile) that's linked to a dataset table (myDataset.myReportTable).&lt;br /&gt;&lt;br /&gt;and finally do the following in my coding environment.&lt;br /&gt;&lt;br /&gt;    Public DRp As New myReportFile()&lt;br /&gt;    Public DA As OleDbDataAdapter&lt;br /&gt;&lt;br /&gt;    Private Sub btnGet_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnGet.Click&lt;br /&gt;        Try&lt;br /&gt;            cmdReport.Parameters(0).Value = dtFrom.Value.Date&lt;br /&gt;            DA = New OleDbDataAdapter(cmdReport)&lt;br /&gt;            myDataset.myReportTable.Clear()&lt;br /&gt;            Conn.Open()&lt;br /&gt;            DA.Fill(myDataset.myReportTable)&lt;br /&gt;            Conn.Close()&lt;br /&gt;            If myDataset.myReportTable.Rows.Count &gt; 0 Then&lt;br /&gt;                DRp.SetDataSource(myDataset.myReportTable)&lt;br /&gt;                DRp.Refresh()&lt;br /&gt;                RView.ReportSource = DRp&lt;br /&gt;            Else&lt;br /&gt;                RView.ReportSource = Nothing&lt;br /&gt;                MsgBox("No Record found!", MsgBoxStyle.Information, "Searching...")&lt;br /&gt;            End If&lt;br /&gt;        Catch ex As Exception&lt;br /&gt;            MsgBox(ex.Message)&lt;br /&gt;        Finally&lt;br /&gt;  Conn.Close&lt;br /&gt;        End Try&lt;br /&gt;    End Sub&lt;br /&gt;&lt;br /&gt;Walah! It bring back the joy I felt with VB 6 and datareport.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31012777-115279143935963886?l=stonysolutions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stonysolutions.blogspot.com/feeds/115279143935963886/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=31012777&amp;postID=115279143935963886' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/31012777/posts/default/115279143935963886'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/31012777/posts/default/115279143935963886'/><link rel='alternate' type='text/html' href='http://stonysolutions.blogspot.com/2006/07/dynamic-crystal-reports.html' title='Dynamic Crystal Reports'/><author><name>Eze Stephen Onyedi</name><uri>http://www.blogger.com/profile/13103426355433356546</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://www.geocities.com/stonypeterz/Images/MyPic.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-31012777.post-115269869163205066</id><published>2006-07-12T02:55:00.000-07:00</published><updated>2006-07-12T03:04:51.640-07:00</updated><title type='text'>Taking my place</title><content type='html'>Well, for some time now, I have been reading other people's blog (experience in programming). I have just decided that it's nice I start posting mine too for others to read.&lt;br /&gt;&lt;br /&gt;Expect a whole load of them soon.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31012777-115269869163205066?l=stonysolutions.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stonysolutions.blogspot.com/feeds/115269869163205066/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=31012777&amp;postID=115269869163205066' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/31012777/posts/default/115269869163205066'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/31012777/posts/default/115269869163205066'/><link rel='alternate' type='text/html' href='http://stonysolutions.blogspot.com/2006/07/taking-my-place.html' title='Taking my place'/><author><name>Eze Stephen Onyedi</name><uri>http://www.blogger.com/profile/13103426355433356546</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://www.geocities.com/stonypeterz/Images/MyPic.jpg'/></author><thr:total>0</thr:total></entry></feed>
