|
I am not familiar with it. Do I do all the configuring in my program and then it is just a file for access by the program like access or does SQL Server Compact need to be installed on the pc as well?
|
|
|
|
|
Sql Server CE runs as a DLL in your application. This[^] article will help.
|
|
|
|
|
Hi,
First of all let me say that this is not an answer but just a bunch of additional questions. When reading your post I was wondering questions like:
- do you need concurrency control? This seems like single user application if your data is located on client, but do you have simultaneous threads accessing the same data.
- how much data do you plan to store. If there's going to be "lots" of it, you may end up with performance issues without a good data store
- how about state handling and transactions. Are they needed
- is referential integrity or key handling needed between serialized data
- is there a reason why you don't want to use datasets for storing data (if theres only a small amount of data)
- security issues of any kind, access rights etc
- backups needed at any time and how they are handled and so on...
Including a database (of some kind) into your project is going to cause some "extra work" for you but it also takes away much coding when it comes to the issues mentioned above. Usually the savings is greater. This approach also adds scalability to your project if needed.
Database can be installed with a very small footprint and the installation usually can be completely added to your deployment mechanism. Some of those databases are (just my preferences) Oracle XE, SQL Server Express Edition and DB2 Express-C. But still, not saying that is the optimal approach to you.
Mika
|
|
|
|
|
It is simply a large data storage app. It basically stores large amounts of data of patients for a vistiting nurse organazation. So it's a list of patients.
- do you need concurrency control? This seems like single user application if your data is located on client, but do you have simultaneous threads accessing the same data.
Only 1 user at a time will be accessing it.
- how much data do you plan to store. If there's going to be "lots" of it, you may end up with performance issues without a good data store
I am not sure on the amount. I suppose it could end up being a lot over time.
- how about state handling and transactions. Are they needed
state handling isn't needed and transactions I can perform with c# code
- is referential integrity or key handling needed between serialized data
Well this is actually one of the benefits of storing objects IMHO. I lets say have an object A. I then make A part of B. When I serialize the object A is actually part of B and there is no need to even relate the objects.
- is there a reason why you don't want to use datasets for storing data (if theres only a small amount of data)
Now I hadn't thought to make a dataset instead of an object. I guess I could serialize the dataset instead.
- security issues of any kind, access rights etc
obviously there could be some security issues but it's just being used on indiviual's pcs
- backups needed at any time and how they are handled and so on...
backups can be handled by the pc
|
|
|
|
|
- is referential integrity or key handling needed between serialized data
Well this is actually one of the benefits of storing objects IMHO. I lets say have an object A. I then make A part of B. When I serialize the object A is actually part of B and there is no need to even relate the objects.
Use of a decent OR mapper will make the persistance transparent. You could take a look at Diamond Binding in my sig.
Your other option is to just go all out and use an object database, and not worry about any impedence mismatch - db4o is pretty good. TBH though its probably easier to hook your-reporting-tool-of-choice up to an SQL database.
SQL Express or Compact can be redistributed easily, so I wouldnt worry about the whole "installing a database server", and both editions can attach a database file from disk. Its a bit harder to find persistance tools that speak Compact's dialect, but its easier to redistribute. SQL Express is probably a good option - being pretty much as good as full SQL Server for common usage.
|
|
|
|
|
I am not saying that it can't be done or is too hard with a db. I was just answering someone elses concern which for me was actually an asset. My main thing is that I don't want these people to have to have to install even a client on their pc. They are a bunch of old computer illiterate nurses and to be honest it's asking too much. To be honest I like the idea of an access database but it has a reutation of not being powerful but it could meet my needs. I heard also you can use SQL serer compacta and the client can become part of your app. Is that true? How can I do that? I end the end want to be able to send the program along with maybe a few files, or just 1 msi file which I have never dealt with b4 and they just unzip them into 1 folder. More than that I feel like would be asking too much
|
|
|
|
|
Compact is a bunch of assemblies that you reference, whereas Express needs to be installed with your app (usually as a merge module for the installer).
Both editions let you, if I recall, specify a local file in the connection string, which is then made available like any other database.
You may as well make a deployment project. You get a nice installer, and all the dependancies are detected for you.
|
|
|
|
|
|
Hi All,
my question is about calling c# dll from javascript, is this possible using WSH in js ??
Thaks in advance.
MiNa
|
|
|
|
|
MinaFawzi wrote: my question is about calling c# dll from javascript, is this possible using WSH in js ??
No. A dll file cannot run without some form of executable to host it.
|
|
|
|
|
MinaFawzi wrote: my question is about calling c# dll from javascript, is this possible using WSH in js ??
That depends on what you specifically mean with that ambiguous statement.
Here is an example of what probably can be done:
Executing a Javascript file with the Windows Script Host, where that javascript file contains code that Creates a COM Object that has been deployed from a .NET Assembly written using C# and using the ComVisibleAttribute [^] on one or more classes.
While that is possible, there is no way of knowing that is what your question is asking.
led mike
|
|
|
|
|
|
Hi
Use the LocalReport object's Render -method to save the report to PDF-format. After the file is created, print the file for example using Process-class for invoking Adobe Reader with print option.
So when only printing you don't actually need the ReportViewer at all.
Hope this helps,
Mika
|
|
|
|
|
Dear All,
I am using 2 listboxes, 1st containing values and 2nd to hold values selected from 1st listbox. On double clicking in 1st listbox selected value moves to 2nd listbox.
Requirment is after movment of selected value to 2nd listbox countrol should be back in 1st listbox and next or previous item (of moved value)should be selected unless their remain some item in 1st listbox.
Kindly guide,
Yawer
|
|
|
|
|
So what exactly are you having problems with?
You can set the focus back to listbox1 with listbox1.SetFocus() and set the correct index with listbox1.SelectedIndex = somenumber .
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Listbox do not offer any methed in c# like .SetFocus().
Yes by using listbox1.SetSelected() I can get focus. But I cannot hardcode a index number. Requirment is on moving a value next or previous value of moved value should be automatically selected. Problem is, there may be any number of values (0 to n) in listbox and user can selected any value 0 to n from list. What can code for it ?
Please guide.
|
|
|
|
|
Yawer Iqbal wrote: Listbox do not offer any methed in c# like .SetFocus().
Sorry my bad, it's listbox1.Focus();
Yawer Iqbal wrote: But I cannot hardcode a index number. Requirment is on moving a value next or previous value of moved value should be automatically selected. Problem is, there may be any number of values (0 to n) in listbox and user can selected any value 0 to n from list. What can code for it ?
Handle the MouseDoubleClick event of the listbox, there you can find out which index has been doubleclicked:
private void listBox1_MouseDoubleClick(object sender, MouseEventArgs e)
{
int selIndex = listbox.SelectedIndex;
if(selIndex == -1)
...
else
}
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Thanks for your time & attention. It was helpful.
|
|
|
|
|
I want to get another data in the web browser where a data is already in it.i want to change the data dynamically?
MURALEEKRISHNAN.K
|
|
|
|
|
|
hello 4 all,
how can i create an object from " phisical Form files " at run time!
m asking becouse i want to insert into DB all buttons name in all forms in som Directory!
and if i couldnt is there any way to include\execlude Forms from aproject programaticly?
any suggestions would be highly welcomed!!!!
|
|
|
|
|
mrcooll wrote: how can i create an object from " phisical Form files " at run time!
What kind form?
|
|
|
|
|
Windows application form on framework 2.0
|
|
|
|
|
mrcooll wrote: how can i create an object from " phisical Form files " at run time!
You dont have physical forms on your disk once you build and deploy the application.
|
|
|
|
|
hi,
and thank u for trying to help me,
m devloping an application that collect information "Forms, Controls,etc... " about other application before deploying it.
which means that i have the whole project files that m collecting its information.
private void GenerateNodes(DirectoryInfo dinfo)
{
//here i got all of the form names and its files
FileInfo[] files = dinfo.GetFiles("*.resx",SearchOption.AllDirectories);
//or
FileInfo[] files = dinfo.GetFiles
"*.AnyFormExtintion",SearchOption.AllDirectories);
//or
FileInfo[] files = dinfo.GetFiles("*.cs",SearchOption.AllDirectories);
//or
FileInfo[] files = dinfo.GetFiles("*.vb",SearchOption.AllDirectories);
}
What i need is a way to create an object from these forms to iterat over its controls.
Thx.
|
|
|
|