473,756 Members | 5,656 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Get a excel report with two tabs or excel worksheets

1 New Member
i have one asp page from where i am calling a xml page.from this xml page i m calling two asp pages to get an excel with two different worksheets. The variable containing a string, having some values like 32,45,57.. My problem is for long string ,(more than 150 characters) it shows error...problem in loading...Pleas e told how to overcome this.... Below is the code of tab.xml page.
Expand|Select|Wrap|Line Numbers
  1.  Response.ContentType = "application/vnd.ms-excel" 
  2. <HTML xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel">
  3.  
  4. <HEAD>
  5. <meta name="Excel Workbook Frameset">
  6. <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
  7.  <meta content="Excel.Sheet" name="ProgId">
  8.  <meta content="Microsoft Excel 9" name="Generator"> 
  9. <style>
  10. </style>
  11.  
  12. <xml>
  13.    <x:ExcelWorkbook>
  14.     <x:ExcelWorksheets>
  15.  
  16.   <x:ExcelWorksheet>
  17.       <x:Name>Hours Data</x:Name>
  18.     <x:WorksheetSource
  19.      HRef="Excel_Case_Hours.asp?Year=<%=strYear%>&LocationIds=<%=strLocationIds%>&SelectedQuarter=<%=strSelectedQuarter%>">
  20.         </x:WorksheetSource>
  21.        <x:WorksheetOptions>
  22.        <x:Print>
  23.         <x:ValidPrinterInfo/>
  24.        </x:Print>
  25.       </x:WorksheetOptions>
  26.     </x:ExcelWorksheet>  
  27.  
  28.      <x:ExcelWorksheet>
  29.       <x:Name>Recordable Cases</x:Name>
  30.      <x:WorksheetSource HRef="Excel_Case_Rec.asp?Year=<%=strYear%>&LocationIds=<%=strLocationIds%>&SelectedQuarter=<%=strSelectedQuarter%>">
  31.         </x:WorksheetSource>
  32.       <x:WorksheetOptions>
  33.        <x:Print>
  34.         <x:ValidPrinterInfo/>
  35.        </x:Print>
  36.       </x:WorksheetOptions>
  37.      </x:ExcelWorksheet>  
  38.  
  39.      </x:ExcelWorksheets>
  40.    </x:ExcelWorkbook>
  41. </xml>
  42. </HEAD>
  43. </HTML>
  44.  
I got the excel sheets indivisually in separate excel. I used this xml page only to get one excel report with 2 tabs or worksheets.
So Please help me on that...Thanks.
Oct 23 '08 #1
1 6675
jhardman
3,406 Recognized Expert Specialist
i have one asp page from where i am calling a xml page.from this xml page i m calling two asp pages to get an excel with two different worksheets. The variable containing a string, having some values like 32,45,57.. My problem is for long string ,(more than 150 characters) it shows error...problem in loading...Pleas e told how to overcome this.... Below is the code of tab.xml page.
I'm afraid your question isn't very clear. Where is the variable that holds the long string? I didn't see it in your code.

Jared
Oct 24 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

6
6526
by: David Gerstman | last post by:
I've written an application for reading information from a spreadsheet and allowing the user to add and update information in the spreadsheet. One spreadsheet I accessed in this fashion is now unreadable and get an application error when I open it. I also can't delete it. I'm assuming that I didn't properly close it down once. Is there any way I can correct the problem I finally got the application working OK. My remaining problem...
1
21520
by: Carl Corcoran | last post by:
I'm developing a website for work that exports some reports to excel. I am using the... Response.AddHeader "Content-Disposition","attachment;filename=report.xls" Response.ContentType = "application/vnd.ms-excel" ....strategy to do this. It works wonderfully except I cannot figure out how to do two things: 1) specify a name for the worksheet that's exported (it names the
0
2851
by: AR Hall | last post by:
This code goes through 3 work sheets in the same XL workbook, day, eve and night shift in each sheet their are columns representing production work orders and reject and downtime for each order so in the tblproductiondetail there is one record for each work order and many reject or downtime records (one to many) code works fine to get a new record for each work order main info but when creating the sub table related records for...
11
4055
by: Mr. Smith | last post by:
Hello all, My code can successfully open, write to, format and save several worksheets in a workbook then save it by a given name, close and quit excel. My problem is that if I try and do it again, Excel hangs. OR if I open Excel again (say from a desktop icon) before I close Access, Excel hangs. (this has happened for both 97 & 2000 for me) I of course thought that I mustn't be unloading a variable properly.
9
4549
by: Doug Glancy | last post by:
I got the following code from Francesco Balena's site, for disposing of Com objects: Sub SetNothing(Of T)(ByRef obj As T) ' Dispose of the object if possible If obj IsNot Nothing AndAlso TypeOf obj Is IDisposable Then DirectCast(obj, IDisposable).Dispose()
1
3043
by: Sport Girl | last post by:
Hi everybody , i have the task of developing in Perl a script that retrieves data from 3 tables ( bugs, profiles, products) from a MySQL database called bugs and display them in an excel sheet report. I always get when trying to test it " 500 Internal Server Error - The server encountered an internal error or misconfiguration and was unable to complete your request." Can somebody help me please.
3
7555
by: jmarcrum | last post by:
I want to export a report (that contains two separate queries, 1. Current year data, and 2. split-year data) from access into excel, but everytime I run my code and export the data to excel, it looks like garbage. I have maximize and minimize buttons on the left side of the excel spreadsheet that I don't want. I want separate tabs on the bottom of the spreadsheet that show the two queries separately from one another. But I don't know how...
1
10913
by: DThreadgill | last post by:
I have a spreadsheet with about 35 tabs that I need to import into one table in Access. I found this link http://www.thescripts.com/forum/thread650662-import+multiple+tabs.html and changed some things within the code. First off - I've written a piece of code that changes the name of each sheet (Sheet1, Sheet2, etc), deletes the blank rows and formats a couple of the columns to text and date format. It then saves and quits the application...
14
2972
by: fkbodley | last post by:
I am trying to upload a filtered form to excel. Using code someone posted to me I tried to make this work. But like all great code for a newbee.. IT DOSENT WORK! Can some one help me out. Code: Private Sub Excel_Click() 'Be sure to set your References vis Tools on the Menu Bar to 'Microsoft Excel 10.0 Object Library or to what ever 'version excel you are running Dim rs As Recordset Dim intMaxCol As Integer Dim intMaxRow As...
0
9454
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9868
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9707
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7242
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6533
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5139
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5301
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3352
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2664
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.