PC Review


Reply
Thread Tools Rate Thread

Create reports at runtime?

 
 
Byron
Guest
Posts: n/a
 
      18th Mar 2008
I'd like to create a report completely at runtime, adding fields, grids and
the like through code. I've got reports that are very dynamic - a variable
number of tables, columns, etc - and want the control that doing it in code
would give. Similar to creating HTML with tables, rows and columns and
assigned values to them as in HTML though code. Is something like that
possible in VS2008?
 
Reply With Quote
 
 
 
 
Brendan G
Guest
Posts: n/a
 
      18th Mar 2008
Crystal Reports?

Or, some other reporting software?

I'd recommend against trying to roll your own.

"Byron" <(E-Mail Removed)> wrote in message
news:83F68F47-68C9-4350-AFB4-(E-Mail Removed)...
> I'd like to create a report completely at runtime, adding fields, grids
> and
> the like through code. I've got reports that are very dynamic - a
> variable
> number of tables, columns, etc - and want the control that doing it in
> code
> would give. Similar to creating HTML with tables, rows and columns and
> assigned values to them as in HTML though code. Is something like that
> possible in VS2008?



 
Reply With Quote
 
Cor Ligthert[MVP]
Guest
Posts: n/a
 
      18th Mar 2008
Byron,

How do you think that it was be done when there were no tools as Crystal
Report, writing the reports by hand?

Cor

 
Reply With Quote
 
jp2msft
Guest
Posts: n/a
 
      18th Mar 2008
Another option is to use Visual Studio's ReportViewer control. I know it is
in VS2005, but you should look to see if it is in VS2008.

To access ReportViewer in VS2005, start in your Form Designer view. In the
Toolbox sidebar, scroll down to the Device Data section and you should find
it there along with BindingSource, DataGridView, and the like.

Hope that helps.

"Byron" wrote:

> I'd like to create a report completely at runtime, adding fields, grids and
> the like through code. I've got reports that are very dynamic - a variable
> number of tables, columns, etc - and want the control that doing it in code
> would give. Similar to creating HTML with tables, rows and columns and
> assigned values to them as in HTML though code. Is something like that
> possible in VS2008?

 
Reply With Quote
 
Byron
Guest
Posts: n/a
 
      18th Mar 2008
I'm trying to leverage existing controls for formatting, saving, exporting,
etc. If I could write directly to a reportviewer with tables, columns,
formatting, save as..., etc. that would suit me fine. For all but simple and
consistent reports it just seems easier to go old-school than try and cope
with the permutations of datsources, sub-reports, etc.

It's just not apparent to me that what I want is possible with the VS 2008
reporting paradigm, though since I'm new with it it's entirely possible I'm
missing something obvious. There doesn't seem to be a whole lot of
information available on reporting yet.



"Cor Ligthert[MVP]" wrote:

> Byron,
>
> How do you think that it was be done when there were no tools as Crystal
> Report, writing the reports by hand?
>
> Cor
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
reports tab will not allow me to access files to create reports =?Utf-8?B?TGluZGE=?= Microsoft Access Reports 1 8th Aug 2006 04:18 PM
Crystal Reports newbie question: binding single .NET WinForm to different reports files at runtime? Michael Microsoft Dot NET 0 23rd Apr 2004 07:56 PM
Crystal Reports newbie question: binding single .NET WinForm to different reports files at runtime? Michael Microsoft Dot NET Framework Forms 0 23rd Apr 2004 07:45 PM
Customizing reports during runtime using Crystal Reports Designer? Eric Cherng Microsoft Dot NET Framework Forms 0 7th Apr 2004 07:44 PM
Read Bitmap and create Method to Create Image at runtime Mark Johnson Microsoft Dot NET Framework 1 28th Nov 2003 08:26 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:37 AM.