|
indian143 wrote: It is truely needed thing for me.
I needed a .NET wrapper for the Canon camera SDK. Instead of asking people to write me one, over and over, I wrote it myself, having established that none existed. That's how life works.
indian143 wrote: And one more thing it would be really flexible and reliable to have such kind of control. Because .Net has features than any previous micro soft products.
First of all, I'm sure it would be. Second, you're wrong. .NET can't do a single thing that can't be done in C++, how could it ? All it does is make it easier to write particular types of apps, compared to C++.
indian143 wrote: Mr. Christian please try your level to help me for "Gods" sake.
I'm not sure what sort of help you're after. Do you think I can write what you want in a matter of seconds ? So that it's 'flexible and reliable' ?
indian143 wrote: In some cases I will be ready to make it my self.
Well, I'd say that's what you need to do. I've already pointed out that for newer versions of Office, a .NET API exists, that seems like a good starting point. I'm still unconvinced that it will result in a component that's any easier to install from a client point of view than a C++ ActiveX control, but I Could be wrong.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
You either have to use DSO Framer or you will have to go with a third party product like ASPOSE.
the last thing I want to see is some pasty-faced geek with skin so pale that it's almost translucent trying to bump parts with a partner - John Simmons / outlaw programmer
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Yes, I tried with Aspose, it was excellent. I prepared 90% of the requirement. Then they said no we dont want this sort of thing. The only problem with Aspose, which they dont like is it doesnt have UI. Thats the only problem.
About the other things which you replied, I too believe in them. But still we shouldnt be so over confident like "Heitler". Ok, in any way one day or the other I may sit to start it on my own. Still as a human being I am asking you, you are most welcome to send the answer for my query always. And this is request too. Ok. Take care. Bye
S/W Engineer
Akebono Soft Technologies
aleem_abdul@akebonosoft.com.
|
|
|
|
|
a little stumped with a regex i've been working on...
trying to parse name/value pairs from a string - I have something close, but it chokes on certain cases.
(?# PROPERTY )(?<property>[a-zA-Z0-9_]*)\x20*?(?# OPERATOR )(?<operator>>=|<=|<|>|=|!=|LIKE)(?# Value )\x20*?'?\w+'?
// any property name of any length, captured into backreference 'Property'
(?<property>[a-zA-Z0-9_]*)
// whitespace, 0+, minimal matching
\x20*?
//any of the operators >=, <=, <, >, =, !=, LIKE captured into backreference 'Operator'
(?<operator>>=|<=|<|>|=|!=|LIKE)
// whitespace, 0+, minimal matching
\x20*?
// single quote, 0-1
// followed by word character, 1+
// followed by single quote, 0-1
'?\w+'?
I am looking to match (and extract) name/operator/value pairs from a string, such as...
PropertyName='SomeValue' AND IntProperty < 9 OR AnotherProperty LIKE 'this is a test'
the regex i have above works fine for the first two terms, but then when you get a quoted string, it only matches up to the first space... This is only ever going to be an issue with the quoted strings, anything else will assume a word boundary on whitespace, which is the desired behavour.
I need that last part of the Regex to basically say "if we're enclosed in single quotes, get anything between the opening and closing quote; otherwise, match everything up to whitespace"
any help is much appreciated. (or if anything spots any weak spots in the Regex i have so far..)
thanks -
|
|
|
|
|
You will need to test for quotes and assign the substring a name. Do this at the first place in your expression where the quotes can occur. This will test for optional single or double quotes:
(?<ql>[""']?) -- *The double-quote is repeated as shown if it exists in a VB string.
You must then use conditional matching to test whether <ql> has been assigned. The syntax for the conditional match is:
(?<name or expression>yes|no) -- The |no portion is optional.
So,
(?<ql>\k<ql>)
Will test whether <ql> was previously assigned, and if so it will match it again. Otherwise, it does nothing.
Hope that helps.
|
|
|
|
|
Keith -
I was headed in that direction, but couldn't quite get it.. Thanks for the help on it.
What you have helped with has given me..
(?<Property>[a-zA-Z0-9_]*)
\x20*?
(?<Operator>>=|<=|<|>|=|!=|LIKE)
\x20*?
(?<quote>[""']?)\w+?\k<quote>
\x20*?
which matches the following
PropertyName = 'Blah' AND PropertyTwo >= 9 OR PropertyThree = "asdf" OR AnotherProperty >= 'thisis atest'
perfectly up until the last part...
AnotherProperty='thisis atest'
the \w+? will stop at the space in between 'is' and 'atest', which is where i am stuck now. using .*, or something similar captures too much... I am inclined to believe that using a negated character class [^""'] is the way to go, but am not positive how to do that; the things I have been trying wind up matching too much. Any ideas?
Thanks -
-- modified at 9:21 Friday 5th January, 2007
|
|
|
|
|
Try replacing the \w+?\k<quote> with:
.+\k<quote>
This will match everything between the quotes.
The \w is matching any word character, so it's not matching the spaces. The period will match anything, and since we want to get everything between the quotes, we use the + to denote one or more matches.
Hope that helps.
|
|
|
|
|
You really have a grammar there, not just a regular expression. I'd recommend using something like ANTLR[^] to parse your expressions. It's a lot less of a headache than trying to do a single RE that does the whole job.
|
|
|
|
|
Hi,
Is there a property i can set on a treeview node that stops it being selected?
I've got a tree where i only want the leaves of the tree to be selectable and the rest of the tree to just be for navigating to those leaves. I'm currently setting the cancel property of the treeviewcancelevent object to true in the beforeselect event but it seems to behave a bit erratically on occasion.
any help / pointers to articles or properties i've just not seen would be much appreciated.
Thanks
Russell
|
|
|
|
|
I am trying to print out a basic report using the PrintDocument and have a few fields that are going to have to wrap.
My I know that I can define a style and print the text to the graphics object using the DrawString method and a defined rectangle but how am I supposed to know how big to define the rectangle in the first place?
I have found several tutorials on the web about this but they all seem bent on just showing you how the wrapping and trimming of the string works, not how to ensure that you can print a full string with wrapping in a rectangle.
|
|
|
|
|
Graphics.MeasureString() calculates the size that DrawString() would like to use.
The overloads without SizeF argument assume no word wrapping is going to happen
so what they return almost equals
new SizeF(string length*average char width, font height).
The overloads with SizeF argument allow you to specify a maximum width (and a real
or fictious max height) and also return the effective size, but now performing
word wrapping as is required to stay within the specified width.
So the trick is to give MeasureString() the SizeF that corresponds to the maximum
Rectangle you are willing to give DrawString().
Luc Pattyn
|
|
|
|
|
Darn... what I was looking for was a function that, given the font, text and allowed width would tell me the largest rect height I would need to hold all the text.
I got around it by working up on level a bit and defining a rect for the entire page so any text I would put in there will wrap. I know that all my text total will never be longer than one page can handle so as long as it all wraps to the next line I am ok there.
Thanks.
|
|
|
|
|
Hello,
I am using the final release of .NET 3.0 to create a WPF application containing several Expander controls.
These expanders are customized by a central style:
<Style TargetType="Expander">
<Setter Property="Background">
<Setter.Value>
<LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
<GradientStop Color="White" Offset="0.0"/>
<GradientStop Color="DarkGray" Offset="1.0"/>
</LinearGradientBrush>
</Setter.Value>
</Setter>
</Style>
As reaction to the MouseEnter event I am trying to animate the background color inside the expander markup:
<Expander Name="accountExpander" [...]>
<Expander.Triggers>
<EventTrigger RoutedEvent="Expander.MouseEnter">
<EventTrigger.Actions>
<BeginStoryboard>
<Storyboard>
<DoubleAnimation Storyboard.TargetProperty="LayoutTransform.ScaleX" From="1.0" To="1.2" Duration="0 .1"/>
<DoubleAnimation Storyboard.TargetProperty="LayoutTransform.ScaleY" From="1.0" To="1.2" Duration="0 .1"/>
<ColorAnimation Storyboard.TargetProperty="Background.GradientStop[1].Color" From="DarkGray" To="SteelBlue" Duration="0 .1"/>
</Storyboard>
</BeginStoryboard>
</EventTrigger.Actions>
</EventTrigger>
</Expander.Triggers>
</Expander>
Without the ColorAnimation the code is working perfectly, the problem seems to be property path for the Storyboard.TargetProperty. Before I switched to using central styles for the expanders I simply labeled the second gradientstop, which color I wanted to change, with the x:Name property. But as I declare the gradient stop inside a Style this is no longer possible. So i tried to use the longer property path syntax. According to the documentation it should be possible to access specific properties in an array-like fashion but the above code does not work for me.
Any ideas how I can animate the style-set property in my storyboard?
Thanks in advance
FalkoD
PS:
Somehow the board software seems to dislike XAML in its <code> tag so I hat to disable formating sorry for the ugly layout.
|
|
|
|
|
Hi everyone,
I have a textbox on a form with a Validating event handler attached. The textbox is bound to a data source. The code for the event handler is given below. Basically, the amount entered in the text field should not exceed the amount in the balance field. If this happens, error provider is set and Validating event is cancelled, giving the user the opportunity to correct the amount.
On the UI side e'thing is working fine, however I noticed that the data source is updated regardless, even if e.Cancel is set to true. That is a problem because the data source should never be set to an invalid value as it is taken as input for other calculations.
I expected that the data source would not be updated if e.Cancel is set to 'true'. Am I missing something?
Thanks,
Roel
private void textBoxCash_Validating(object sender, CancelEventArgs e)
{
if (Convert.ToDouble(textBoxCash.Text) > this.balance)
{
errorProvider.SetError(textBoxGenerateCash, "Cash exceeds balance");
e.Cancel = true;
}
else
{
errorProvider.SetError(textBoxCash, null);
}
}
|
|
|
|
|
I just want to know wich one is better for learning and better in 3D perfomance?
OpenGL or Direct3D?
and please introduce some refrences for each one
-- modified at 4:58 Thursday 4th January, 2007
|
|
|
|
|
Does anybody have a simple way to screen print from a VB.NET program? 've been looking and can't find a thing. Being new to VB, Maybe I'm trying to find the wrong things.
Thanks in advanced.
silver-gray
|
|
|
|
|
|
Hi all,
Can I get any .net developpped library with proper UI, which gives the same functionality as DSO Framer control thats to display and edit office doc, xls etc files. Because the DSO Framer control uses unmanaged code which gives problem in web applications when hosted in clients local machine. So I need any .net developped tool to get these functioanlities done. I tried with aspose, but to change the document again we need to change the code, or we have to fight with sumo to make it independent of document format. So please
help me in this. You can email me at : aleem_abdul@akebonosoft.com. My requirement is to display the word or excel files in a browser, allowing user to edit it there only. He can email it from that page itself only only. Remember this page should contain a tool bar which contains appopriate buttons for those functionalities. The problem when I use aspose is, it doesnt have UI so occupies total page and if I want to change the format of the file(document), I need to change the code. And the problem with DSO Framer control is(it has nice UI but) it has to be installed on the client machine because it contains unmanaged code. By observing all these things please advise me.
Thank you.
S/W Engineer
Akebono Soft Technologies
aleem_abdul@akebonosoft.com.
|
|
|
|
|
Anything you impliment, will need to be installed on a client machine. Moving from what you've found to something .NET, will just mean your client will need .NET installed.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Yes dear but when you keep an acxtiveX control in your application, you need to install it too. That my client doesnt want, because to run an activeX control in a browser ofcourse its security need to be less.
So my client want an application, which uses only .net library and .net controls in it. So I need a tool made using .net and works same as DSO Framer. Could you please help me in this. I was in urgent thats why I put my queries 2-times. I will delete them soon after I get the answer. So please help me dear.
S/W Engineer
Akebono Soft Technologies
aleem_abdul@akebonosoft.com.
|
|
|
|
|
indian143 wrote: I will delete them soon after I get the answer.
Please don't, it's SO annoying. Just post in the right forum only, to start with.
indian143 wrote: So my client want an application, which uses only .net library and .net controls in it.
Is your client under the mistaken belief that .NET controls will just run in your browser ? They won't run at all, without the .NET framework installed. So, like I said, your end user will definately not be able to browse to your site without installing anything.
indian143 wrote: Could you please help me in this.
I answered your question, I can't change reality.
indian143 wrote: So please help me dear.
Just a little tip - in the West, guys don't call each other 'dear'. I am not upset or offended, but it's not a good habit to be in.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Christian Graus wrote: indian143 wrote:
So please help me dear.
Just a little tip - in the West, guys don't call each other 'dear'. I am not upset or offended, but it's not a good habit to be in.
You metrosexual you.
the last thing I want to see is some pasty-faced geek with skin so pale that it's almost translucent trying to bump parts with a partner - John Simmons / outlaw programmer
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Is your client under the mistaken belief that .NET controls will just run in your browser ? They won't run at all, without the .NET framework installed. So, like I said, your end user will definately not be able to browse to your site without installing anything.
No.
He is right from his side, try to understan my problem. Ocx is built using un-managed code. But if I could get any thing similar to DSO Framer, and made by using .net framework. Because, he will install .net framework but for ocx browser settings has to be changed. Thats what I want. Once again I am repeating.
"I want a UI(control like label, text box any thing) which is made by using .net frame work and contains the functionalities similar to DSO Framer. And remember activeX controls are really not good to use. Its true, they are not that much secured and reliable. They have hell lot of problems. So please help me. And reply me whether its possible or not too. Even discuss with your friends too. But reply me soon, I am waiting for you reply.
I use the word "Dear" because this forum has helped me in too many ways. I cant even forget those supports. Thank you.
S/W Engineer
Akebono Soft Technologies
aleem_abdul@akebonosoft.com.
|
|
|
|
|
Hi All,
Is There any way Add Extra Buttons to Title Bar in .net.
Plz Suggest me to get rid of this problem.
Thanks in advance
Nagaraju
|
|
|
|
|
|