Go Back   MarcomCentral (PTI) and FusionPro User Communities > Software-Related Talk > The JavaScript Library > Tables & Charts

Notices

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old March 12th, 2015, 02:41 PM
sandig@customprinters.com sandig@customprinters.com is offline
Regular Contributor
 
Join Date: Feb 2010
Posts: 62
Default Table with a background image

Is there a way to create a table with an image placed in the background? If so, can the image be sized to best fit the table dimensions? This table can have a variable amount of text, hence the height of the table can change.

I tried this code below, using the ShadeContent attribute to place an inline graphic. The resulting table had a black background, the image did not appear.

What is the correct code to make the background image appear?

var table1 = new FPTable;
table1.AddColumns(23000);

{
table1.AddRows(1);
table1.Rows[0].Cells[0].Margins = new FPTableMargins;
table1.Rows[0].Cells[0].HStraddle = 0;
table1.Rows[0].Cells[0].Margins.Top=150;
table1.Rows[0].Cells[0].Margins.Bottom=150;
table1.Rows[0].Cells[0].Margins.Left=200;
table1.Rows[0].Cells[0].Margins.Right=200;
table1.Rows[0].Cells[0].ShadeColor = '<graphic file=bboxPict.jpg>';
table1.Rows[0].Cells[0].ShadePct = 100;
table1.Rows[0].Cells[0].Content = bbox;
table1.Rows[0].Cells[0].TextColor="White";
}

return table1.MakeTags();
Reply With Quote
Reply

Tags
table

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 05:00 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
(c) 2011, PTI Marketing Technologies™, Inc.