|
Hi, Steven!
Thanks for your reply.
Steven Campbell wrote:
1) Performance. For queries, because you always need multiple joins, and for inserts and updates, because you have a bottleneck in the FieldValues table.
Can you eloborate a bit on this?
2) Data types - you have not mentioned how you will solve the data type problem...you need either 1 table for each data type, or each data type needs to be represented in the FieldValues table, or something inbetween.
One thing that comes to my mind is to use SQL Server variant data type.
Regards,
Serge (Logic Software, Easy Projects .NET site)
|
|
|
|
|
hai there,
i have few doubts on picture related queries & operations using C#
1. is it possible to read a picture format directly from a scanner using C# ?
2. is it possible to get the type of picture that if i read directly from a hard drive ?
3. i have a .doc or .xls file and i included few pictures using oledb techinics. I need to filter that perticular picture file or files from that .doc or .xls file using my c# code block. Is it possible ?
4. how can i compare picture files.if it is possible give me the technology behind this. Which technology will support this. is it possible with C# ?
Please feel free to contact.
Sreejith S S Nair - Bangalore
|
|
|
|
|
sreejith ss nair wrote:
1. is it possible to read a picture format directly from a scanner using C# ?
Yes, with a TWAIN driver wrapped in managed code. I'm not sure of any third-party libraries that may exist (they probably do), but writing this requires a lot of knowledge of device drivers and TWAIN. You're best-off just having the scanner save the image and read it into managed code, or find a third-party library that does enscapsulate TWAIN drivers for your scanner. You may also be able to leverage WIA (Windows Image Acquisition).
sreejith ss nair wrote:
2. is it possible to get the type of picture that if i read directly from a hard drive ?
What? If you read it from a stream without knowing the ImageFormat ? Use the Image.RawFormat property (inheritted by the Bitmap class).
sreejith ss nair wrote:
3. i have a .doc or .xls file and i included few pictures using oledb techinics. I need to filter that perticular picture file or files from that .doc or .xls file using my c# code block. Is it possible ?
Yes. You'll need to enumerate the objects in the compound document and determine what type they are. There are documented APIs in the Office automation documentation that can be installed with Office that detail this.
sreejith ss nair wrote:
4. how can i compare picture files.if it is possible give me the technology behind this. Which technology will support this. is it possible with C# ?
You need to perform a pixel-by-pixel comparison. Use LockBits on two Bitmap s and read through the BitmapData comparing the pixels of each image.
Take a look at a reply I wrote a day or two again in this forum about how to compare two MemoryStream s. The concept is the same, though the manner is a little different. You just loop through the pixels (may be multiple bytes) and compare them. Using unmanaged code is a little faster. See Christian Graus's articles on imaging in .NET for examples.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
Is it possible to give more idea in this doubt and your post.
3. i have a .doc or .xls file and i included few pictures using oledb techinics. I need to filter that perticular picture file or files from that .doc or .xls file using my c# code block. Is it possible ?
Yes. You'll need to enumerate the objects in the compound document and determine what type they are. There are documented APIs in the Office automation documentation that can be installed with Office that detail this.
|
|
|
|
|
Is it possible to give more idea in this doubt and your post.
3. i have a .doc or .xls file and i included few pictures using oledb techinics. I need to filter that perticular picture file or files from that .doc or .xls file using my c# code block. Is it possible ?
Yes. You'll need to enumerate the objects in the compound document and determine what type they are. There are documented APIs in the Office automation documentation that can be installed with Office that detail this.
Please feel free to contact.
Sreejith S S Nair - Bangalore
|
|
|
|
|
sreejith ss nair wrote:
Is it possible to give more idea in this doubt and your post.
Okay - this is really bugging me after so many posts. It's "question", not "doubt". Doubt is what you have when you don't believe something. A question is what you ask when you don't understand something.
I don't have any sample code to show you, nor do I have time to write any. Using the Office object model you can enumerate the objects in the document and there's plenty of documentation in the Office developer help files (don't bother checking MSDN - it has little to no documentation of the Office object model). You'll just have to read and discover for yourself like many of us regular responders here in this forum (and others) have done to learn.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
hai there,
Any idea about backward compatibility ?
how can i develop n-tier application using dotnet template
Please feel free to contact.
Sreejith S S Nair - Bangalore
|
|
|
|
|
That makes no sense. What do you mean by "dotnet template"? There is no template. If you mean patterns, read about many different patterns in the MSDN Patterns and Practices[^] section, which contains information for n00bs to advanced developers.
If you want information on backward compatibility with assemblies (assembly versioning), then - as always - the information is all in the .NET Framework SDK. Read Configuring Applications[^], especially Specifying with Runtime Version to Use[^], Redirecting Assembly Versions[^], and Creating a Publisher Policy File[^].
Above, you must control your assembly versions. Do NOT use an asterisk in your AssemblyVersionAttribute , which is the default and can make you loose control very quickly.
You really must read about this stuff. IntelliSense won't help you and these concepts require a good understand that you can only gain from reading and (and experience with what you've read).
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
hai there,
Please give me very good and indepth idea about debug and trace class. material link if fine.
Why are there five tracing levels in System.Diagnostics.TraceSwitcher?
Please feel free to contact.
Sreejith S S Nair - Bangalore
|
|
|
|
|
sreejith ss nair wrote:
Why are there five tracing levels in System.Diagnostics.TraceSwitcher?
Read the documentation for the TraceSwitch and related content. It explains everything.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
hai there,
Please give me very good and indepth idea about debug and trace class. material link if fine.
Please feel free to contact.
Sreejith S S Nair - Bangalore
|
|
|
|
|
|
fine & thanX
Please feel free to contact.
Sreejith S S Nair - Bangalore
|
|
|
|
|
:-Ohai there,
i want to create an localized application which will run on any culture.
to do this where i want to start ? any materials ?
Please feel free to contact.
Sreejith S S Nair - Bangalore
|
|
|
|
|
You nead to read up on Globalization and Localization (or Globalisation and Localisation - depending on which locale of English you are using )
Also, just to publicise my own work a little, I wrote an article giving a basic introduction to localisation on .NET. You can find it here[^]. It is for the Compact Framework, but everything is applicable to the full framework also.
"You can have everything in life you want if you will just help enough other people get what they want." --Zig Ziglar
The Second EuroCPian Event will be in Brussels on the 4th of September
Can't manage to P/Invoke that Win32 API in .NET? Why not do interop the wiki way!
My Blog
|
|
|
|
|
i didn't get your post.
Please feel free to contact.
Sreejith S S Nair - Bangalore
|
|
|
|
|
What do you mean? What didn't you get?
"You can have everything in life you want if you will just help enough other people get what they want." --Zig Ziglar
The Second EuroCPian Event will be in Brussels on the 4th of September
Can't manage to P/Invoke that Win32 API in .NET? Why not do interop the wiki way!
My Blog
|
|
|
|
|
your first paragraph. something about languages .....
Please feel free to contact.
Sreejith S S Nair - Bangalore
|
|
|
|
|
hai Mr.Mackay,
Do u have any idea about my post which just below to this.
heading > "Lisence"
Please feel free to contact.
Sreejith S S Nair - Bangalore
|
|
|
|
|
Sorry, but given the security requirements of a licence manager, I would seek to buy in a third party manager rather than attempt to make one myself.
"You can have everything in life you want if you will just help enough other people get what they want." --Zig Ziglar
The Second EuroCPian Event will be in Brussels on the 4th of September
Can't manage to P/Invoke that Win32 API in .NET? Why not do interop the wiki way!
My Blog
|
|
|
|
|
sreejith ss nair wrote:
your first paragraph. something about languages
The topics you need to look up in any searches are "Localization" and "Globalization", in the brackets I made a comment refering to the fact that these spellings are American-English, however in other English-speaking locations the correct spelling is "Localisation" and "Globalisation" (note the "z" is replaced with an "s"). It was a lame attempt at a joke. Obviously it wasn't very funny.
I hope that clears up the misunderstanding.
"You can have everything in life you want if you will just help enough other people get what they want." --Zig Ziglar
The Second EuroCPian Event will be in Brussels on the 4th of September
Can't manage to P/Invoke that Win32 API in .NET? Why not do interop the wiki way!
My Blog
|
|
|
|
|
hai Mr.Mackay,
Do u have any idea about my post which just below to this.
heading > "Lisence"
Please feel free to contact.
Sreejith S S Nair - Bangalore
|
|
|
|
|
:-Ohai there,
i developed one application which check lisence date and serial key from database insted of user name and password. now what i am doing is before starting application(on first time after installation). i will run a script that will insert serial key and lisence date into the database.
I want to input this much items through some user interface (like lisence agreement or installation progress) . this must show(interface ) on the time of installation.
Do you have any idea ?
provied no other third party installers except dotnet installer.
Please feel free to contact.
Sreejith S S Nair - Bangalore
|
|
|
|
|
There is no dotnet installer. VS.NET uses Windows Installer, which is used to install Microsoft Office, Microsoft Visual Studio, Microsoft .NET, our own products, and thousands of other products.
You can write custom actions and even custom user interfaces, though VS.NET will help you very little. If you want control, get a third-party Windows Installer developer environment like Wise for Windows Installer[^].
With VS.NET, all you could really do is add a new dialog (play around with the Installer projects in VS.NET or read about it - you'll never learn any other way).
You could then make a custom action bey extending the Installer class in the System.Configuration.Install namespace. Compile this into an assembly along with the ADO.NET code (preferably in a single assembly) and add it as a custom action in the Custom Actions panel of the Windows Installer project (use the menus to find it). Pass properties from the dialog you've added to the installer class as command-line switches (/SomeSwitch=[PropertyName] /SomeSwitch2=[PropertyName2], etc.) where PropertyName is the name of hte property you associated with the text box for the dialog you created.
In your Installer derivative class, you can get these using the Context property you inherit to get the Parameters property, which is a StringDictionary of command line switches and values.
You must read about this information to understand it. There's a lot to cover and I won't waste my time answer questions that are answered in the .NET Framework SDK about the classes I've mentioned. I'm telling you one way you could do this and giving you plenty of reference material.
Finally, another way you could accomplish this is to simply prompt for this information when the application is first run. Check a registry key you define (like HKEY_CURRENT_USER\Software\YourCompany\YourProduct\Init). If the key doesn't exist or isn't 1 (for example), then prompt for the information. After adding that information in whatever manner is appropriate, set that registry key to 1 (so the user won't be prompted again). This is a very common approach, an approach that even Microsoft Office has used since Office XP for activation (though it's not as simple as a single registry key; the concept is similar, however).
Some third-party .NET controls work this way as well, prompting for license information the first time the designer is invoked or something similar.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
The bitmap constructor throws an InvalidArgumentException, if I try to create a bitmap like this:
Bitmap bitmap = new Bitmap(23622, 18897, System.Drawing.Imaging.Pixelformat.Format24bppRgb)
But this works:
Bitmap bitmap = new Bitmap(23622, 18897, System.Drawing.Imaging.Pixelformat.DontCare)
Can somebody please explain, what the problem is with Format24bppRGB ?
Best regards
-------------------------------------------
The light at the end of the tunnel has been switched off temporarily due to budget problems...
|
|
|
|