Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
We have a C# application that generates Excel files and includes data in the
files based upon the "account" that the user selects. It has worked fine, but now we want to insert an image (PNG file) into one of the cells. I am able to create a hyperlink to the picture, but the image itself does not appear on the Excel file (if I click on the cell it opens a browser window and displays the image by itself, but it does not appear in the Excel file). To create the Excel file, we create a large XML string formatted for Excel, then write it to Excel using System.Web.HttpContext (setting the ContentType = "application/vnd.ms-excel"). |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() how about using this?! myApplication.Rows.Worksheet.SetBackgroundPicture( @"C:\Documents and Settings\All Users\Documents\My Pictures\Sample Pictures\blue hills.jpg"); |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Thanks for the post, but we want to insert a small logo into one cell, not create a watermark on the sheet. "NA_AB" wrote: how about using this?! myApplication.Rows.Worksheet.SetBackgroundPicture( @"C:\Documents and Settings\All Users\Documents\My Pictures\Sample Pictures\blue hills.jpg"); |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Display image thumbnails in Excel cells | Excel Discussion (Misc queries) | |||
Excel To Display image from the Hyperlink | Excel Discussion (Misc queries) | |||
Excel 2003 - Image Display problems | Excel Programming | |||
VBA to display image on a form - image is defined in Range Name | Excel Programming | |||
HOW TO DISPLAY DIFFERENT IMAGES IN EXCEL USING IMAGE CONTROL? | Excel Programming |