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.0No Print from Edit ?No Print from Edit ?
Previous
 
Next
New Post
8/11/2007 6:32 AM
 

try using TemplatePrint from dnnjungle.vmasanas.net


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
8/11/2007 6:55 AM
 

TemplatePrint from dnnjungle.vmasanas.net dosn't provide printing from a module edit/detail page either.

 
New Post
8/13/2007 8:20 AM
 

Bump again.

There must be some programatic way to add a link to an edit page to give the same functionality as the module print button is there not?

 
New Post
8/13/2007 9:54 AM
 

it's quite simple actually .. lets just examine what DNN does when you click a print button for a module. It just adds some parameters to the URL:

  • mid
  • dnnprintmode
  • SkinSrc
  • ContainerSrc

Using these parameters its quite easy to create your own print view (just use navigateurl to build the url)

so for instance, the print url for one of the text/html modules of a default install portal looks like this:

http://localhost/dotnetnuke_2/Home/tabid/36/mid/347/dnnprintmode/true/Default.aspx?SkinSrc=%5bG%5dSkins%2f_default%2fNo+Skin&ContainerSrc=%5bG%5dContainers%2f_default%2fNo+Container 
decoded that is: 
http://localhost/455/Home/tabid/36/mid/347/dnnprintmode/true/Default.aspx?SkinSrc=[G]Skins/_default/No Skin&ContainerSrc=[G]Containers/_default/No Container

which will show the print view for that module.

If you want to show the printview for the editpage of the same module, you'd just use this url:

http://localhost/dotnetnuke_2/Home/tabid/36/ctl/Edit/mid/347/dnnprintmode/true/Default.aspx?SkinSrc=%5bG%5dSkins%2f_default%2fNo+Skin&ContainerSrc=%5bG%5dContainers%2f_default%2fNo+Container
decoded that is: 
http://localhost/dotnetnuke_2/Home/tabid/36/ctl/Edit/mid/347/dnnprintmode/true/Default.aspx?SkinSrc=[G]Skins/_default/No Skin&ContainerSrc=[G]Containers/_default/No Container

It should be clear that the only difference between the 2 examples is the extra "ctl=Edit" querystring variable in the url, causing the module to display the edit view. Of course you can add as many qs params in the url as you like....


Erik van Ballegoij, Former DNN Corp. Employee and DNN Expert

DNN Blog | Twitter: @erikvb | LinkedIn: Erik van Ballegoij on LinkedIn

 
New Post
8/13/2007 10:21 AM
 

Ok thanks.  I'll see if I can figure outthe code to build up those into the NavigateURL.  Just wasn't clear on where they came from or how to string it together.

So I would need to get the URL of the existing page, add the new parameters, and then use NavigateURL to open to a new window?

PS how do I determien the values for the following so as to build the URL?

  • mid
  • dnnprintmode
  • SkinSrc
  • ContainerSrc
  •  
    Previous
     
    Next
    HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0No Print from Edit ?No Print from Edit ?


    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