|
Good afternoon.
How to unload data in the called fields? (i.e. cells we set to it a symbolical name (Insert-> Name->Create in Excel) to not become attached to concrete numbers of lines and columns)
or
In what it is better to create reports? So that the user could change names in caps of tables and other static information.. In patterns it (is desirable)
Thanks.
|
|
|
|
|
Hi everyone. Iam currently building a application for a smart pc handheld unit and uses the following techniques.
x SQL Server 2005 Mobile Edtion
X Microsoft .Net Compaqt Framework
X Visual Studio 2005 Ent, C#
I have now reached a critical stage in my project were I want to read the data from the database to a excel document, this document should thereafter be easialy transported to another computer using ActiveSync. It should also be possible to edit the excel document and then get it to update the sql mobile database on the handheld device.
Or does anyone have another way to solve this problem, or have done anything like this before.
Thanks in advacne and have a wonderful day.
|
|
|
|
|
this is a tricky one: How do i read registry key values and how do i modify them or create a new one?
rzvme
|
|
|
|
|
Take a look at the Registry and related classes.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
|
Hi all,
I am creating xml and i have a stylesheet and i create a html document when these two are combined. Is it possible to print this HTML document through C#?
Thank you in advance...
"Many of life's failures are people who did not realize how close they were to success when they gave up." Thomas A. Edison
|
|
|
|
|
Hi,
In my C# Windows form, I have a datagridview where datagridview is bounded to a databinding source.
Now, when I have no rows in the gridview, there a single * marked row always there to allow user to ADD a new row. Now If I just click the DELETE button of the binding navigator, I get this error
Error : "current item cannot be removed from the list because there is no current item."
I have no way to handle this exception as the Delete button of binding navigator has no predelete event rather it has click event and this event occurs after the row is deleted.
Is there nay idea how can I handle this error ?
Thanks.
|
|
|
|
|
I believe you MIGHT be able to do it by taking three steps:
1) mark your form for KeyPreview=true;
2) Implement the KeyPress event handler on the form
3) If your grid has focus, and rows.Count.Equals(0), the set Handled=true;
|
|
|
|
|
How to play a sound from my program?
I need help.
Vasildb
|
|
|
|
|
|
Read the documentation for the System.Media namespace and search the CodeProject articles for "play audio". You will find everything you need.
____________________________________
There is no proof for this sentence.
|
|
|
|
|
But i have Visual Studio 2003.
Vasildb
|
|
|
|
|
Well, if you're using an out of date version, you need to make this clear.
I believe there's a PLaySound API you can p/invoke for waves, you can use the Windows Media Player as a control for anythin that WMP can play.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
|
See here[^] maybe its some helpful for you
|
|
|
|
|
hi
i want to use CrystalReports XI in VS2005 and print my form . how to do ??
thanks
|
|
|
|
|
Hi, I am doing this website where I am suppose to LOCALIZE the web contents according to the user's language preference. Labels and buttons can be LOCALIZED easily using ASP.NET's LOCALIZED:LOCALIZEDLITERAL & LOCALIZED:LOCALIZEDBUTTON to grab the content from the respective language resource files.
But for tooltips, I need to create a function to grab the content in the resource file. The following are the code I found on the web and tried to implement on my website:
XmlTextReader resourceReader = new XmlTextReader(@"language\\ja-JP\\Resource.xml");
XmlNode resourceNode1;
public string readXML()
{
XmlDocument resourceXML = new XmlDocument();
resourceNode1 = resourceXML.SelectSingleNode("//Resource/item[@name = 'login_emailAddOfModerator']");
return resourceNode1.InnerText.ToString();
}
private void LoadToolTips()
{
this.txtUserName.ToolTip = readXML();
}
The following are the XML code:
<?xml version="1.0" encoding="utf-8" ?>
<Resource>
<item name="login_emailAddOfModerator">調整器のEメールアドレス。</item>
</Resource>
The tooltip didnt appear. Please advise me on how to make the code work, thankz
|
|
|
|
|
Well, have you stepped through the code ? Does the XML file you want exist ? What does the method return ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
yltoh wrote: But for tooltips, I need to create a function to grab the content in the resource file.
What makes you think that? Given a resource string with name "txtUserNameToolTip" exists in the resource file of the current page the following will create a textbox with respective tooltip
<asp:TextBox id="txtUserName" runat="server" ToolTip="<%$ Resources: txtUserNameToolTip %>" />
Furthermore the Page class provides the GetLocalResourceObject and GetGlobalResourceObject methods that allow you to access resources without the need to deal with XML.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
Hello
I am doing windows mobile application using compact framework 2.0
Application very slow.One screen to another screen taking 4 to 5 min.sometime application hanging...
How to improve performance? Anybody help me.
Thanks&Regards
|
|
|
|
|
An SDK is just a class library. Why do you need to write one ? Who is going to use it ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
OK, so you wrote a program, and they want you to turn it into an SDK ? You just want to create a class library that exposes the functionality.
Did they pay you to write it, or are they taking advantage of you ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Hey all. I have been fooling around with Excel and can create Worksheets, files, etc, however, when I try to modify the contents of a cell, I get the following exception:
An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in mscorlib.dll
Additional information: Exception from HRESULT: 0x800A03EC.
The code is:
Excel.Application excel = new Excel.ApplicationClass();
Excel.Workbook workbook = null;
Excel.Sheets sheets = null;
Excel.Worksheet currentSheet = null;
workbook = excel.Workbooks.Add( Excel.XlWBATemplate.xlWBATWorksheet );
sheets = workbook.Worksheets;
currentSheet = (Excel.Worksheet)sheets[ 1 ];
((Excel.Range)currentSheet.Cells[ 0, 0 ]).Value2 = "text";
I have researched this on the net but to no avail. My code seemed to have worked before, but it doesn't now and it's ticking me off. I have tried several variations to modify the contents of the cell, but nada.
Any help would be greatly appreciated!
Thanks,
Josh
|
|
|
|
|
Hi,
((Excel.Range)currentSheet.Cells[ 0, 0 ]).Value2 = "text";
cell[0,0] is an readonly cell , you cant modify value in it.
use ((Excel.Range)currentSheet.Cells[ 1, 1 ]).Value2 = "text";
hope this works.
Nitin...
|
|
|
|
|
Thanks for the response. Interesting that you can't modify 0,0. Perhaps they should mention that somewhere. Anyway, I tried using different Cell coords, however, no data appeared, but I am not that concerned since I didn't receive an error.
I ended up using this to modify cell contents:
Excel.Range r = currentSheet.get_Range( "C1", Type.Missing );
r.Value2 = "Some Text";
r = currentSheet.get_Range( "D1", Type.Missing );
r.Value2 = "Some Text";
This seems to work fine.
Thanks!
|
|
|
|