BI Publisher header and detail section like invoice. There is a space on first page and none on the rest of pages - bi-publisher

Trying to do an invoice template using word. Everything looks good but the first page has a blank line after the header section and the other pages do not.
Basically i am doing
<? call-template:header?>
<? start:body?>
<? call-template:detail ?>
<? end-body ?>
footer stuff
The output pdf file looks good but the blank line on the first page is bothering me. I've tried the inner table method (having the real table with details within a one cell table) but it doesn't work either.
Can you help?

Related

Crystal Reports not creating new page after

I am working with Crystal Reports XI and have a pretty basic report. It is formatted like this:
Report Header
Page Header
Group Header #1
Details
Group Footer #1
Report Footer
Page Footer
My issue is that the Details area is pulling records from a database and depending there can be enough records associated with the Group Header #1 that the report will span multiple pages. This appears to work except that the report after (this is a mass mailer type of a report for individuals) does not start on a new page, causing print issues.
The Report Footer and Page Footer both have New Page After turned on (they are grayed out and I cannot alter them. The Details (in the Section Expert) has Free-Form Placement and Keep Together turned on only.
Thoughts?
Try to turn on the group header new page before with a formula to skip the first group.
Right click the "group header #1"
Click "section expert"
Click "new page before" formula workshp button (on the right of the checkbox)
Write the formula
groupnumber > 1
This will put each group in a separate page. The formula is important to avoid a blank initial page.

How to give link to Second (Particular) page from all pages in MS Word?

I have Table of Contents on Page number two and want to give link to same page from all pages of my document, If I created link in footer, it is not click-able.
So what should be done?
The following seems to work here:
Insert a bookmark on the page you want to link to (or use a bookmark that is already there). Let's say it is called "xyz"
Insert a text box in the footer.
Insert the following field code
{ PAGEREF xyz \h }
where the { } are the special field code braces that you can insert using ctrl-F9 on Windows Word.
Strange!
Only checked in Word 2010.

Print web page with original look

I want to achieve print functionality such that user can print out the web form and use it as paper form for the same purpose. Of course I do not need all the web page header and footer to be printed, just content of a div which take most of the page. I did play around with media print css and menage print result to look almost as original page. But the I tried to print it in another browser(Chrome) and it is all messed. (before I tried Mozilla).
For the web form I user css framework Twitter Bootstrap and I had to override its css (in print media) for almost each element individually to get some normal look in the print result.
My question is is there some way (framework/plugin) to print just what you see on the page, maybe as an image or something?
Any other suggestions are welcome.
Thanks.
If you are familiar with PHP you can try the PHP class files of TCPDF or those of FPDF.
Or there is also dompdf which renders HTML to PDF, but this will include more than just the information of one div.
And for further info here is a post on Stack where users are discussing which they think is best.

Jquery mobile limit to role page?

I'm developing my first application in jqm.
I have a unique index.php containing a lot of blocks of code like this
<div data-role="page" id="scheda7">
<div data-role="header" class="ui-bar-b">
<h1><?php $qry_nomeScheda7 = "select * from nomeScheda where id='7'"; $rs_nomeScheda7 = connetti($qry_nomeScheda7); $valore7 = mysql_fetch_array($rs_nomeScheda7); echo $valore7[nomeScheda];
?></h1>
</div>
<?php include 'scheda7.php'; ?>
<?php include 'footer.php'; ?>
</div>
one for each page of my application.
For each page I have a separate schedaN.php containing its own html and javascript. Now what happens to me is that some page load correctly, while others remain stuck to the loading (the spin wheel keep turn and turning). The pages not loading are not ever the same... Maybe I only move a page up or down in the index and it begin to work or stop to.
So I was guessing: I noticed that pages seems to work while they are less than seven... There's some limit to the number of data role page you can include in a application??
Instead of doing multiple database queries like this one,
<?php $qry_nomeScheda7 = "select * from nomeScheda where id='7'"; $rs_nomeScheda7 = connetti($qry_nomeScheda7); $valore7 = mysql_fetch_array($rs_nomeScheda7); echo $valore7[nomeScheda];?>
I'd suggest to execute only one database query which fetches all the info you need. This should save execution time and probably solve your problem.
Problem solved! There was some html line that was not supposed to be there.
The interesting part is that the page containing the error (a div left unclosed) was correctly loaded, while the next was not. So i learned that when there's no javascript or php error is a good idea to use some validation tool of html.
In this specific case, i used http://validator.w3.org/#validate_by_uri+with_options to validate html and got where the error was. Thank you all and hope this is useful to someone.

datatable displaying differently on two views

I have a Rails app based the railsapp project "Startup Prelaunch Signup Site"
I am trying to replicate a datatable from the prebuilt pages onto one I wrote and the datatable on my page is missing the pagination and search box that appear on the prebuilt page.
Although the haml declaration for the datatable is identical in the two views, the html it produces is different. The html from my view is missing the following;
<div id="DataTables_Table_0_wrapper" class="dataTables_wrapper form-inline" role="grid">
<div class="row">
Can anyone point me in the right direction?
I can post more code if it would help.
A friend found the mistake in my code that was causing this problem. For the benefit
anyone having a similar problem here is what fixed it;
The datatable in my view had 7 th (table headers) defined and only 5 tds (table data). Even though the table displayed ok, except for the extra headers, it confused the tableData java script enough to not work.

Resources