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.
Thanks.
Edit:
Hmm.Changed to mdi colors but still no grayscale.Getting worried now..
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).
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).
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
sapator
Member
395 Points
502 Posts
window.print() printing grayscale microsoft office document imaging
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.
Thanks.
Edit:
Hmm.Changed to mdi colors but still no grayscale.Getting worried now..
Usman Amir
Participant
790 Points
138 Posts
Re: window.print() printing grayscale microsoft office document imaging
Jan 24, 2013 03:02 AM|LINK
you should have use inline css in order to reflect style changes in
like this
<div style="background-color:grey"> This is test div </div>write all CSS inline, external CSS will not reflect in your printed document
sapator
Member
395 Points
502 Posts
Re: window.print() printing grayscale microsoft office document imaging
Jan 24, 2013 03:34 AM|LINK
Hi.Yes but gridview HeaderStyle only has a cssclass that i can bind.
<asp:TemplateField> <HeaderTemplate> <asp:Label ID="Labelgah" runat="server" Text="Name"></asp:Label></HeaderTemplate> <ItemTemplate> <div class="mapgvname"> <span class="gvlabelspan"><asp:Label ID="Labelgvname" runat="server" Width="110px" style="padding-left:1px; position: relative" Text='<%# Eval("sname") %>'></asp:Label></span> </div> </ItemTemplate> <HeaderStyle CssClass="imagegray" /> <!-- css for header here --> </asp:TemplateField>Edit:
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).
Usman Amir
Participant
790 Points
138 Posts
Re: window.print() printing grayscale microsoft office document imaging
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).
sapator
Member
395 Points
502 Posts
Re: window.print() printing grayscale microsoft office document imaging
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