|
Hi,
I'm unsure of why it did not work for me (I do have the case correct) and knew I had to be doing something wrong ...
First I tried
String resourceName = "EPPlus.dll";
Then I tried
using (var stream = Assembly.GetExecutingAssembly().GetManifestResourceStream("EPPlus.dll"))
and finally I tried
AppDomain.CurrentDomain.AssemblyResolve += (sender, "EPPlus.dll") =>
Should it be? (I'm not at work to try this)
String resourceName = "AssemblyLoadingAndReflection." + new AssemblyName("EPPlus").Name + ".dll";
|
|
|
|
|
Make sure to include the namespace with the resource name.
Working with Embedded Data[^]
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Yup, that looks like what I was missing.
Thank you Mark!
|
|
|
|
|
You're welcome
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
hi
I wish evry body is OK
today I have Q about screen resolution I wish from any one have
I dea about it to answer my Q this is My q
* If send drawing image(bitmap)from on PC(big Screen)to another PC (small screen) Over network connection
Some of drawing not appear in another PC *
**But Iam send only Drawing points and color Iwant function to calculate screen bound or panel that i drawing on it to send it ****
that is all I wish get it thanks***********please if u Don't Know don't give me advice to go to google
Iam going beffor but not get anything*************
|
|
|
|
|
Don't have an answer for you problem but do have a small bit of advice. Don't text speak here. It gets viewed less than pleasantly. Type as if you are on a professional forum, not as if you are texting your buddy across the way.
Programming is a race between programmers trying to build bigger and better idiot proof programs, and the universe trying to build bigger and better idiots, so far... the universe is winning.
A crisis on your part does not constitute one on mine.
|
|
|
|
|
That is not a very helpful question.
1) To back up what gavindon said: don't use text speak - you have a keyboard, either learn to type or just learn where the vowels are and start using them. The space bar helps as well. Would you appreciate it if someone gave you a code answer with half the characters missing?
2) Do you really think large numbers of '*' characters help? All they do is make your question look like it has been censored.
3) Have you checked the resolution of the two screens? Is the "small" one big enough to display all the pixels on the "big" one?
4) How do you expect us to help your improve your code if you don't actually post the relevant code fragments? Psychic powers?
5) If we don't think you have actually searched, then you will indeed get told to google off - trying to limit the advice we give you to "acceptable" answers by your definition will both annoy those you want to help you, and restrict our choice of answers. Sometimes the advice we give is not what you want to hear - doesn't mean it is not good advice.
Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together.
Manfred R. Bihy: "Looks as if OP is learning resistant."
|
|
|
|
|
Is your question, how do I get screen resolution locally on a computer, when this computer starts my application locally?
If so, the function below should help get you started. This will give you resolution even if you have multiple screens. Using this, you could resize a picture if the resolution is set to less than a certain number.
The other posters were correct about the l33t speak.
private static void test()
{
string virtualWidth = "";
string virtualResolution = SystemInformation.VirtualScreen.ToString();
string[] virtualResolutionSplit = virtualResolution.Split(',');
foreach (string resolutions in virtualResolutionSplit)
{
if (resolutions.Contains("Width="))
{
resolutions.TrimStart();
resolutions.TrimEnd();
virtualWidth = resolutions.Replace("Width=", "");
}
MessageBox.Show(resolutions);
}
}
|
|
|
|
|
|
Hi Guys,
i have a website that allow my client to login and apply for staff so upon sending the application i recieve an email that tells me a user has add something..
so i want to use a link from an email to auto login to my site and access the page that m willing to access. i use the following to send the email
XmlDocument xml = new XmlDocument();
xml.Load(HttpContext.Current.Server.MapPath("../Templates/NewCorrespondent.xml"));
string emailXML = string.Format(xml.OuterXml,aprov.CompanyName,aprov.CompanyType,aprov.VatRegistered,aprov.vatRegistration,url());
string emailBody = WebUtilities.Transform(emailXML, HttpContext.Current.Server.MapPath("../Transforms/NewCorrespondent.xslt"));
string table = (CompanyDetails(USRID) + "" + emailBody);
messaging.sendEmail(SupportEmail(), "New Correspondent Has Been Created", table);
|
|
|
|
|
Do you have a question or are you just sharing code.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
|
No. It's a description of the application.
Don't forget to rate answer, that helped you. It will allow other people find their answers faster.
|
|
|
|
|
As English may not be your primary language I'll give you a hint. Questions contain statements such as, How can I do X, or, I would like to be be able to... and are followed by a question mark (?)
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
If the user is logged in, a cooky would be set. If the browser opens and the cooky is valid, there wouldn't be a need to login. Hence, clicking the link would open it, as if the user is logged in.
Providing a link with an embedded password would be less secure.
Bastard Programmer from Hell
|
|
|
|
|
Thank guys it worked just fine, my problem was in the xslt...
|
|
|
|
|
Hello Everybody,
Can anyone help me for developing algorithm for Sewer colony optimization?
The concept of Sever Colony Optimization is different with Ant Colony Optimization. and It is different with Finding Shortest path Network.
Thanks
If you can think then I Can.
|
|
|
|
|
As this is an algorithm question, you should post this in the algorithms forum.
|
|
|
|
|
Yes, but it'll cost you $31.50[^].
/ravi
|
|
|
|
|
Nice find, Ravi!
Will Rogers never met me.
|
|
|
|
|
Hi, i've some method which reads from text file. and returns string[]
i would like to read at the same time from 5 different files (big files...)
so i'll create 5 threads, and pass some string [] wrapped in object, then i'll run those 5 threads, and in the end i'll return some object which contains the data from file which i read...
it works but seems to be a bit "inefficient"...
any different idea will be appreciated
|
|
|
|
|
When the files are on the same physical disk, attempting to read more than one file at a time is usually slower than the same amount of work done sequentially. The reason being that the disk heads are forced to move back and forth between the files, i.e. spending time preparing to read data, not actually doing it.
Alan.
|
|
|
|
|
ok, then i''l use backgroundworker and read files sequential...
but then i need to parse the buffer (lets say string[])which i just read.
and then i'll do it by using threads, but the question is if there more "professional" way to achieve my goal, rather than the one i've described earlier ?
thanks
|
|
|
|
|
TPL is more "professional" then backgroundworker IMHO lol... well, its newer and easier to code / structure vs. BackgroundWorker.
|
|
|
|
|
True if the files are actually on disk, not so if they are in a memory cache, or on different drives or (probably) on a solid state disk (USB stick etc).
|
|
|
|