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

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Printing a modulePrinting a module
Previous
 
Next
New Post
9/11/2007 4:19 PM
 

I have developed a Report module. The Page URL has querystring like ID=1,2,.... Based on that, the module takes some inputs and displays report.

I have enabled Display Print for this module so the printer icon shows at the bottom of the module.

When I click on the icon, new page opens with nothing.

How can I get my module content to print?

Please help. Thanks.

 
New Post
9/12/2007 4:55 AM
 

have a look at free templatePrint SkinObject  from dnnjungle.vmasanas.net, which supports parameters for printing.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
9/14/2007 1:13 PM
 

leupold,

Thanks for the response. I'll take a look at it.

Actually, I have been trying to do the below coding with no success.

My module displays a report (in a div tag called 'divReport'). When I click on the Print button, I want to show the report on a different page from where it can be printed.

I put an asp button on my module with a PostBackURL to print.aspx. In print.aspx, I am trying to get the innerhtml of divReport, like this..........

Dim

parentpage As System.Web.UI.Page = Me.PreviousPage

 

divPrint.InnerHtml = div1.InnerHtml

Dim div1 As System.Web.UI.HtmlControls.HtmlGenericControl = parentpage.FindControl("divReport")

This works perfectly fine in my ASP.Net test project but when I call print.aspx from the DNN module, it gives an error saying the control tree doesnot match with the previous page.

When I try to print the IDs of the controls on the previous page, it just shows me these... skin , Doc , Type , Head , Body

How can I get the innerhtml of divReport?

Thanks for the help.

 

 

 

 
New Post
9/14/2007 2:39 PM
 

it depends, how your module is taking URL parameters into account.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
9/14/2007 4:40 PM
 

I am sorry, I didn't get you.

My module (is on default.aspx) takes one querystring 'ID' and generates a report based on that ID. The entire report HTML is in a div tag 'divReport' in the module.

In order to print this report, I want to open the report in another .aspx page (print.aspx) using PostBackURL on an asp button.

The problem is from Print.aspx, I cannot get the divReport in default.aspx using PreviousPage.

Any suggestions appreciated. I am able to achieve the above from ASP.Net

The errors that I am getting are:

1) Validation of viewstate MAC failed

2) Failed to load viewstate. The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request. For example, when adding controls dynamically, the controls added during a post-back must match the type and position of the controls added during the initial request.

Thanks.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Printing a modulePrinting 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