Any good tips on having a section of a view made printable in a cross browser manner? I''ll have a table with data and formating (data-dependent background colors, tiny images before and after text data in cells) which is at the core of my application. Users, after working with their data through my application will want a printed copy to carry away with them. (its basically a scheduling application). The print button on Firefox seems to want to default to text only with different font etc. It seems to me that what I almost want is an entire div including the table turned into an image (rasterized?) and put a print image button? Some sort of direction to a browser to print a portion of a page including all formating would also work (I''d imagine I''d need to test for browser type and give varrying instructions). Sorry if this question isn''t necessarily a rails question(if there is no uniquely rails solution). -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
You can define a print-only stylesheet. That''s the absolute simplest way. You can then use that stylesheet to hide sections of the page you don''t want to be printed. Look into that via the Google. :) On Jan 3, 2008 6:15 PM, Tom Norian <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > Any good tips on having a section of a view made printable in a cross > browser manner? > > I''ll have a table with data and formating (data-dependent background > colors, tiny images before and after text data in cells) which is at the > core of my application. Users, after working with their data through > my application will want a printed copy to carry away with them. (its > basically a scheduling application). > > The print button on Firefox seems to want to default to text only with > different font etc. It seems to me that what I almost want is an entire > div including the table turned into an image (rasterized?) and put a > print image button? Some sort of direction to a browser to print a > portion of a page including all formating would also work (I''d imagine > I''d need to test for browser type and give varrying instructions). > > Sorry if this question isn''t necessarily a rails question(if there is no > uniquely rails solution). > -- > Posted via http://www.ruby-forum.com/. > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Brian Hogan wrote:> You can define a print-only stylesheet. That''s the absolute simplest > way. > You can then use that stylesheet to hide sections of the page you don''t > want > to be printed. Look into that via the Google. :)Thanks for pointing me in the right direction. I really need to find a comprehensive and well written CSS book as the online stuff I''ve found really is spotty. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Check out some of the archives at alistapart.com as they have wonderful CSS and web design articles, including some on printing. On Jan 3, 2008 9:18 PM, Tom Norian <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > Brian Hogan wrote: > > You can define a print-only stylesheet. That''s the absolute simplest > > way. > > You can then use that stylesheet to hide sections of the page you don''t > > want > > to be printed. Look into that via the Google. :) > > Thanks for pointing me in the right direction. > > I really need to find a comprehensive and well written CSS book as the > online stuff I''ve found really is spotty. > > > > -- > Posted via http://www.ruby-forum.com/. > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Here''s a list of some good CSS books: http://www.buildingwebapps.com/books/list?category=33 Michael Slater www.BuildingWebApps.com On Jan 3, 7:27 pm, "Brian Hogan" <bpho...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Check out some of the archives at alistapart.com as they have wonderful CSS > and web design articles, including some on printing. > > On Jan 3, 2008 9:18 PM, Tom Norian <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote: > > > > > Brian Hogan wrote: > > > You can define a print-only stylesheet. That''s the absolute simplest > > > way. > > > You can then use that stylesheet to hide sections of the page you don''t > > > want > > > to be printed. Look into that via the Google. :) > > > Thanks for pointing me in the right direction. > > > I really need to find a comprehensive and well written CSS book as the > > online stuff I''ve found really is spotty. > > > -- > > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---