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.0Print the contents of a text box inside a modulePrint the contents of a text box inside a module
Previous
 
Next
New Post
7/29/2008 2:32 PM
 

Hello,

I am finally starting to re-do all of my old modules from 2.1.2 and get them ready for 4.8.4.  I can't seem to figure out the new way of printing stuff though.    For example, here is the old way that I printed the contents of a text box that resides inside of my custom module....not the best way, but it worked:

Session("PrintingTicket") = "<pre>" & TicketView.Text & "</pre>"

Dim objPortalModule As PortalModuleControl = Container.GetPortalModuleControl(Me)

Dim strURL As String = "ticketwindow.aspx"

If strURL.IndexOf("?tabid") = -1 Then

strURL += "?tabid=" & objPortalModule.TabId.ToString

End If

If strURL.IndexOf("&mid") = -1 Then

strURL += "&mid=" & objPortalModule.ModuleId.ToString

End If

strURL += "&SkinType=G&SkinName=_default&SkinSrc=printmodule.ascx"

strURL += "&ContainerType=G&ContainerName=_default&ContainerSrc=notitle.ascx"

Response.Write("<script>window.open('" & strURL & "','_blank')</script>")

 

I want to do something similar in 4.8.4, but I can't seem to find anywhere that explains the parameters, etc.  Can anyone point me in the right direction?

 
New Post
7/29/2008 3:48 PM
 

To start with ... I would disable friendly urls ... until you can revamp this request.  that may help...   

To change Friendly URL processing look under Host Settings>Advanced Settings. 

Paul.

 
New Post
7/31/2008 2:29 PM
 

look like the old way to print will still work because you are just opening the url in a new window.

The proble, for you maybe that you need to specify the url.

try building the url using navigateUrl

DotNetNuke.Common.Globals.NavigateURL(PortalSettings.ActiveTab.TabID, "Select", "mid=" + ModuleId.ToString())
• PortalSettings.ActiveTab.TabID sets the Tab ID of the module
• "Select" is the Control Key for the page. The key was set in the dnn’s “Edit Module Control” page that we did in above step.
• "mid=" + ModuleId.ToString() specify the Module ID.

have fun

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Print the contents of a text box inside a modulePrint the contents of a text box inside a module


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