473,386 Members | 1,924 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.

Excel ActiveXObject : adding an image to a cell?

Hey all,

I can't seem to find an answer to this anywhere. Essentially I am using
IE & jscript to build a excel page using IE's "new
ActiveXObject("Excel.Application")". Add a string value to a cell is
easy:

sheetObj.Cell(x,y).Value = someString

No problem - but of course, my boss wants to see the company logo at
the top of every dynamically generated excel page, which I have no idea
how to do? Looked all over google without any good leads; tried
variations of ..Value = new Image(..) and I even tried using html as a
string value (apparently I've gotten desperate). What I really need is
a godamn API for the
ActiveXObject("Excel.Application"), which I've had trouble finding as
well. Can anyone help?

Christian

Apr 27 '06 #1
2 6098
ca********@gmail.com wrote:
[...] my boss wants to see the company logo at the top of every
dynamically generated excel page, which I have no idea how to do?
Looked all over google without any good leads; tried variations
of ..Value = new Image(..) and I even tried using html as a string
value (apparently I've gotten desperate).
Obviously. This was not going to work, ever. Excel is not HTML.
What I really need is a godamn API for the
ActiveXObject("Excel.Application"), which I've had trouble finding as
well. Can anyone help?


You already have the API (Application Programming Interface). You are
looking for a documentation of it, which can be easily found[1] at MSDN:

<URL:http://msdn.microsoft.com/library/en-us/odc_2003_ta/html/odc_ancexcel.asp>

In particular, you are looking for

<URL:http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbaxl11/html/xlobjShape1_HV05204994.asp>
HTH

PointedEars
___________
[1]
<URL:http://search.msdn.microsoft.com/search/default.aspx?siteId=0&tab=0&query=Excel.Applicatio n>
--
When you have eliminated all which is impossible, then
whatever remains, however improbable, must be the truth.
-- Sherlock Holmes in Sir Arthur Conan Doyle's
"The Blanched Soldier"

Apr 28 '06 #2
"Obviously. This was not going to work, ever. Excel is not HTML. "

- thus the "apparently I've gotten desperate" part of the message.
Thanks for correcting me on the API achro... gosh I'm sure stupid

May 1 '06 #3

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

Similar topics

2
by: Mansi | last post by:
I'm trying to automate Excel 2003 from Visual C# .Net. Is it possible to export an picture/image file from c# to excel? If so, how do you do this? Are there any code examples available? ...
4
by: mscir | last post by:
When I try to use the DOM to add an image to a table cell, it works in IE but not in Netscape. If I look at the innerHTML of the table in Netscape I see %5C in place of "\" in the image file path,...
3
by: OhMyGaw | last post by:
Hello Excel/automation Gurus, I am working on an application where I have to keep a centralized database of all macros distributed to user and save the changes back on a nightly basis back to...
2
by: Manny Chohan | last post by:
i am trying to add image to table cell. Here is my code.. System.Web.UI.WebControls.Image img = new System.Web.UI.WebControls.Image(); img.ImageUrl="http://localhost/Lhw/Images/i.p.new.gif";...
3
by: Shawn | last post by:
Hi. I have an asp:table, like this: <asp:Table runat="server" id="Table1"> <asp:TableRow Runat="server"> <asp:TableCell id="tc1" Runat="server">&nbsp;</asp:TableCell> <asp:TableCell id="tc2"...
7
by: Adam Maltby | last post by:
Hi, I am adding an new picbox and animated gif to it at runtime Dim img As Image = Image.FromFile(Application.StartupPath & "\animation.gif") With pic_Wait .Location = New Point(300, 250)...
3
by: techie | last post by:
Hi, I am using an UltraGrid of Infragistics Net Advantage 2005 in my application. I need to add an image to all cells under a column.I need to have image and text in the same cell. Can any one...
1
by: silentbuddha | last post by:
Hi, I am currently having some difficulties with this sunroutine that I created. My 2 dimensional array is empty. - This code is within my UserForm1 - this sub is suppose to first select the...
5
by: dave816 | last post by:
Sorry for the Excel question in an Access forum...................I don't see an Excel forum and there's probably a reason for that but figured I'd give this a shot anyway. Again sorry, delete if...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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?
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
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
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.