|
.ToShortDateString() is also an options
|
|
|
|
|
I'm developing an application in silverlight. I want to convert files of .msg format to image format like jpeg/jpg in order to be viewable for preview.
Is there any best way to do this conversion in seconds.
Any good links to start with..
|
|
|
|
|
AFAIK, .msg files are email messages. Do you want an image representation of the email message?
EDIT: Anyone care to own up and explain the downvote?
"Don't confuse experts with facts" - Eric_V
modified on Friday, August 19, 2011 3:27 PM
|
|
|
|
|
Shameel wrote: Do you want an image representation of the email message?
Bloody brilliant that!
Did you infer it from the statement
Tanuja123 wrote: I want to convert files of .msg format to image format like jpeg/jpg
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Mark Nischalke wrote: Did you infer it from the statement
Yes, there is no other "conversion" from email message to image.
"Don't confuse experts with facts" - Eric_V
|
|
|
|
|
Mark Nischalke wrote: Did you infer it from the statement And what, pray tell, is the point of my pointing out that you are pointing out the obviousness of pointing out the obvious ?
Bill
"In the River of Delights, Panic has not failed me." Jorge Luis Borges
|
|
|
|
|
Past history with this user posting incorrect solutions by inferring the meaning behind an OPs post. In this case he isn't asking for clarification, jut stating the obvious.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Mark Nischalke wrote: Past history with this user posting incorrect solutions by inferring the meaning behind an OPs post.
I don't see any problem with inferring when the question is not clear. I just provided alternative solutions based on my best understanding of the question. If it sounds incorrect to you, it's your perception.
Mark Nischalke wrote: In this case he isn't asking for clarification, jut stating the obvious.
The OP herself was not sure about her question. It is very much possible that she mistook .msg extension to be an image format like .jpeg, getting it clarified is not a sin.
If you have problem both with inferring meaning as well as asking for clarification, I cannot help it. There are cultural differences between native English speakers and those who speak English as a second language. Being a native English speaker yourself, it is difficult for you to understand this difference.
"Don't confuse experts with facts" - Eric_V
|
|
|
|
|
How arrogant of you to automatically assume the the OP was confused.
How arrogant of you to automatically assume I am a native English speaker.
How arrogant of you to automatically assume I have no experience with multiple cultures.
You would do best to leave your arrogance on the desk, not in the keyboard and refrain from such assumptions. If you have a problem with that you can just as easily not respond or go somewhere else.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Mark Nischalke wrote: How arrogant of you to automatically assume the the OP was confused.
There is no arrogance here, only cultural difference. (which you can never understand as you have demonstrated here)
Mark Nischalke wrote: You would do best to leave your arrogance on the desk, not in the keyboard and refrain from such assumptions. If you have a problem with that you can just as easily not respond or go somewhere else.
People who follow these posts can easily understand who is arrogant.
Atleast, I am not arrogant to the level where I downvote rival answers to make sure my answer shows on the top and to ridicule and insult other answerers.
"Don't confuse experts with facts" - Eric_V
|
|
|
|
|
Shameel wrote: I downvote rival answers
Ahww, are your feelings hurt. You get what is deserved and in case you haven't noticed, there are over 8 million users here.
ri·val [rahy-vuhl] Show IPA noun, adjective, verb, -valed, -val·ing or ( especially British ) -valled, -val·ling.
noun
1.
a person who is competing for the same object or goal as another, or who tries to equal or outdo another; competitor.
2.
a person or thing that is in a position to dispute another's preeminence or superiority: a stadium without a rival.
We are not competing for anything and you are not even close to being superior in anything.
ar·ro·gant
[ar-uh-guhnt]
–adjective
1.
making claims or pretensions to superior importance or rights; overbearingly assuming; insolently proud
You are the one making claims to know what people are asking and to automatically assume things, like their native language and culture, with nothing more than a screen name.
Now, once again, this could go on indefinitely and you could continue to show your ignorance and arrogance, but you are really just a passing annoyance, like a junior developer who has no practical experience.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Mark Nischalke wrote: We are not competing for anything and you are not even close to being superior in anything.
I did not try to exert my superiority, you did and it is evident from your behavior and your comments. (And don't tell me you don't downvote and ridicule rival answers).
Mark Nischalke wrote: You are the one making claims to know what people are asking and to automatically assume things
The OP is from India and I know what she meant. Was it possible for you to know it was "her" and not "he"? It was possible for me because of the same culture. (Not because of my superiority as you claim)
Mark Nischalke wrote: but you are really just a passing annoyance, like a junior developer who has no practical experience.
How did you assume this? And if you can assume something, why can't I? Why do you have a problem then? Again it's nothing but a blatant and shameless display of your superiority complex.
"Don't confuse experts with facts" - Eric_V
|
|
|
|
|
Shameel wrote:
The OP is from India and I know what she meant
Thats a bold assumption IMHO.
cheers,
Super
------------------------------------------
Too much of good is bad,mix some evil in it
|
|
|
|
|
我决定用中文试试~~话说您说的话好蛋疼……说英文一般要以容易理解通俗易懂为重……或许just a joke?
|
|
|
|
|
果断可以用中文~~恩,恩,8错
|
|
|
|
|
+5 Shameel, I think it's excellent form to ask fundamental questions, to say "is that what you really mean ?" when presented with bizarre use-cases, like wanting an 'image' of an e-mail !
best, Bill
"In the River of Delights, Panic has not failed me." Jorge Luis Borges
|
|
|
|
|
BillWoodruff wrote: I think it's excellent form to ask fundamental questions
Thanks Bill, but certain people have a problem with both asking for clarification as well as inferring the meaning. So, when they see such a post, they go on a downvoting spree
"Don't confuse experts with facts" - Eric_V
|
|
|
|
|
Hey all, i was wondering if anyone knows if SharpPcap handles multiple ICaptureDevices in a single instance of an executable. What im programming is something to emulate multiple clients on multiple IP's on the same machine in a single instance of the executable.
Due to non-disclosure reasons i can not present code/concepts as what im programming is bespoke for a comms company.
the solution is running on windows 7 and i know that windows 7 supports multiple IP's
The issue im having is that if i run a single instance of the solution and then attempt to run two or more instances of a virtual client the first client gets disconnected and then the second one tries to connect but also gets dropped. But if i run two separate instances of the solution with a single virtual client each, both virtual clients work happily exchanging packets over the network.
I have the sneeking suspision windows does not allow processes to hook onto multiple IP's but if anyone can explain if im right or not would be of great assistance.
Ive thoroughly checked through the code and im sure each virutal client is definately iscolated. No device instance as far as i know is shared and i have not got any resource fighting from each client instance.
many thanks.
|
|
|
|
|
Is it possible to get the actual property value from a PropertyInfo object? I've tried the GetValue method with various parameters, but nothing works. I just get exceptions
|
|
|
|
|
Etienne_123 wrote: Is it possible to get the actual property value from a PropertyInfo object?
Of course it is.
Etienne_123 wrote: I've tried the GetValue method with various parameters, but nothing works. I
just get exceptions
You've posted here often enough to know that you should show both your code and the exception you get. If you'd care to post your code, we can look at it - but I suspect I know what part of your problem is here; I suspect you aren't passing the instance in to retrieve the value from.
|
|
|
|
|
This is a sample of a similar method I`m trying to use:
private string GetValueFromProperty(PropertyInfo pInfo)
{
return pInfo.GetValue(this, null).ToString();
}
The lines that are commented out are other options I've tried. All of the above gives me the following error: "Object does not match target type"
|
|
|
|
|
But how are you creating your pInfo?
|
|
|
|
|
List<PropertyInfo> properties = new List<PropertyInfo>();
properties.AddRange(someObject.GetType().GetProperties());
var pInfo = properties.Find(prop => prop.Name.Equals("someName"));
This allows me to retrieve the appropriate PropertyInfo object
|
|
|
|
|
And you want to retrieve the values from someObject, so use that in your GetValue call. For instance:
pInfo.GetValue(someObject, null);
|
|
|
|
|
Thanks that's the one thing I didn't try, and it worked
|
|
|
|