Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

AspDotNetStoreFront
  Ads  
Engage Software - Training Partner for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

DataSprings - Great Ideas. Always Flowing.
R2integrated - formerly bi4ce
Jango Studios - Skins, Modules and Hosting for DotNetNuke
eUKhost.com is commited to offer exceptional UK Windows Web Hosting solutions with quality 24x7 technical support.Our plans support ASP.Net, ASP, ASP.NET Ajax extensions, XML, MSSQL, MySQL, PHP,DNN, multiple domains and Shared SSL as standard.
SmarterTools
The Official Microsoft ASP.NET Website
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  Forum Module [L...  error when exporting xml content to excel sheet from a user control
Previous Previous
 
Next Next
New Post 7/16/2008 9:51 AM
Unresolved
User is offline santham
1 posts
10th Ranked


error when exporting xml content to excel sheet from a user control 

Hi,

     I could not view the output (Excel file) when i trying

to export the xml content to a excel sheet from an user

control. I use the following code in the user control:

XmlDocument xdoc = new XmlDocument();

xdoc.LoadXml(sb.ToString());

Stream streamOut = new MemoryStream();


XslCompiledTransform transformFile = new

XslCompiledTransform();

string strTransformFileName = strXSLFile;

transformFile.Load(Server.MapPath(strTransformFileName));


transformFile.Transform(xdoc, null, streamOut);

streamOut.Flush();

streamOut.Position = 0;

System.IO.StreamReader sr = new System.IO.StreamReader

(streamOut);

string xmlOut = sr.ReadToEnd();

Response.AppendHeader("Content-disposition", "inline;

filename=" + strXLSFile);

Response.ContentType = "text/excel";

Response.Write(xmlOut); //xmlOut content is fine here when i

view through quick watch

Response.Flush();

sr.Close();

streamOut.Close();

After saving the output file and when i try to view the page

i get the following error

"Problem during load:Unknown, File cannot be loaded because

of errors.Error are listed in......<file name>" and when i

open the error list page i get the following error

XML PARSE ERROR:  Non-unique or duplicate attribute
  Error occurs at or below this element stack:
    <html>
     <body>
      <form>
       <div>
        <div>
         <div>
          <div>
           <div>
            <div>
             <table>
              <tr>
               <td>

Where as when i use the same content in aspx page i could

able to view the output file.

Can any one help me how to solve this..

 
New Post 7/16/2008 1:17 PM
User is offline Matthias Schlomann
1487 posts
www.taunusstein.org
6th Ranked








Re: error when exporting xml content to excel sheet from a user control 

Is your question reladed to the Forum Module?  If not you are wrong here.


Regards
Matthias
www.moonlightradio.net
Chat with me via MSN
 
Previous Previous
 
Next Next
  Forum  DotNetNuke® Pro...  Forum Module [L...  error when exporting xml content to excel sheet from a user control
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:

1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


The Standard in Senior Housing Information
SNAPforSeniors provides consumers with free online resources to assist them with their search for senior housing
www.snapforseniors.com
DotNetNuke Web Hosting w/ ASP.NET 3.5
Unlimited email boxes, Unlimited databases, Unlimited domains. Plans start at $4.97
www.MyWinHosting.com
SteadyRain
Founded in 1999, SteadyRain has extensive experience delivering Internet technology strategies and solutions for a diverse client base, ranging from Fortune 500 firms to successful start-ups.
www.steadyrain.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP