Hi,
Hi,
I have converted your file to html using the latest version:
Aspose.Cells for .NET v6.0.1.6
The output html file, I am attaching, opens fine and works fine.
Do you see any problem, I did notice some extra “carriage return or line feed character” at the the end of the file when I viewed it in notepad? Do you want to remove it?
Below is my code.
C#
string path = @“C:\Documents and Settings\Home\Desktop\report.xml”;
Workbook workbook = new Workbook(path);
workbook.Save(path + “.out.html”, SaveFormat.Html);
Hi,
Hi,
Please try this code.
C#
StreamReader reader = null;
//MemoryStream stream = new MemoryStream();
string htmlData = “”;
try
{
byte[] b = System.Text.ASCIIEncoding.ASCII.GetBytes(spreadSheetXml);
MemoryStream stream = new MemoryStream(b);
stream.Read(b, 0, b.Length);
Thanks for the code…
Hi,
I do aggree, the other one keeps the Stream Read Only and also does initialize the capacity of the stream and hence there may be chances of an exception if the new stream exceeds this limit which is not so in the case of ReadBytes.
Hi,