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

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesAdding a Print Icon/Action to a ControlAdding a Print Icon/Action to a Control
Previous
 
Next
New Post
4/29/2010 4:50 PM
 

It has to be possible, I just can't find the answer.
I am looking for a way to add the print icon to a control that I created. After the user enters some data, I would like to allow them to print the data that was entered, the problem is that the data will be displayed in a different user control than the origional.
I have attempted to add iActionable to the code and then in the property I added:

Actions.Add(GetNextActionID, Localization.GetString("ViewData", LocalResourceFile), Entities.Modules.Actions.ModuleActionType.PrintModule)

That didn't work

I also, to the top of the control I attempted to add:

<%@ Register TagPrefix="dnn" TagName="PRINTMODULE" src="~/Admin/Containers/PrintModule.ascx" %>

And in the body I added:

<dnn:PRINTMODULE runat="server" id="ActionButton" CommandName="PrintModule.Action" DisplayIcon="True" DisplayLink="False"/>

And still no luck.
Does anyone have another idea?
 

 
New Post
4/30/2010 4:02 AM
 
you need to pass proper parameters to the print SKO. Try free TemplatePrint SKO from dnnjungle.vmasanas.com, we added support for additional parameter years ago and it works well for us.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
4/30/2010 7:06 AM
 

Here's what I recently did to provide a per item print command (from an image button) in a datagrid item command handler:

Case "Print"
   Dim params As New Generic.List(Of String)
   params.Add("mid=" & ModuleId.ToString)
   params.Add("feedbackid=" & feedbackID.ToString)
   params.Add("dnnprintmode=true")
   params.Add("SkinSrc=" & DotNetNuke.Common.Globals.QueryStringEncode((("[G]" & SkinController.RootSkin) & "/_default/No Skin")))
   params.Add("ContainerSrc=" & DotNetNuke.Common.Globals.QueryStringEncode((("[G]" & SkinController.RootContainer) & "/_default/No Container")))
   If MyConfiguration.PrintAction = Configuration.PrintActions.InPlace Then
        params.Add("returnurl=" & HttpUtility.UrlEncode(Request.RawUrl))
        Response.Redirect(NavigateURL("print", params.ToArray), True)
   Else
        UrlUtils.OpenNewWindow(Page, Me.GetType(), NavigateURL("print", params.ToArray))
   End If

The Print.ascx control generates a custom view of one item of data and inherits from PortalModuleBase.


Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
New Post
5/1/2010 8:28 AM
 

Thank you so much that is what I needed William. It works like a charm!!!!

 
New Post
8/12/2010 4:26 PM
 
I dont think dnnjungle is active any more.   I tried (for almost 3 hours) to install the TemplatePrint module and incorporate it into a container... with no success.   I don't have time to learn DNN 5.x skinning,  nor $80 to download a video.   Maybe if the TemplatePrint instructions were updated to support DNN 5.x,  I could get it to work.   I don't know how to add the [TEMPLATEPRINT] object.   I tried to add the following code to my container.ascx  (replacing dnnACTIONBUTTON3). 

<td valign="middle" style="padding: 0px 5px 0px 0px; white-space: nowrap;">
                        <object id="TEMPLATEPRINT" codetype="dotnetnuke/server" codebase="../../../../DesktopModules/vmasanas - templateprint/TemplatePrint.ascx">
                        <param name="Template" value = "PrintSkin" />
                        <param name="Container" value="PrintContainer" />
                        <param name="ToolTip" value = "Print This!" />
                        <param name="Text" value = "Printer friendly version" />
                       
                        </object></td>


Please help,  as I rely on the query parameters to generate my reports.
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesAdding a Print Icon/Action to a ControlAdding a Print Icon/Action to a Control


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