|
Its not working in C#.net, but working in VB.net
So I created the dll and used in my application.
doc.ExportAsFixedFormat(Visio.VisFixedFormatTypes.visFixedFormatPDF, "C:\test.pdf", Visio.VisDocExIntent.visDocExIntentPrint, Visio.VisPrintOutRange.visPrintAll)
Thanks for the support
|
|
|
|
|
Hi,
This is my string "Product : tempuri"
i want to search "Product :" and want to save the value of the next word in a group.
please tell me the regex.
|
|
|
|
|
|
karmjit435 wrote:
i want to search "Product :" and want to save the value of the next word in a group.
You can do this without using regex. A possible solution could be (just an example):
string str = "Product : tempuri";
string strProduct = str.Substring(str.IndexOf(":") + 1);
Regards
Nuri Ismail
|
|
|
|
|
karmjit435 wrote: please tell me the regex.
What have you tried already? HAve you looked at any documentation for regex? Do you just want some hardworking person here to provide you the answer? Do they therefore get your paycheck for this piece of work?
Many questions, not many answers.
|
|
|
|
|
ok.. your point is right..
i was expecting this kind of reply..
i have string
String s = "this is Product : temp org is fine";
can you tell me how can can get "temp" only in my value group.
here is what i tried
Regex productRegex = new Regex(@"(Product) *(:b)* b)*(?<value> .+) ");
|
|
|
|
|
Whats wrong with simply:
Product : (?<value>[a-zA-Z]+)
Assuming only alpha characters after the : that should work just fine
modified on Thursday, September 10, 2009 10:33 AM
|
|
|
|
|
You don't need that question mark; I'd use Product\s*:\s*(\w+)
|
|
|
|
|
the ? was the start of a named group <value> - I just forgot to escape the angle brackets
|
|
|
|
|
Ah, I use apostrophes for that instead: (?'value'\w+) At least it helps in these cases.
|
|
|
|
|
Hi,
Thanks that resolved my problem.
Regards,
KS
|
|
|
|
|
there is another problem
i have string Product : temp product name \<br\>
i have to extract the string after : and before \<br\>
KS
|
|
|
|
|
i have string
String s = "this is Product : temp org is fine";
can you tell me how can can get "temp" only in my value group.
here is what i tried
Regex productRegex = new Regex(@"(Product) *(:b)* b)*(?<value> .+) ");
can you tell me.. there can some error while posting the message
after ? there is <value> group.
|
|
|
|
|
0) You probably want \w , not .
1) What is :b supposed to be?
2) Why are you putting the things you don't want in groups?
3) Product\s*:\s*(?'value'\w+)
4) Look into Expresso[^]
|
|
|
|
|
i want more buttons on the messagebox in c#. not only ok,cance,yes,no......
i want refresh,print..... on the messagebox. how to write code
|
|
|
|
|
|
Create your own form and have whatever buttons you want!
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
i want more buttons on the MessageBox
|
|
|
|
|
You can't, the only buttons available on System.Windows.Forms.MessageBox are the built-in ones.
If you want more buttons, you have to code your own message box form, as other people has already told you.
|
|
|
|
|
I want my car to do 300MPH, unfortunately it just was never built to do so. See the problem here?
|
|
|
|
|
J4amieC wrote: See the problem here?
Yes, a poorly constructed car?
only two letters away from being an asset
|
|
|
|
|
No. Need bigger pay check!!
|
|
|
|
|
URGENTZ! plz snd bggr pa chk!
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
|
|
|
|
|
There is exactly one way: MessageBox.Show("more buttons");
|
|
|
|
|
MessageBox.Show("5");
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
|
|
|
|