Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 ASP.NET
 Couple page long simple datagrid printing

Author  Topic 

Sitka
Aged Yak Warrior

571 Posts

Posted - 2005-02-28 : 16:51:12
Hi,

I have a simple webform that takes about 5 inputs(
two boundiing dates) and generates a datagrid from a proc.

When printing this simple datagrid from a webform in IE. If the datagrid has a length longer than a page the grid looses it's gridlines. Anybody know why? I'd consider paging to correct it but that makes the web view kind of counter productive.



I wish someone would start an Official XML Rant Thread.

robvolk
Most Valuable Yak

15732 Posts

Posted - 2005-02-28 : 20:00:26
Double-check your IE settings (Tools:Internet Options:Advanced) and see if the "Print Background Colors and Images" setting is checked. If that doesn't fix it, you may need to specify a border for your datagrid's cells. You can avoid this by adding the following to the <head> section of your ASPX page:

<style> td { border: 1px black solid; } </style>

If you already have a CSS style attached to the grid, you can affect the change there instead of as described above.
Go to Top of Page

Sitka
Aged Yak Warrior

571 Posts

Posted - 2005-03-01 : 09:22:25
Sorry for the delay in responding. Doing something totally unrelated this morning.
(As per usual, multi-type-tasking to the point of stasis.)
Should be able to try your suggestions this 'afters. (they sound WICKED)

Thanks.

woops...Can't leave without an editorial.
"Who prints stuff anyways."

I wish someone would start an Official XML Rant Thread.
Go to Top of Page
   

- Advertisement -