473,795 Members | 3,167 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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)="<t r><td><b>Blabla </b></td><tr>"
K=K+1
redim preserve arExport_pdf(K2 )
arExport_pdf(K2 )="<td><b>Mor e</b></td><tr>"
K2=K2+1
redim preserve arExport_pdf3(K 4)
arExport_pdf3(K 4)="<tr><td>eve n 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("exp ort_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 881

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

Similar topics

4
54850
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, It saves it as txt. How can this file be created so that Excel sees it as an .xls format. I created the data in VB 6.0 with a vbtab to seperate the columns. Hope this is enough information. Thanks for the help,
0
41184
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 an excel document which the user can see (at this stage of development) and passed some data to it. I then used the savas method to save the file. Again this seems to work as the file is created. However once I close the excel file and try and...
1
2239
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 Office = Microsoft.Office.Core Imports Excel = Microsoft.Office.Interop.Excel Imports MSForms = Microsoft.Vbe.Interop.Forms ' Office integration attribute. Identifies the startup class for the
4
3217
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 application ? I never imported any excel data to my apps so my knowledge is pretty low. I saw some examples of using Jet Engine. Can I use jet engine on .xls files or I need csv ? Share some articles or experience please ;) Jarod
1
3953
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 through a Perl script and the output generated from this script is to be written into an Excel sheet file (into each cells of the sheet). Can you please provide me pointers on this. Example code for reading and writing into Excel (spread) sheets...
0
9672
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
9519
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10435
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10163
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10000
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...
0
9037
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7538
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...
1
4113
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3721
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.