Quantcast
Channel: West Wind Message Board Messages
Viewing all articles
Browse latest Browse all 10393

Re: Best Practices: Using ShowCursor for Reports

$
0
0
Re: Best Practices: Using ShowCursor for Reports
Web Connection
Re: Best Practices: Using ShowCursor for Reports
May. 29, 2013
05:08 pm
3SO10R3CNShow this entire thread in new window
Gratar Image based on email address
From:Rick Strahl
To:Jeff Barefoot

You can completely remove the grid lines with td { border: none } and table { border: none } in the styling. Not sure if that's what you really want - even for print some lines are useful.

wwShowCursor is really old and deprecated. I recommend you take a look at the HtmlGrid in wwHtmlHelpers.prg which provides much more flexible formatting options with full control each column and row.

+++ Rick ---




I have a WC app, and I'm trying to create some fairly simple reports that the user can pull up onscreen, or print as needed. I can manipulate the underlying cursor as needed to get the needed data, but when I send the report to a printer the rightmost 30% or so gets cut off. I've tried adjusting cTableWidth but it doesn't appear to have any impact, so I'm wondering if I have some other setting that is conflicting.

Is there a way to remove the grid lines? Any suggestions for settings for cTableWidth, cTableBorder, cCellPadding, cCellSpacing, or anything else that might make for a tidy, simple report? Any special considerations when printing reports that may extend for many pages, even though they are have only a handful of columns?

Thanks!

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
I figured this out, so thought I'd document it here:

1 - I was forcing divider lines (strings of dashes) into my cursor. Those seemed to be forcing the cursors to print off the page.

2 - I found that I could fine-tune the cursor by adding HTML tags within the document: [<style type="text/css">@media print {.noprint {display: none;}}TD {font-size: 8pt}{table border:"1"}</style>]

3 - I wasn't able to completely remove the grid lines, but I'm able to control the formatting to the point of being able to have a nicely formatted report without it just looking like a grid screen-shot.

Once I took care of these two items the cursors began displaying as expected, and now print properly.

Jeff



Rick Strahl
West Wind Technologies


from Maui, Hawaii

Making waves on the Web

West Wind Web Monitor

Viewing all articles
Browse latest Browse all 10393

Trending Articles