473,406 Members | 2,369 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,406 software developers and data experts.

html2excel conversion problem

Hello PHP Masters,

Sorry to bother you but after googling into googles groups during hours
you are my last chance to find a clue to my problem. Since english is
not my natural language do not hesitate to let me know if my question
is not clear.

So Here is my problem:
I wrote a file that converts a html table into an excel file. In this
table there is a picture.
The source code is just below. if you load it with IE or FF a dialog
box appears in order to save/open the created excel file :

<?php
header("Content-Type: application/vnd.ms-excel; name='excel'");
header("Content-Disposition: attachment; filename=exceldisplay.xls");
print "
<html>
<head>
</head>
<body>
<table>
<tr>
<td>
<img
src='http://www.phpteam.wdmedia-hebergement.net/templates/phpteam/images/phpteam_high.gif'>

</td>
</tr>
</body>
</html>
";
?>
My problem is that if in the futur the user want to open the saved
excel file he won't be able to see the pictures if his computer is not
connected to the internet network.
In fact it seems that the generated excel file still use the http
adress source
('http://www.phpteam.wdmedia-hebergement.net/templates/phpteam/images/phpteam_high.gif')
of the picture to display it.
So do you know if there is any clue to create an excel file from html
code that "keep in memory the pictures" in order to display the
pictures in any kind of situations.

Any help would be very very very appreciate.

And do not hesitate to ask if you want me to clarify my question.

Fred

Jul 17 '05 #1
2 4566
Fred,
My problem is that if in the futur the user want to open the saved
excel file he won't be able to see the pictures if his computer is not
connected to the internet network.
In fact it seems that the generated excel file still use the http
adress source
('http://www.phpteam.wdmedia-hebergement.net/templates/phpteam/images/phpteam_high.gif')
of the picture to display it.
So do you know if there is any clue to create an excel file from html
code that "keep in memory the pictures" in order to display the
pictures in any kind of situations.


I believe excel can store the pictures within the excel file itself. I
am not quite sure on how it does that but you may want to pick apart the
excel specification when you load in an image.

And if you are using some conversion utility you may want to check
within that to see how they are handling images.

Mike
Jul 17 '05 #2
Fred,
My problem is that if in the futur the user want to open the saved
excel file he won't be able to see the pictures if his computer is not
connected to the internet network.
In fact it seems that the generated excel file still use the http
adress source
('http://www.phpteam.wdmedia-hebergement.net/templates/phpteam/images/phpteam_high.gif')
of the picture to display it.
So do you know if there is any clue to create an excel file from html
code that "keep in memory the pictures" in order to display the
pictures in any kind of situations.


I believe excel can store the pictures within the excel file itself. I
am not quite sure on how it does that but you may want to pick apart the
excel specification when you load in an image.

And if you are using some conversion utility you may want to check
within that to see how they are handling images.

Mike
Jul 17 '05 #3

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

Similar topics

11
by: John | last post by:
Hello all, I am trying to read in lines into a buffer from a file. Normally I would do this very low-level, but I have come to the conclusion I must stop doing everything the hard way. So, I...
8
by: aravandor | last post by:
I'm a C++ beginner coming from Java and VB.Net I know that this is an elementary question, but I'm stumped. I'm trying to make a coordinate class to store 2 Dimensional points and a Rectangle...
7
by: john | last post by:
On my form i have a message box called txtItemDesc that displays the french phrase qualité Père Noël. Now then when i run this code on that text box: Dim chrArr() As Char chrArr =...
17
by: Jon Slaughter | last post by:
I'm having a little trouble understanding what the slicing problem is. In B.S.'s C++ PL3rdEd he says "Becayse the Employee copy functions do not know anything about Managers, only the Employee...
7
by: hierro | last post by:
I have a list of functions (all with suffix T). For each one, I need to implement the following: FunctionT() { if (some_condition) { // do some conversion first FunctionW(); // then do some...
0
by: Lokkju | last post by:
I am pretty much lost here - I am trying to create a managed c++ wrapper for this dll, so that I can use it from c#/vb.net, however, it does not conform to any standard style of coding I have seen....
0
by: VB Programmer | last post by:
Simple ASP.NET 1 site. Opened solution in beta 2 of 2.0. Ran thru conversion wizard and it states: "Conversion Complete. There were some errors during conversion." I view the conversion log...
16
by: Dany | last post by:
Our web service was working fine until we installed .net Framework 1.1 service pack 1. Uninstalling SP1 is not an option because our largest customer says service packs marked as "critical" by...
39
by: Martin Jørgensen | last post by:
Hi, I'm relatively new with C-programming and even though I've read about pointers and arrays many times, it's a topic that is a little confusing to me - at least at this moment: ---- 1)...
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: 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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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,...
0
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...
0
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...

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.