CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 printing report made using web report builder

Print topic Send  topic

Author Message
ddmcse

Posts: 24
Posted: 02/12/2008, 3:56 AM

using web report builder i have a reoprt with a printable version link , printing out works great and fits the page perfectly using Firefox.

using IE the report doesn't fit on the page and runs off the right side edge .
aside from telling my customer to switch to FF any suggestions ?

_________________
http://www.buyrfidlabels.com
View profile  Send private message
DonP
Posted: 02/12/2008, 8:52 AM

If there is any width formatting, such as a table with the width
specified, IE seems to have trouble with it. On my own site's printable
version, I strip out all widths before printing and it seems to print
perfectly in all browsers.

Don (DonP)

ddmcse wrote:
> using web report builder i have a reoprt with a printable version link ,
> printing out works great and fits the page perfectly using Firefox.
>
> using IE the report doesn't fit on the page and runs off the right side edge .
>
> aside from telling my customer to switch to FF any suggestions ?
>
> _________________
> http://www.buyrfidlabels.com
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.yessoftware.com/
>
ddmcse

Posts: 24
Posted: 02/12/2008, 11:49 AM

ok that sounds like a great idea and of course it sounds simple .
can you point me towards the code where the widths are to delete ? {Report_Print_Src} i dont get where that comes from or is it a template
thanks
DD

_________________
http://www.buyrfidlabels.com
View profile  Send private message
DonP
Posted: 02/12/2008, 1:03 PM

Of course without knowing your page structure it's impossible to tell
you how to do it so I'll tell you how I do it. First of all, it will
never work if you use the browser's own Print button. You need to add
your own to the page, then do the custom coding there to make it work.

Mine needs to be able to print a diverse number of pages that each get
their data from different sources so rather than having separate Print
functions for each, what I did was to add <!--print--> remarks in the
template file at the top of the area to be printed below the <body> tag
and another at the bottom of the page somewhere above the </body> tag. A
Print Page button was added at the top above the first print remark that
uses an object to grab the contents between the tags and strips out any
forms, width tags and hyperlinks, then insert the results into a field
in a temporary table as HTML. The Print Page script then grabs the
field's contents, adds the header and body tags back in but with no body
width, and a tiny JavaScript prompts to print it and the table is
dropped again.

It's actually easier than it sounds but the code is a bit much to post here.

Don (DonP)

ddmcse wrote:
> using web report builder i have a reoprt with a printable version link ,
> printing out works great and fits the page perfectly using Firefox.
>
> using IE the report doesn't fit on the page and runs off the right side edge .
>
> aside from telling my customer to switch to FF any suggestions ?
>
> _________________
> http://www.buyrfidlabels.com
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.yessoftware.com/
>
DonB
Posted: 02/12/2008, 1:20 PM

Seems to me being sure to dimension things as a percentage width (e.g. 100%)
would resolve the problem. That's assuming it's merely a case of the width
of 'x' pixels not fitting on a print layout field that's 'y' pixels smaller
due to an IE bug - and that the basic problem now is just that you have
hardwired the width to an exact number of pixels. SO instead of having to
be concerned with the value of 'x-y', it's simply a percentage of however
many pixels IE wants to let you use. Naturally, if that y discrepancy is
large then there's the danger of lines wrapping in the printed page where
they aren't wrapped on-screen. But I suspect it's not and there would be
enough room to shrink the layout a couple percent when it's printed.

--
DonB



"ddmcse" <ddmcse@forum.codecharge> wrote in message
news:547b1f82d5a2b6@news.codecharge.com...
> ok that sounds like a great idea and of course it sounds simple .
> can you point me towards the code where the widths are to delete ?
> {Report_Print_Src} i dont get where that comes from or is it a template
> thanks
> DD
>
> _________________
> http://www.buyrfidlabels.com
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.yessoftware.com/
>

ddmcse

Posts: 24
Posted: 02/12/2008, 5:04 PM

i did read that somewhere this means making the grid/table properties 100 % instead of blank ?
right now mine is blank with a listbox highlighting Pixels .
well i dont think i can make it worse so what the heck, i'll try that

thanks again
_________________
http://www.buyrfidlabels.com
View profile  Send private message
ddmcse

Posts: 24
Posted: 02/13/2008, 12:44 PM

problem is only with IE 6 , 7 prints fine

100% didn't fix it
_________________
http://www.buyrfidlabels.com
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.