|
Initially I did consider XSLT, however the input XML is a rather interesting example of XML usage, so creating the XSL transform would have been extremely convoluted.
As an example the input XML is entirely attribute based and attribute values and presence depend on the value and presence of other attributes. So for example these two samples represent two different people (customer, staff)
|
|
|
|
|
There are limitations on what types of values may be passed to attributes.
Generally, only strings and numerics. Even enum values have to be cast to their underlying type (int, short, etc.).
|
|
|
|
|
But you're using Reflection on each call which is very slow, better to read them once and cache the results (after all the values aren't changing).
|
|
|
|
|
erm.... ok. Feel free to provide a sample that reads Description attributes without the use of Reflection.
And I mean, come on, how slow is this method on the larger scheme of things? An extra 2 milliseconds? I dont think my users will mind.
|
|
|
|
|
J4amieC wrote: An extra 2 milliseconds?
Obviously you haven't read this[^] yet.
|
|
|
|
|
You might find this[^] helpful.
|
|
|
|
|
I'm looking at (slight) game automation, and I was wondering if anyone knew any simple text-recognition programming techniques.
I say simple since:
1.) Font will always be the Same Type, and size.
2.) Text will always be in the same area.
3.) Text will always be the same color.
The only problem is that the background BEHIND the text will change (As the screen is scrolled)
Any hints / links will be highly appreciated
-= Reelix =-
|
|
|
|
|
|
Wow!
Extremely Helpful!
Many thanks!
(Rank 5 (Or "Helpful Answer"))
-= Reelix =-
|
|
|
|
|
hi
in my app when i set my controls, right to left, it display arabic numbers correctly, but when i use trading components (like devExpress), it does not support rtl languages to display arabic numbers correctly, so, i want to create custom globalization for arabic numbers and use it's format to display arabic numbers correctly, but i don't know how to create custom globalization for this aim, can anyBody tell me how to do ? (article, tutorial or sample code)
thanks
|
|
|
|
|
Hi
I Have Installed below Pakages
1- .Net Framework 3
2- VS 2005 Extention for window workflow fundation
I can build and run the sample but i can not view the workflow designer when i want to open designer It make an error
as below Please Help me
Method 'get_CheckTypes' in type 'Microsoft.Workflow.VsShell.Helpers.VSWorkflowCompilerOptionsService' from assembly 'Microsoft.Workflow.VSDesigner, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' does not have an implementation.
Thanks For Any Boudy hellp me
Thaer
|
|
|
|
|
I have seen many PDF files with checkbox, textbox, radiobutton etc. I want to create a PDF library which is able to create this kind of PDF document.
I am looking for help in following areas:
1) Is there any plug-in provided by Microsoft Visual studio (or any tool)that creates PDF file using Drag-n-Drop controls from toolbox?
2) What should be the guideline to create PDF file (What makes it Portable?)
3) It will be helpful, if any one can suggest sample code to add checkbox in PDF document. There are lots of third party tools, which provide dll and we create PDF document using that. I want to create my own library.
Regards
|
|
|
|
|
Munal Kalyan wrote: ) Is there any plug-in provided by Microsoft Visual studio (or any tool)that creates PDF file using Drag-n-Drop controls from toolbox?
From Microsoft - no. Adobe has Acrobat which does this, but there is no Visual Studio integration. I don't know of any product that creates PDF files that integrates with Visual Studio.
Munal Kalyan wrote: 2) What should be the guideline to create PDF file (What makes it Portable?)
Go to Adobe's site for the specification on the PDF file format. It'll probably be behind the Developer site, which, last I checked, was a pay-to-play subscription.
Munal Kalyan wrote: 3) It will be helpful, if any one can suggest sample code to add checkbox in PDF document.
Since there is no support for PDF files in the .NET Framework, you'll have to use some third party library that does this, like PDFNet. You'll have to check with the documenation on the library you're using on exactly how to do this.
Munal Kalyan wrote: I want to create my own library.
Then you'll definately need to subscribe to Adobes Developer site to get the support to build this library. After that, you'll have to come up with your own code snippets to demonstrate using your own library to add a checkbox.
|
|
|
|
|
Hi all,
I have one resource file in which there is some data and when i want to add the data programetically in the resource file. but when i try to add the value in that file i get an error - There is no editor available for "name of resource file" Make sure the application for the file type (.resx) is installed.
after getting this error i can not able to open resource file.
Rana Krishnraj
|
|
|
|
|
Happened to me a few times... Normally happens when a file / path is renamed / has an invalid name.
To fix resource file, find the entry with your Data (In this case Brief.vsk) and remove the following 3 lines:
<data name="Brief" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\Brief.vsk;System.Byte[], mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
- Reelix
(It seems I was unable to use code blocks due to the format of the <data </data> )
-= Reelix =-
|
|
|
|
|
Hi
Can anybody tell me how to set a default length for a context menu or for context menu item.
Thanks & Regards
Mishra
|
|
|
|
|
I'm trying to install a new version of software I have written in C# using a setup and deployment project.
I am getting the following error:
Error: Another version of this product is already installed.
So i have changed the version number on the C# project, however I cannot find where in the setup and deployment project to change it's version number.
As it appears to be the setup and deployment project's version number that is causing the problem.
Is my only solution to re-write the setup and deployment project which will auto-generate a new version number?
[couldn't find a setup and deployment project forum ]
Continuous effort - not strength or intelligence - is the key to unlocking our potential.(Winston Churchill)
|
|
|
|
|
two options:
1) change the version number to one greater than what you have and rebuild
2) use Windows "Add/Remove Programs" to remove the product that's currently installed and then reinstall the new version
The problem is that windows caches the installer somewhere in it's bowels when you run it. Then when you go back into the project, make changes and rebuild there are now two distinct copies of the installer: the one that windows cached when you last successfully ran it and the new one that you just built in your DEBUG (or Release) folder. Both installers have the same product name and version number so when you try to run the new installer that you just built windows looks and sees that the product that you're trying to install is already there. Then you get the error message that you're seeing.
One way to fix the problem is to used the installer that windows cached when it was to run to remove your product. To do this go through Windows "Add/Remove Programs" and remove it from there.
To change the version number select the Setup Project's project file in the Solution Explorer and look at the Properties tab. One of the Properties is the version number.
|
|
|
|
|
Thanks for that - it's very helpful.
However... I am feeling very stupid as I cannot find a version number on the form that opens when I select Project / [ApplicationName] Properties... within the setup and deployment project.
Am I missing something?
Continuous effort - not strength or intelligence - is the key to unlocking our potential.(Winston Churchill)
|
|
|
|
|
It's not you, it's Microsoft hiding stuff from you
Select [ View -> Solution Explorer ] when that comes up highlight the project file and then select [ View -> Properties Window ]. There's lot's of good stuff in there including the Version Number
|
|
|
|
|
Thanks - for some reason I'm still not seeing it - thanks for your help I will plug away until I find it (there may be some setting somewhere hiding this information)
Continuous effort - not strength or intelligence - is the key to unlocking our potential.(Winston Churchill)
|
|
|
|
|
|
Phew - got there eventually.
You definitely deserve a 5 star for being so patient and helpful.
I'd also say have a beer on me if I was able to buy you one. Thanks
I figured out I had to press the F4 key when the solution was highlighted as menu opened another window.
Continuous effort - not strength or intelligence - is the key to unlocking our potential.(Winston Churchill)
|
|
|
|
|
glad to help
|
|
|
|
|
Hi. I want to do this:
<br />
fileWatcher.Created += new FileSystemEventHandler(fileWatcher_Created(ref extra_parameter));<br />
<br />
void fileWatcher_Created(object sender, FileSystemEventArgs e, ref TYPE extra_parameter)<br />
{..}<br />
How can I do this?
|
|
|
|