473,839 Members | 1,526 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Information required for runtime report designer

Hi

I am attempting to upgrade an MSAccess VBA application to .NET.

In the original I was able to offer the user a dynamic, user-defined report
designer by adding user-selected fields to an Access report form and then
allowing the user to size and position the fields as required.

In attempting to do the same in .NET I need either a reasonably priced third
party report designer with a runtime licence or to be able to create a
user-defined report in MSAccess.

I am having problems with the latter option.

Access.Applicat ion.CreateRepor tControl function returns an abstract
Access._Control object, this is fine as I can cast to whatever control is
needed. But I need to be able to create a variable number of controls at
runtime

for(int i=0; i < SelectedFieldNu mber; i++)
{
Access._Control ctrl =
application.Cre ateReportContro l(application.C urentDataBase,
report.Name,... );
}

this obviously reports that ctrl has already been declared

Am I missing something obvious?

Please, any assistance would be greatly appreciated.

Dave
Nov 16 '05 #1
1 2583
Sorry for the post...as soon as I hit the Send button the answer was obvious

USE AN ARRAY YOU DUMMY!!!!

Ruefull smile

Dave
"dave mann" <da*******@blue yonder.co.uk> wrote in message
news:uP******** ******@tk2msftn gp13.phx.gbl...
Hi

I am attempting to upgrade an MSAccess VBA application to .NET.

In the original I was able to offer the user a dynamic, user-defined report designer by adding user-selected fields to an Access report form and then
allowing the user to size and position the fields as required.

In attempting to do the same in .NET I need either a reasonably priced third party report designer with a runtime licence or to be able to create a
user-defined report in MSAccess.

I am having problems with the latter option.

Access.Applicat ion.CreateRepor tControl function returns an abstract
Access._Control object, this is fine as I can cast to whatever control is
needed. But I need to be able to create a variable number of controls at
runtime

for(int i=0; i < SelectedFieldNu mber; i++)
{
Access._Control ctrl =
application.Cre ateReportContro l(application.C urentDataBase,
report.Name,... );
}

this obviously reports that ctrl has already been declared

Am I missing something obvious?

Please, any assistance would be greatly appreciated.

Dave

Nov 16 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
7867
by: Glen Richards | last post by:
I've had no success in trying to dynamically set images at runtime in a Crystal Reports 9 report using C# 2005 Beta. I've been doing research along these lines & all the posts I've read say this can't be done. I was wondering if I've missed anything or if Crystal Reports 10 has added this feature? I downloaded a sample VB6 project (cr9_vb_rdc_loadpic.exe) from
6
3140
by: Christopher Young | last post by:
I have several user controls on a page and I am trying to get information out of them. The postback is being caused on the aspx page and not in the user control. I have tried using a property but I keep getting a message that the object is not referenced. What I am trying to do is be information from text boxes and insert them into a new row in a dataset. The application has several tabs of information. I have a button set up so they...
0
2014
by: Rich | last post by:
Hello, I started using the Reportviewer control (very nice) for generating Reporting Services type reports in my VB2005 app. I have been experimenting using a designer Reportviewer control from the toolbox - created at design time - (VB2005) and also creating a Reportviewer control at runtime on the fly. The runtime Reportviewer will populate/display data with a runtime dataAdapter, but the designer Reportviewer from the toolbox is...
3
4042
by: forest demon | last post by:
for example, let's say I do something like, System.Diagnostics.Process.Start("notepad.exe","sample.txt"); if the user does a SaveAs (in notepad), how can i capture the path that the user selects? thanks...
1
36345
by: Brett Romero | last post by:
I have a winform with a reportviewer object on it. I'm trying to get data from a datatable to display on the report. myDatatTable is created and filled at runtime. I don't get any errors but only the literal below displays in the report. Microsoft.Reporting.WinForms.ReportDataSource rds = new Microsoft.Reporting.WinForms.ReportDataSource(); rds.Name = myDataTable.TableName; rds.Value = myDataTable;...
3
1695
by: kibong | last post by:
I am trying to get what the user inputs into the box and then take that to check their answers and make sure everything is correct before moving on. here is my code <%@ Page Language="vb" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>Page 3</title> <script language="javascript"...
0
933
by: niranjana | last post by:
i am using asp.net2.0 with crystal report 10. i want to develop an application where i will create a blank report at design time. at runtime in a button click event the end user should see the designer itself so that he can modify the existing report.. how can i do this...i don't have any idea.. niranjana
0
1957
by: =?Utf-8?B?U2hhcm9u?= | last post by:
Hello Gurus, I need to create a Microsoft Visual Studio 2005 report at runtime. I wrote a C# window application, that holds a DataSet and several DataGridView controls. Each of the DataGridView controls show filtered data of the DataSet. Using the Visual Studio 2005 designer, I have generated RDLC file with report tables and a Form that holds this reports for display. and its all
12
11122
by: raylopez99 | last post by:
Keywords: scope resolution, passing classes between parent and child forms, parameter constructor method, normal constructor, default constructor, forward reference, sharing classes between forms. Here is a newbie mistake that I found myself doing (as a newbie), and that even a master programmer, the guru of this forum, Jon Skeet, missed! (He knows this I'm sure, but just didn't think this was my problem; LOL, I am needling him) If...
0
9697
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10906
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10647
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10292
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7017
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5682
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4482
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4064
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3132
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.