I have to export some images to excel, To center the images I use a table and colspan=4 to merge four columns of excel file,
when I write a text to excel file it is easily get centered, but for image I tried every possible scenarios, like img algin="center" or
and even put it inside a table and , but the result is the same.
any ideas?
Thanks in advance
The problem is that images are not bounded to the cell grid in Excel, they float.
You can't center them even using the Excel interface.
Related
Im making a report with Stimulsoft Designer, and I place a lot of information. Now I need to place a data band for showing a list of phones in a certain space, but the only position on which the data band appears is on top (after header) and full width. That's not what I need, I need something like this:
I tried to create a "Data" square, and other options shown there, but it doesn't work. What I'am missing?
The solution is to add a panel with that shape, and insert the databand inside the panel
I'm trying to create a BIRT report. The code and query side of it works just fine, but the display is rather wonky.
There's one column whose text contents are rather long, and instead of showing some text and allowing scrolling of the text (which is the behavior I'd like there), it simply shows up as a very vertically long text block; kinda ruins the report a bit. I've also tried setting the width on the column, but no dice there either. Any ideas?
Also, as an aside, how do I get the table's columns to have grid lines? I can do that on the rows, but I can't seem to figure out how to do that for the columns. If anyone has insight into that issue, it'd be appreciated.
Here's a screenshot of the issue
Here's my BIRT report XML, without headers and footers in order reduce characters
I think there is no way to use a scrollable view element inside your report, because the output by the default html-emitter is completely static (I would like to see a different answer if this should be wrong).
To your second Question about how to add a border to a column. Click into the cell of your table, click on "Border" inside the "Properties Editor" and select the borders you like to use. This should be repreated for all cells where you want to use the borders, because this configuration is not applied for a whole column but just for one cell. If you want a border for the whole column you need to setup the border for every cell in the column.
If you have already a data cell inside your table cell, you can use the outline view to select the table cell instead of the data cell:
I'm trying to build a genealogy tree with HTML tables (and nested tables). It should, ultimately be editable by the user using contenteditable, and the nested cells should resize accordingly.
However, to my mystery, when I edit the cells, they resize far too fast and too much. Why so?
The outer table keeps everything under control, so sizes are fixed using
table-layout:fixed;
The nested table cells, on the other hand are only specified via
margin:auto;
Every cell's width is set individually via percentage, and it looks perfect before editing. Not so after.
DEMO here http://jsfiddle.net/KtB6C/
Try editing the Father or Mother cell.
I know this is a "fix-my-code" problem, but any help is appreciated.
Here is what I got:
a XHTML file transformed with Oxygen XML from XML and XSL files
10 divs right at the beginning of the body, hidden with CSS
after that: a table with 100 trs
Looks like this:
<div id="div1" style="display:none;">content1</div>
<div id="div2" style="display:none;">content2</div>
<table id="table1">
<tr><td>conent3</td></tr>
<tr><td>conent4</td></tr>
<tr><td>conent5</td></tr>
</table>
Now I'm working on two projects.
1) CSS screen. Which is fine. The divs are shown in a fancybox when clicking links inside the table.
2) CSS print. Which is the reason I am asking here. Convert the XHTML to PDF using Prince XML - okay. In the print version, the hidden divs should show up on a specific position, e.g.:
1. TABLE ROW
2. TABLE ROW
3. TABLE ROW
1. DIV
4. TABLE ROW
5. TABLE ROW
2. DIV
My dream would be to determine the position after how many trs a div should show up, anywhere in the documents (XHTML or CSS).
Maybe you've got an idea how to solve. Thank you. bearli
Easiest solution is to split the table into multiple tables and put the divs between them, or include each div in a separate row inside the table where you want it to appear.
If you don't want to change your document markup, you can always use JavaScript to do it dynamically when the PDF is generated, just remember to run Prince with the --javascript option to enable script execution, or apply an external script file with --script=FILE.js.
I want to display a table and a image side by side. i.e Left side the image and right side the table. I want this because the image is the reference image for the data present in the table. I want that output in pdf. So I am using QTextDocument, QTextCursor and QPrinter to get the output in pdf. So how it is possible to display the image and table in QtextDocument i.e within a single page of the pdf? I am using Qt 4.5.3 and Windows Xp. Any pointers regarding this are welcome.
Hi i managed to do that. Just adding the snippet if someone might need that..
QTextImageFormat m_ReferenceImageFormat;
m_ReferenceImageFormat.setWidth(525);
m_ReferenceImageFormat.setHeight(450);
m_ReferenceImageFormat.setName(imageFileName);
m_pReportCursor->insertImage(m_ReferenceImageFormat,QTextFrameFormat::FloatRight);
QTextTableFormat m_TableFormat;
m_TableFormat.setBorderStyle(QTextFrameFormat::BorderStyle_Solid);
m_TableFormat.setAlignment(Qt::AlignTop);
m_TableFormat.setWidth(400);
m_pReportCursor->insertTable(5,2,m_TableFormat);
// Table implementation goes here..
Just make sure that the image and table are not overlapping. Adjust width and height accordingly. It should work fine. Thats all.