473,546 Members | 2,289 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Simple C# Question

Sam
I have a Microsoft Access report which I have automated
using C#. When the report opens (via DoCmd.OpenRepor t) I
am confronted with several prompts for parameters
(example: "Please enter today's date"). What I would like
to do is handle each and every one of these prompts
programmaticall y with C#. Modifying the original Access
report (with its related queries, etc.) is not an option.
I just want to send values from my C# app to the MS
Access parameter prompts, that's it. Any ideas?
Nov 15 '05 #1
7 2244
lol :o) You should ask for your money back!!

For this question, you might want to try an MSAccess group and find out how
you'd normally send arguments and Access report..

"Sam" <sa*@nospam.net > wrote in message
news:00******** *************** *****@phx.gbl.. .
Is anyone going to respond to my posting? Hello?
-----Original Message-----
I have a Microsoft Access report which I have automated
using C#. When the report opens (via DoCmd.OpenRepor t) I
am confronted with several prompts for parameters
(example: "Please enter today's date"). What I would

like
to do is handle each and every one of these prompts
programmatical ly with C#. Modifying the original Access
report (with its related queries, etc.) is not an

option.
I just want to send values from my C# app to the MS
Access parameter prompts, that's it. Any ideas?
.

Nov 15 '05 #2
Sam
I thought about doing that, but this really is a C#
question. It's all about the C# DoCmd.OpenRepor t syntax.
-----Original Message-----
lol :o) You should ask for your money back!!

For this question, you might want to try an MSAccess group and find out howyou'd normally send arguments and Access report..

"Sam" <sa*@nospam.net > wrote in message
news:00******* *************** ******@phx.gbl. ..
Is anyone going to respond to my posting? Hello?
>-----Original Message-----
>I have a Microsoft Access report which I have automated >using C#. When the report opens (via DoCmd.OpenRepor t) I >am confronted with several prompts for parameters
>(example: "Please enter today's date"). What I would

like
>to do is handle each and every one of these prompts
>programmatical ly with C#. Modifying the original Access >report (with its related queries, etc.) is not an

option.
>I just want to send values from my C# app to the MS
>Access parameter prompts, that's it. Any ideas?
>.
>

.

Nov 15 '05 #3
Sam <sa*@nospam.net > wrote:
I thought about doing that, but this really is a C#
question. It's all about the C# DoCmd.OpenRepor t syntax.


Strictly speaking, that's not a C# question at all. C# is a language,
not a platform.

It's either a general .NET question, or (more specifically) a question
about the specific class you're using. (I can't find any methods called
OpenReport in MSDN, so I'm assuming it's a method in a specific Access
class or the like, in which case a newsgroup dealing with that
particular class would be a better bet.)

--
Jon Skeet - <sk***@pobox.co m>
http://www.pobox.com/~skeet/
If replying to the group, please do not mail me too
Nov 15 '05 #4
Sam
You must be referring to interop.DAO...I 'm referring to
the interop.access namespace.
-----Original Message-----
I've only know the old DAO way of manipulating Access.. what namespace isDoCmd????

"Sam" <sa*@nospam.net > wrote in message
news:01******* *************** ******@phx.gbl. ..
I thought about doing that, but this really is a C#
question. It's all about the C# DoCmd.OpenRepor t syntax.
>-----Original Message-----
>lol :o) You should ask for your money back!!
>
>For this question, you might want to try an MSAccess

group and find out how
>you'd normally send arguments and Access report..
>
>"Sam" <sa*@nospam.net > wrote in message
>news:00******* *************** ******@phx.gbl. ..
>> Is anyone going to respond to my posting? Hello?
>>
>> >-----Original Message-----
>> >I have a Microsoft Access report which I have

automated
>> >using C#. When the report opens (via

DoCmd.OpenRepor t) I
>> >am confronted with several prompts for parameters
>> >(example: "Please enter today's date"). What I would >> like
>> >to do is handle each and every one of these prompts
>> >programmatical ly with C#. Modifying the original

Access
>> >report (with its related queries, etc.) is not an
>> option.
>> >I just want to send values from my C# app to the MS
>> >Access parameter prompts, that's it. Any ideas?
>> >.
>> >
>
>
>.
>

.

Nov 15 '05 #5
Sam <sa*@nospam.net > wrote:
You must be referring to interop.DAO...I 'm referring to
the interop.access namespace.


That definitely sounds like it's a question for an Access newsgroup
then.

--
Jon Skeet - <sk***@pobox.co m>
http://www.pobox.com/~skeet/
If replying to the group, please do not mail me too
Nov 15 '05 #6
Jo
I used to get those problems when I was using VB or delphi to use access.
Just means that your report is written without taking into account the
integrity of you data that you are trying to display. if you Dbl click the
report in Access you should not get any pompts to enter something that it
needs to do some computation.
A report in access is simply a reflection/view of your data in the "pseudo"
database. (I call Access MDB's pseudo databases for obvious reasons...)

To answer your question : and this is how I got around it.
Set up a temp table and reference that from your report to get the values
you need.
populate the temp table before calling the report from c# and the clear the
table when you are done.

hope it helps
"Sam" <sa*@nospam.net > wrote in message
news:0e******** *************** *****@phx.gbl.. .
I have a Microsoft Access report which I have automated
using C#. When the report opens (via DoCmd.OpenRepor t) I
am confronted with several prompts for parameters
(example: "Please enter today's date"). What I would like
to do is handle each and every one of these prompts
programmaticall y with C#. Modifying the original Access
report (with its related queries, etc.) is not an option.
I just want to send values from my C# app to the MS
Access parameter prompts, that's it. Any ideas?

Nov 15 '05 #7
Sam
Jo,

Thanks for responding. Unfortunately, everyone seems to
be missing the whole point of my post. I need to
programmaticall y handle an application's dialog boxes (in
this case, it just happens to be MS Access). I need to
take data (stored in variables in the C# code) and
programmaticall y pass it to these dialog boxes. Then, I
need to programmaticall y click "ok" on these dialog
boxes. I find it hard to believe that this is so
complicated. There's C# code to open an Access DB.
There's C# code to open an Access report. Why can't there
be code to handle a simple Access dialog/input box???
-----Original Message-----
I used to get those problems when I was using VB or delphi to use access.Just means that your report is written without taking into account theintegrity of you data that you are trying to display. if you Dbl click thereport in Access you should not get any pompts to enter something that itneeds to do some computation.
A report in access is simply a reflection/view of your data in the "pseudo"database. (I call Access MDB's pseudo databases for obvious reasons...)
To answer your question : and this is how I got around it.Set up a temp table and reference that from your report to get the valuesyou need.
populate the temp table before calling the report from c# and the clear thetable when you are done.

hope it helps
"Sam" <sa*@nospam.net > wrote in message
news:0e******* *************** ******@phx.gbl. ..
I have a Microsoft Access report which I have automated
using C#. When the report opens (via DoCmd.OpenRepor t) I am confronted with several prompts for parameters
(example: "Please enter today's date"). What I would like to do is handle each and every one of these prompts
programmaticall y with C#. Modifying the original Access
report (with its related queries, etc.) is not an option. I just want to send values from my C# app to the MS
Access parameter prompts, that's it. Any ideas?

.

Nov 15 '05 #8

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

Similar topics

3
3667
by: Patchwork | last post by:
Hi Everyone, Please take a look at the following (simple and fun) program: //////////////////////////////////////////////////////////////////////////// ///////////// // Monster Munch, example program #include <list>
1
3415
by: Proteus | last post by:
Any help appreciated on a small perl project I need to write for educator/teaching purposes. I have not programmed perl for some time, need to get up to speed, maybe some kind souls hrere will help me on this project? It looks to be a simple project, and I will start relearning pearl, but any help appreciated! I need to read and parse a...
2
5014
by: Raskolnikow | last post by:
Hi! I have a very simple problem with itoa() or the localtime(...). Sorry, if it is too simple, I don't have a proper example. Please have a look at the comments. struct tm *systime; time_t currentTime; char day; char month;
3
2151
by: Peter | last post by:
Hello Thanks for reviewing my question. I would like to know how can I programmatically select a node Thanks in Advanc Peter
7
2269
by: abcd | last post by:
I am trying to set up client machine and investigatging which .net components are missing to run aspx page. I have a simple aspx page which just has "hello world" printed.... When I request that page like http://machinename/dir1/hellp.aspx instead of running that page it starts downloding ...whats missing here ....why the aspx engine...
4
118786
by: dba_222 | last post by:
Dear Experts, Ok, I hate to ask such a seemingly dumb question, but I've already spent far too much time on this. More that I would care to admit. In Sql server, how do I simply change a character into a number?????? In Oracle, it is:
14
2961
by: Giancarlo Berenz | last post by:
Hi: Recently i write this code: class Simple { private: int value; public: int GiveMeARandom(void);
30
3478
by: galiorenye | last post by:
Hi, Given this code: A** ppA = new A*; A *pA = NULL; for(int i = 0; i < 10; ++i) { pA = ppA; //do something with pA
10
2115
by: Phillip Taylor | last post by:
Hi guys, I'm looking to develop a simple web service in VB.NET but I'm having some trivial issues. In Visual Studio I create a web services project and change the asmx.vb file to this: Imports System.Web.Services Imports System.Web.Services.Protocols Imports System.ComponentModel <System.Web.Services.WebService(Namespace:="http://...
17
5790
by: Chris M. Thomasson | last post by:
I use the following technique in all of my C++ projects; here is the example code with error checking omitted for brevity: _________________________________________________________________ /* Simple Thread Object ______________________________________________________________*/ #include <pthread.h> extern "C" void* thread_entry(void*);
0
7504
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7947
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7461
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...
0
7792
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...
0
5080
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...
0
3470
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1921
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
1
1046
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
747
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...

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.