Advertisement

03.15.2004 at 02:41PM PST, ID: 20919841
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

6.6

Pseudo XML HTML Excel Export

Asked by fritz_the_blank in Extensible Markup Language (XML)

Tags: ,

Hello and thank you for reading this question.

I am exporting data from a database to an Excel spreadsheet via ADO in ASP using the following method:

<%response.ContentType="application/vnd.ms-excel"%>

I simply iterate through my recordset placing the results in a table, and all works fine.

What I would like to be able to do, however, is to create a new sheet (or tab if you prefer) for each record, but I am not sure that it is possible to do so with ASP classic (although there is a solution with XML and ADO.net).

Does anybody have an idea how to do this in ASP classic?

If I do this, I can get two worksheets, but I still don't know how to place the content of each table on a separate worksheet:


<%@ Language=VBScript %>
<%Response.Buffer=true%>
<%
   Response.ContentType = "application/vnd.ms-excel"
%>

<HTML xmlns:x="urn:schemas-microsoft-com:office:excel">
<HEAD>
<style>
  <!--table
  @page
     {mso-header-data:"&CMultiplication Table\000ADate\: &D\000APage &P";
     mso-page-orientation:landscape;}
     br
     {mso-data-placement:same-cell;}

  -->
</style>
  <!--[if gte mso 9]><xml>
   <x:ExcelWorkbook>
    <x:ExcelWorksheets>
     <x:ExcelWorksheet>
      <x:Name>Sample Workbook</x:Name>
      <x:WorksheetOptions>
       <x:Print>
        <x:ValidPrinterInfo/>
       </x:Print>
      </x:WorksheetOptions>
     </x:ExcelWorksheet>
     <x:ExcelWorksheet>
      <x:Name>Sample Workbook 2</x:Name>
      <x:WorksheetOptions>
       <x:Print>
        <x:ValidPrinterInfo/>
       </x:Print>
      </x:WorksheetOptions>
     </x:ExcelWorksheet>
    </x:ExcelWorksheets>
   </x:ExcelWorkbook>
  </xml><![endif]-->
</HEAD>
<BODY>
<TABLE>
     <TR>
          <TD>1</TD>
          <TD>2</TD>
          <TD>3</TD>
     </TR>
     <TR>
          <TD>4</TD>
          <TD>5</TD>
          <TD>6</TD>
     </TR>
     <TR>
          <TD>7</TD>
          <TD>8</TD>
          <TD>9</TD>
     </TR>
</TABLE>
<TABLE>
     <TR>
          <TD>10</TD>
          <TD>11</TD>
          <TD>12</TD>
     </TR>
     <TR>
          <TD>13</TD>
          <TD>14</TD>
          <TD>15</TD>
     </TR>
     <TR>
          <TD>16</TD>
          <TD>17</TD>
          <TD>18</TD>
     </TR>
</TABLE>

</BODY>
</HTML>


Thank you,

Fritz the BlankStart Free Trial
[+][-]03.16.2004 at 01:18AM PST, ID: 10604636

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 14-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.16.2004 at 06:13AM PST, ID: 10606242

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 14-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.16.2004 at 08:56AM PST, ID: 10607703

View this solution now by starting your 14-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Extensible Markup Language (XML)
Tags: excel, export
Sign Up Now!
Solution Provided By: devplayer04
Participating Experts: 3
Solution Grade: A
 
 
[+][-]03.17.2004 at 09:57AM PST, ID: 10617261

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 14-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.17.2004 at 11:01AM PST, ID: 10617771

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 14-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.22.2005 at 02:53AM PDT, ID: 13841287

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 14-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.22.2005 at 01:48PM PDT, ID: 13846534

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 14-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.22.2005 at 02:00PM PDT, ID: 13846637

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 14-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.03.2005 at 04:49AM PDT, ID: 13916778

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 14-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.03.2005 at 06:29AM PDT, ID: 13917556

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 14-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.03.2005 at 07:03AM PDT, ID: 13917948

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 14-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.23.2005 at 01:26PM PDT, ID: 14063515

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 14-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.23.2005 at 01:37PM PDT, ID: 14063584

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 14-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20081112-EE-VQP-43