Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0How do I keep the style of a parent page when using Printable viewHow do I keep the style of a parent page when using Printable view
Previous
 
Next
New Post
7/17/2008 1:17 PM
 

Hi All,

I'm new to DNN and I have an issue where I have a couple of HTMLModules that have "Allow Print". The issue is, when the new page (for printing) opens, the parent page loses the style sheet settings. The parent page's formatting changes from right align to center align and the fonts are different too.

Any help is greatly appreciated.

Thanks,

Edward

 
New Post
7/18/2008 3:44 AM
 

I suggest to use free TemplatePrint SkinObject from dnnjungle.vmasanas.net, it allows to use custom skin and containers for printing and preserves all parameters. 


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
7/22/2008 2:06 PM
 

Sebastian,

I implemented the TemplatePrint SkinObject. It preserves all the parameters on the parent page. My next issue is that in the print page (a new page opens), I have all my menus. I'm sure it is because of my container. I looked at the sample from dnnjungle TemplatePring but is shows me how to set it up using html. I'm using ascx. In my container ascx file I have a registered the TemplatePrint.ascx as follow:

@ Register TagPrefix="dnn" TagName="TEMPLATEPRINT" Src="~/DesktopModules/VMasanas - TemplatePrint/TemplatePrint.ascx"

and in my <table> tag I have:

<dnn:TEMPLATEPRINT runat="server" id="dnnACTIONBUTTON3" CommandName="PrintModule.Action" DisplayIcon="True" DisplayLink="False"

I did create a printcontainer and a printskin. How do I tell DNN to use my print ascx files when the user clicks the printer icon?

Lastly, if you know of any webcasts or documentation that shows how a developer can create containers and skins (not creating html file but ascx file), I'd appreciate it.

Thanks for your time and help,
Edward

 
New Post
7/22/2008 2:43 PM
Accepted Answer 

Edvard,

you need a print skin without menu etc, it should contain only the elements to be used for printing, e.g. a logo and copyright notice, as well as a single contentPane.

templateprint call, you should add the following attributes: Template="PrintSkin" Container="Printcontainer", having Printskin.ascx in your skin folder and printcontainer.ascx in your container folder.

To learn about skinning, grab the skinning doc from Resources > Documentation > Download folder about and check out www.dnncreatice.com


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
7/22/2008 9:53 PM
 

Sebastian,
The attributes is what I was missing to link my printskin and printcontainer files. Thank You for your time, it is working now.

Thanks,
Edward

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0How do I keep the style of a parent page when using Printable viewHow do I keep the style of a parent page when using Printable view


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out