473,386 Members | 1,706 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

why oh why ( data->Excel )

Hi all!

I have 2 problems with opening data in Excel.
I have one file creating an array, or actually a number of

dim arExport_pdf()
dim arExport_pdf2()
dim arExport_pdf3()
k=0
k2=0
k3=0

Later I add some data to them:

redim preserve arExport(K)
arExport(K)="<tr><td><b>Blabla</b></td><tr>"
K=K+1
redim preserve arExport_pdf(K2)
arExport_pdf(K2)="<td><b>More</b></td><tr>"
K2=K2+1
redim preserve arExport_pdf3(K4)
arExport_pdf3(K4)="<tr><td>even more</td></tr>"
K4=K4+1

And then I set them to the session, so I can open them in other
windows, such as:

<TABLE border="1">
<%
ar=session("export_pdf3")
for z=0 to UBound(ar)
response.Write(ar(z))
next
%>
</TABLE>

Basically very simple.... except than only arExport works (they all
work with Excel, the pdf is just a name). I have this 2 places in my
sortware, and - in one place the 2 first ones work, works, in another
only the first works.
The very funny thing is that only the first lines (the header above)
does not work - the data filled in later the same way is present :-)

I dont get it. I have been looking at it, moved around, but my some
reason I can copy-paste, change some names, and it does not work.

Any ideas what might be wrong?
BTW, is there a nice way to set the width of the excel sheet? I mean
like .AutoFit?

Jun 5 '06 #1
0 868

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: jrasmussen | last post by:
I have created an Excel spreadsheet for the web. When it opens in IE 6.0 I get the message that the format is not supported. This is because it is in tab delimited format. Ane when I save the file,...
0
by: I Decker | last post by:
Hi all, Hope this is the right group. I am writing a program in c# to open create an excel document, enter some data, save it and then email it as an attachment. I have successfully created...
1
by: RickH | last post by:
..Cells(1,y).GetType ownly shows instead of .Value, .Copy, etc. The code below is derived from samples, it should work, but I've messed up somewhere... Imports System.Windows.Forms Imports...
4
by: Jarod | last post by:
Hey How to import excel to my application ? I need access to all fileds in spreadsheets just to take data. Excel file works as a "dictionary" in my case. Can you tell me how to use it in...
1
by: pvenu | last post by:
Hi, I know basic perl (regular expressions, pattern matching, string manipulation, reading writing into text files). Yet, my requirement is to read an input text file -> process this input file...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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...

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.