Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Jan 25, 2013 01:30 AM by sapator
Jan 24, 2013 01:11 AM|LINK
Hi.I use windows.print and i have set the header of a gridview to a grayscale image (with css).When i see it on the page it looks ok.When i print it using microsoft office document imaging the grayscale header look only white.
I just wanted to ask if that is a problem with microsoft office document imaging because i currently don't have or cannot find a regular printer to test.
Hmm.Changed to mdi colors but still no grayscale.Getting worried now..
Jan 24, 2013 03:02 AM|LINK
you should have use inline css in order to reflect style changes in
This is test div
write all CSS inline, external CSS will not reflect in your printed document
Jan 24, 2013 03:34 AM|LINK
Hi.Yes but gridview HeaderStyle only has a cssclass that i can bind.
<asp:Label ID="Labelgah" runat="server" Text="Name"></asp:Label></HeaderTemplate>
<span class="gvlabelspan"><asp:Label ID="Labelgvname" runat="server" Width="110px" style="padding-left:1px; position: relative" Text='<%# Eval("sname") %>'></asp:Label></span>
<HeaderStyle CssClass="imagegray" /> <!-- css for header here -->
Also if i use: <HeaderStyle BackColor="Gray"/>
and print, it iwll just show white(i have also tried with turning iexplorer to select background images in advanced options).
Jan 24, 2013 05:09 AM|LINK
It is the setting of Browser, that it ignore your background color while printing
For Internet Explorer: - 'Tools' menu - 'Internet Options...' menu item - 'Advanaced' tab - 'Print background colors and images' checkbox
For Mozilla: - 'File' menu - 'Page Setup...' menu item - 'Print Background (colours & images)' checkbox
After these settings your browser allow you to print background color.
It is a printer option your users could change, but you absolutely can't count on your users knowing or doing that. You cannot control this from the web side (as far as I know).
Jan 25, 2013 01:30 AM|LINK
Hi.Yes you cannot control it over web, only possibly with an ActiveX but we won't go into that.
Problem is than even with the background color checked on iexplorer, i still see no color on the gridview header when printing with office document imaging