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  |  

DotNetNuke Marketplace
  Ads  
 


  Sponsors  

Meet Our Sponsors

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
Verndale
The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
 


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
1507 posts
www.taunusstein.org
5th 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.

 


Where Every Home is an Investment
Where Every Home is an Investment
www.nestbrokers.com
Faculty of Graduate and Postdoctoral Studies
At the graduate level, the University of Ottawa offers more than 180 graduate certificates, master's degrees and PhDs, as well as interdisciplinary programs such as Women's Studies and Canadian Studies. Many postdoctoral opportunities are available in both the sciences and the humanities. For further information, please consult the site of the Faculty of Graduate and Postdoctoral Studies.
www.grad.uottawa.ca
Vekkin Solutions
Vekkin Solutions provides complete website solutions and custom module development to churches and small businesses.
www.vekkin.com

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