|
- 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.
|
|
|
|
|
One way to do this is to load the file names in and compile[^] them up using the CodeDOM.
|
|
|
|
|
You cant create a form file from scratch at run time. What you can do is manually create controls on an form by calling the constructors of each control dynamically. You'll have to do all the setup that is normally done at design time manually. Look at what the constructor does behind the scenes to create each control on your existing forms.
Today's lesson is brought to you by the word "niggardly". Remember kids, don't attribute to racism what can be explained by Scandinavian language roots.
-- Robert Royall
|
|
|
|
|
Hello everyone,
I'm working with a database. Currently I am using the "Microsoft SQL Server 2005". But I would like to work with a database which is inside Visual studio. So I thought about using the "Local Database".
In my solution I added a new item called "Local Database". I created a new table and tried to connect with it in the same way as I used with the SQL server, but it didn't work.
I use this connectionstring with the SQL server: connectionString = "server=DERESEN\\SQLEXPRESS;Trusted_Connection=yes;database=master;"
And I use this connection string for the local database: connectionString3 = "server=Datatbase.sdf;Trusted_Connection=yes;"
The list in SQL server looks like this: DERESEN\SQLEXPRESS -> Databases -> System Databases -> master -> Tables -> myTable
The list in server Explorer looks like this: Data Connections -> Database.sdf -> Tables -> myTable
Does anyone know how to get this working? I cannot find it anywhere on internet.
|
|
|
|
|