|
What version of Excel are you using? I just tried to load your XML in Excel 2002, and it doesn't show any strange characters at the start. When I enter some data and save, the structure gets modified to this;
<?xml version="1.0"?>
<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:x="urn:schemas-microsoft-com:office:excel"
xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"
xmlns:html="http://www.w3.org/TR/REC-html40">
<Worksheet ss:Name="Sheet1">
<Table ss:ExpandedColumnCount="1" ss:ExpandedRowCount="2" x:FullColumns="1"
x:FullRows="1">
<Row>
<Cell><Data ss:Type="String">Hello</Data></Cell>
</Row>
</Table>
<WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
<Selected/>
<Panes>
<Pane>
<Number>3</Number>
<ActiveRow>1</ActiveRow>
</Pane>
</Panes>
<ProtectObjects>False</ProtectObjects>
<ProtectScenarios>False</ProtectScenarios>
</WorksheetOptions>
</Worksheet>
</Workbook> This seems to work on both 2002 and 2007, but Excel punishes me whenever I try to remove the header. I'm guessing that that's not the problem, and that your document is somehow not encoded as UTF-8. Have you copied/pasted fragments across a language-barrier?
The computer is mightier than the pen, the sword, and usually the programmer.
modified on Tuesday, August 18, 2009 2:29 PM
|
|
|
|
|
Hi Guys -
I've been experimenting with MSBuild, and in my quest for meaninful output, have found an odd problem with displaying messages:
I have the following section:
<Target Name="MyAfterBuild">
<Message Text="==================MESSAGE=================="/>
<Warning Text="==================WARNING=================="/>
<Error Text="==================ERROR=================="/>
<Target/>
Which displays an Error Message, a Warning Message, but no normal Message in the error list.
I have set the MSBuild output to Max, and set the message Importance to High, but still it is not displaying any output. What can i do to fix this?
Regards
-------------------------------
Carrier Bags - 21st Century Tumbleweed.
modified on Tuesday, August 18, 2009 6:52 AM
|
|
|
|
|
Hi all,
I want to know how we can change JIT compiler for our application. As per my knowledg when we use VS.Net IDE, we get a standard JIT. What if I want pre-JIT or econo-JIT? How I can change mode of compilation.....
|
|
|
|
|
|
|
I am using VB.net, but samples in any language will do.
The problem is that I have to connect to a secure site with an invalid certificate. Every browser based control fails, so I have turned to raw sockets. The website is for internal use only, however its certificate is unverified.
I need to know what commands to send and how to respond over https. My socket app, so far, can connect to http, and even view pages. On https, any command like GET /url?parameters HTTP/1.1 gives me an empty response.
Thanks in advance.
~ Soumya92
|
|
|
|
|
|
I tried that now, and it works. But now I cannot send any POST commands.
~ Soumya92
|
|
|
|
|
Soumya92 wrote: now I cannot send any POST commands
What do you mean "cannot"?
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Everytime I POST data to the server, a webexception is thrown: The underlying connection was closed.
~ Soumya92
|
|
|
|
|
Soumya92 wrote: a webexception is thrown
WHAT exception?
Is the server configured to not accept POST?
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
"The underlying connection was closed"
The site works fine in a browser, once you get past the security error, so I assume that the server does accept post.
Is it somehow possible to ignore the certificate errors for the webbrowser control?
~ Soumya92
|
|
|
|
|
hi.please note to my code and help me.source image format is jpeg.
below is my code.thanks.
private void Saveimg(Image image)
{
MemoryStream stream = new MemoryStream();
image.Save(stream,System.Drawing.Imaging.ImageFormat.Jpeg);
byte[]imgdata= new byte[stream.Length];
imgdata= stream.ToArray();
string Filename = "c:\\" + Convert.ToString(DateTime.Now.ToFileTime()) +".jpg";
FileStream fs = new FileStream(Filename, FileMode.CreateNew, FileAccess.Write);
fs.Write(imgdata, 0, imgdata.Length);
fs.Close();
}
|
|
|
|
|
This might be ExternalException ,which means that you are trying to save the image using invalid format.Try to replace in your code System.Drawing.Imaging.ImageFormat.Jpeg
with image.RowFormat .Notice that .jpg or .jpeg extensions could not guarantee that the format is Jpeg.
Life is a stage and we are all actors!
modified on Tuesday, August 18, 2009 5:11 AM
|
|
|
|
|
hi.tanks for answering.
but this again throw exeption.please help me.
|
|
|
|
|
The which kind of exception and where exactly it occurred?
Make sure that Image.RowFormat is not equal to Emf, Exif, Icon, MemoryBmp Wmf,which might be not supported by the Image.Save(Stream,ImageFormat) method used into your code.
Life is a stage and we are all actors!
modified on Tuesday, August 18, 2009 7:56 AM
|
|
|
|
|
I have a similiar situation when saving an image, no matter what type.
It's a local winform client application. When I'm logged onto the machine (I am admistrator) it works fine. When other users without admin rights are logged on, the generic GDI+ error occurs while saving the image. Any ideas on how to get around this?
Using Image.Save taking a .png, .jpeg, or .bmp file types, seems to make no difference.
|
|
|
|
|
Same sh*t.
Save method creates file, but doesn't write.
And the very strange is GDI+ error. As soon as I know it doesn't return any error besides cases when the pointer to Image raw data is not returned.
In fact, GDI+ deals with windows context (Device Context) of the control where image is shown.
Therefore, it might be GDI+ API can't get the control's handle or doesn't has an access right to the control.. maybe .NET blocks the access to its controls from outside dll request.
From other side all components are in the same thread, though maybe this Save operation opens new thread????
Any idea?
|
|
|
|
|
I have created a PDF file. Now i want to disabled it's menu items.
Can anyone help me out in this.
Thanx in advance.
|
|
|
|
|
You need to use the ViewerPreferences entry in the document catalog. Refer to the PDF specification document from Adobe for details.
btw this is not, strictly speaking, a .NET framework question, please read How to get an answer to your question
|
|
|
|
|
I Download code sample from codeproject site.
For Sending sms from aspnet website.
but it not working
Can U help me
I Used following code.
try
{
SmsTest.net.webservicex.www.SendSMS smsIndia= new SmsTest.net.webservicex.www.SendSMS();
SmsTest.com.webservicex.www.SendSMSWorld smsWorld = new SmsTest.com.webservicex.www.SendSMSWorld();
if(rdoType.SelectedValue == "1")
smsIndia.SendSMSToIndia(txtMobileNo.Text.Trim(), txtEmailId.Text.Trim(), txtMessage.Text);
else
smsWorld.sendSMS(txtEmailId.Text.Trim(), txtCountryCode.Text.Trim(), txtMobileNo.Text.Trim(), txtMessage.Text);
lblMessage.Visible = true;
lblMessage.Text="Message Send Succesfully";
}
catch(Exception ex)
{
lblMessage.Visible = true;
lblMessage.Text="Error in Sending message"+ex.ToString();
}
|
|
|
|
|
|
Hi all... Did anyone got solution for this problem....
Are you able to send sms using this code??
|
|
|
|
|
I am developing a component and for backcolor, how can i diaplay radial gradient in rectangle withoout using WPF framework.
i the rectangle below i want to display col1, color2, and col3 in gradient pattern.i dont how to give gradient effect of col3.please help me
|---------------------|
| |
| color1 |
| |
|---------------------|
| . . color2 |
| . . |
| . color3 . |
|---------------------|
|
|
|
|
|
Take a look at the documentation for PathGradientBrush class and its SurroundColors property.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|