|
Hey guys sorry for disturbing again....
now a new and intressting problem:
I have installed now Office XP && Office 2007. If I create a new excelfile with
worksheet.SaveAs(txtSavePfad.Text, t, t, t, t, t, t, t, t, t);
it become a ".xls"
Previous I only had Office 2007 and the same code created a ".xlsx" file then I used the following code to create a ".xls":
worksheet.SaveAs(txtSavePfad.Text, XlFileFormat.xlExcel8, t, t, t, t, t, t, t, t);
I've a string with the full path, it contains which format I want to use... ("a\b\c\2003.xls" or "a\b\c\2007.xlsx")
if (txtSavePfad.Text.Substring(txtSavePfad.Text.LastIndexOf(".")) == ".xls")
worksheet.SaveAs(txtSavePfad.Text, XlFileFormat.xlExcel8, t, t, t, t, t, t, t, t);
else if (txtSavePfad.Text.Substring(txtSavePfad.Text.LastIndexOf(".")) == ".xlsx")
worksheet.SaveAs(txtSavePfad.Text, t, t, t, t, t, t, t, t, t);
excelApp.Quit();
so what could I do to save the file in the right form?
greets Mschauder
|
|
|
|
|
It sounds like you have installed stuff in the wrong order. Check out this MSDN article[^]
If stuff is installed in the wrong order it won't work properly.
My personal experience is that although Microsoft claim you can (but not recommended) have both versions installed at the same time, in practice every piece of code you write is almost guaranteed to break.
|
|
|
|
|
Iam exploring for samples on G-mail from last 2 days . I ended up with no samples in Place. Can any body please share the samples list or any links to explore. I want to retrieve all the mails from G-mails and organize it into my application... Thanks.
|
|
|
|
|
You can enable POP3 on your gmail, and use POP3 for the mailbox access. I think there are a lot of samples about POP3
Wout Louwers
|
|
|
|
|
Check if anything here[^] is helpful to you.
Me, I'm dishonest. And a dishonest man you can always trust to be dishonest. Honestly. It's the honest ones you want to watch out for...
|
|
|
|
|
|
Thread th = new Thread(delegate()
{
e.Graphics.DrawEllipse(new Pen(Brushes.Aqua, 10), new Rectangle(20, 20, 20, 20)); //this line throw new exception "Invalid argument"
});
th.Start();
help pls
|
|
|
|
|
|
First you are not passing the eventargs variable e into the delegate function.
Secondly, you cannot perform GUI operations from any thread except for the one on which the form was created.
|
|
|
|
|
form1.CreateGraphics() and this is workling in other thread
|
|
|
|
|
Just because you can do it doesn't mean it's a good idea. You're still going to run into issues somewhere down the line. You absolutely cannot do any drawing to the controls on a thread other than the one the control was created on.
|
|
|
|
|
Hi!
I have a dataset colum wich values ara simple integers.
I want to create a ComboBox with some string values, and databind the dataset as an INDEX to them.
So,
dataset has 1,2,3,4
my Combobox has "myString1", "myString2" (I can popolate manually or progrmatically, but theese values are NOT provided by the dataset)
I want to databind my dataset to my combobox so that when dataset value is 2, the combobox show "myString2".
I think it should be easy... but i'm not too used to combobox neither databind
Thanks!
|
|
|
|
|
If you set the datasource for a combobox then the datasource must contain both the ValueMember and the DisplayMember otherwise it will not work.
in order to databind the ValueMember must point to a corresponding value in the datasource
eg.
Your datasource for the combobox would be a datatable such as:
ID VALUE
=============
1 myString1
2 myString2
Your dataset would have a column in the table (MyTable) containing the idStrings value for example.
MyCombo.DataSource = source;
MyCombo.ValueMember = "ID";
MyCombo.DisplayMember = "VALUE"
MyCombo.DataBindings.Add("SelectedValue", MyData, "idStrings")
|
|
|
|
|
Hi,
I am an asp.net application developer(C#). I want to move away from building just web applications. I want to know where my knowledge of C# or .NET can be applied apart from building web applications?
Regards,
|
|
|
|
|
Oooooh! Let me think....
Desktop applications?
All those who believe in psycho kinesis, raise my hand.
My 's gonna unleash hell on your ass. tastic!
|
|
|
|
|
Pretty much anywhere, just like Java, C++ etc. Windows apps, services, console apps, you name it. There is also a port of .net called Mono which can be compliled for/under multiple environments (such as linux).
Obviously you'll need to get to know some different framework assemblies/namespaces. If you are interesred in GUI work I found the transition from (mostly) ASP.Net to WPF less harsh than Winforms.
CCC solved so far: 2 (including a Hard One!)
37!?!! - Randall, Clerks
|
|
|
|
|
keefb wrote: There is also a port of .net useless pile of steaming dog mess called Mono which can be compliled for/under multiple environments (such as linux) which would be quite usefull if it was ever finished.
FTFY
All those who believe in psycho kinesis, raise my hand.
My 's gonna unleash hell on your ass. tastic!
|
|
|
|
|
Mono is quite useful for writing Linux or cross-platform apps.
Of course, if you are looking for a magic way to port your Windows-only app to Linux without having to spend any effort, Mono isn't what you are looking for.
WinForms is crap since any non-trivial WinForms code must rely on P/Invoke or overriding WndProc which is platform-dependent.
So just like other programming languages, if you want a cross-platform app, you must use a cross-platform GUI toolkit like GTK#.
WPF isn't implemented in Mono and won't be anytime soon. Silverlight/Moonlight might be an alternative, though.
That said, non-GUI code usually runs fine in Mono. The only trouble I had were hard-coded line endings ("\r\n"). I had no trouble using new language features like LINQ.
|
|
|
|
|
If moonlight is as well implemented for silverlight as mono is for .NET, then expect problems: big problems (where they can't be bothered to implemnt the boring stuff they don't use), small (where they don't implement it quite the same), and bl**dy annoying little differences that waste way too much time to find.
All those who believe in psycho kinesis, raise my hand.
My 's gonna unleash hell on your ass. tastic!
|
|
|
|
|
I got great help with postings of Dr. Wisam E. Mohammed.
I have a question/query for all those working with mapwindow activeX.
I've added a shapefile of 'countries' to the mapcontrol(mapwingis.axmap). Now i need that upon clicking/selecting a shape, particular information to be showed.
I tried the coding on mousedownevent but i think mapwingis events are not working??
help!!!
|
|
|
|
|
I suggest you find a forum specialized in the use of the mapwindow activeX control. You might get some help here, but it will be more likely on a dedicated forum.
CCC solved so far: 2 (including a Hard One!)
37!?!! - Randall, Clerks
|
|
|
|
|
mayank4everurs wrote: mapwindow activeX
Never heard of it.
|
|
|
|
|
Hi all,
I'm trying to get the global hotkeys working with Linux.
With Windows it is DLLImport user32 but this dll doesn't exist in Linux.
Has anyone an idea how to get global hotkeys working with Linux?
Thanks to all.
|
|
|
|
|
hii man,
you need to write your own implementation of GlobalHooks in c or c++
write down a library and use that one in your c# application or on linux..
grretz
|
|
|
|
|
Thanks for this hint.
But if i do so, ill have to install this lib on every client. Am I right? Or is there any posibility to deliver this lib with the C# project.
I'm not familiar with c#. I use to work with Linux and C++ so if this Questions are a little stupid ... please don't matter
greatz
Armin
|
|
|
|
|
yeah in windows you need to deploy the lib/dll like by installing the app.
using the lib in linux need to be recompiled under linux because the operating system specific api will be used and that one is different as the on in windows see the user32.dll doesn't exists under linux.
hope i could help
|
|
|
|