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.0Pass Module Parameters to SkinPass Module Parameters to Skin's print view
Previous
 
Next
New Post
3/5/2007 3:51 PM
 

Hi,

When I use a skin with the print option enabled, the module's own parameters are not passed to the new window, and the module doesn't display. I've looked at the IActionable chapter in the "Professional DNN ASP.NET Portals" book but am not sure whether this is helpful for what I want to do. As far as I can see, IActionable lets me define my own module menu options, but not override the skin's menu option.

To check, I've added an additional action to my module:

 

but that's not really what I need; I don't want another "menu" item, I want the default print option to transfer my parameters also. Is there a way to accomplish this, or do I need to create a custom ModuleAction skin object to handle the print option?

Thanks, I'll appreciate any inputs.

Dim action3 As New DotNetNuke.Entities.Modules.Actions.ModuleAction(GetNextActionID(), "PrintModule", "recordid=256&returntabid=114", "", "print.gif", "", False, DotNetNuke.Security.SecurityAccessLevel.View, True, True)
 
New Post
3/15/2007 2:52 PM
 
Hi,

I've had a similar problem but here's how I got around it. Ugly coding I guess, but it works around the problem.

Instead of using the Print menu item, add a button to the module, say btnPrint.
Add a label to the page and set it to visible=false. Call it btnItemID.

Now, when the module loads normally, set the lblItemID.text = ItemID

In the btnPrint_click event, dynamically build the url to the printpage and include the params you need, ie the value from lblItemID.text.

In the page_load event, check for your items in the QueryString.
If they're there, you can grab 'em and the module can load BUT it will load in the print window!
Don't forget to set the btnPrint.visible = false if loading into the print window else it'll show up there.

As I said, it is ugly but my modules interact with each other through IMC as I set an ItemID property in the OnModuleCommunication method then call OnLoad method. When I tried to load the modules for printing, the ItemID property could not be carried through so I devised this ugly fix until I get/see a better idea.

Lastly, I added a PrintSkin to the Skins folder and a ContainerSkin to the Containers folder and thus it prints in the format I want too.

Hope that helps a bit...

Lindsay
 
New Post
3/15/2007 3:27 PM
 
I had this problem long time ago. I posted it, but it never showed up. what i did was to look how the print works.
it pass some parameters to the querystring everytime you want to print, and thous parameters are constant(some how). Try to include you own parameter manually and see the output.

If it works put the parameter directly in your code for printing....
It works for me...

chipset Arowolo
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Pass Module Parameters to SkinPass Module Parameters to Skin's print 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