Custom printing
Last Post 01/30/2007 9:48 AM by Lee Sykes. 6 Replies.
Author Messages
Bill Mason
Nuke Newbie
Nuke Newbie
Posts:8


--
11/29/2006 12:30 PM

    Hi All,

    I seem to remember an article or video on creating custom printing for modules, I believe using CSS.  I have been through each issue and tutorial and now I cannot find it.  Does anyone remember seing this?

    Thanks,

    Bill Mason

    Lee Sykes
    DNN Creative Staff
    Nuke Master VI
    Nuke Master VI
    Posts:4945


    --
    11/29/2006 3:29 PM
    Hi Bill,

    I have not yet created a tutorial on custom print in CSS. But, you should be able to work it out from the 3pane simple red leaf skin and the print.css file.

    The javascript in the skin.htm file calls the print.css file which then sets the layout for the print page.

    If you think a tutorial on this would be useful, let me know and I will put one together for you.

    Thanks,

    Lee
    Lee Sykes
    Site Administrator
    Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

    Twitter: www.twitter.com/DNNCreative

    Lee Sykes's Facebook Profile
    Bill Mason
    Nuke Newbie
    Nuke Newbie
    Posts:8


    --
    11/29/2006 3:41 PM

    Hi Lee,

    Wow.  Thanks for the generous offer.  Let me take at look at the resources you pointed out and if I get stuck, I post back here.

    Thanks,

    Bill

    John Braga
    Nuke Active Member
    Nuke Active Member
    Posts:34


    --
    01/27/2007 4:22 AM

    Hi Lee

    I would welcome some guidance on printing.  I have not found any DNN documentation for the print button that appears on most modules (but that does not surprise me, as I think the official DNN documentation is very poor).

    I have a module that displays a paged gridview.  When the user presses print, I would like to print the full unpaged gridview, and have not yet looked into how to set about it.

    best wishes

    John B

     

    lynn
    Nuke Master
    Nuke Master
    Posts:276


    --
    01/27/2007 5:15 AM
    Hello John B

    Perhaps in your css file you might try creating specific classes for the purpose.

    Thanks
    Lynn
    John Braga
    Nuke Active Member
    Nuke Active Member
    Posts:34


    --
    01/28/2007 10:51 AM
    Surely a css file cannot dictate whether a gridview is paged or not?

    John B
    Lee Sykes
    DNN Creative Staff
    Nuke Master VI
    Nuke Master VI
    Posts:4945


    --
    01/30/2007 9:48 AM
    hi John,

    You're printing needs are slightly more complex than a standard DotNetNuke module.

    I would probably approach this in two stages:

    1) add a link to the top of your grid that states "print friendly view" - which then displays the unpaged grid view

    2) when a user clicks on print in the unpaged grid  view, you can then control this using CSS - you could get some hints on this by looking at the code for the simple red leaf skin.

    there will probably be a method for tying in your module with the print module icon which you may find is a better method than using a link to a print friendly view. - for this however you will need to explore the DotNetNuke core code as I have not implemented this method before.

    Hope this helps,
    Lee Sykes
    Site Administrator
    Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

    Twitter: www.twitter.com/DNNCreative

    Lee Sykes's Facebook Profile


    ---