Forum


HomeHomePublicPublicTips and TricksTips and TricksReports and PrintingReports and Printing
Previous
 
Next
New Post
2/25/2014 9:38 AM
 

Hi

I've done some work with the Reports Module, using some of Aderson's excellent tips, as seen in the videos

However....

I've set the module as Printable but when I print I get a blank page and / or and error, 

Anyone got and Tips or Tricks

Thankd


Dave




 
New Post
2/25/2014 11:02 AM
 

Hi Dave,

It seems that currently the Print option is not working well - at least not as far as my testing went on a DNN 7 site.

So I found this post http://www.40fingers.net/WeblogsNews/...

It shows a way that you can build your own "Print" option inside a container file. I'm going to post that code here just in case that blog goes out of service at some point in the future:

            <% 
                Dim sPrint As String = "<a href='http://{0}/tabid/{1}/mid/{2}/dnnprintmode/true/Default.aspx?SkinSrc=[G]Skins%2f_default%2fNo+Skin&ContainerSrc=[G]Containers%2f_default%2fNo+Container' target='_blank'><img src='/images/action_print.gif' alt ='Print' /></a>"
       
                If Me.ModuleControl.ModuleContext.Configuration.DisplayPrint = True Then
                    Response.Write(String.Format(sPrint, PortalSettings.PortalAlias.HTTPAlias, PortalSettings.ActiveTab.TabID, Me.ModuleControl.ModuleContext.ModuleId))
                Else
                    Response.Write(String.Empty)
                End If
                %>

It worked well for me as you can see at:

http://www.dnntutorial.com/Reports (this is a temporary page for testing only)

Cheers,

Aderson

 
New Post
3/4/2014 7:02 AM
 

Hi Aderson

Ummmm

Does this have another issue if the report is generated from a passed parameter

See

http://www.inspirecc.com/library.aspx?Search=para

I have added the code to the default No Container.ascx

Thankd


Dave





 
New Post
3/4/2014 10:10 AM
 

Hi Dave,

You would have to capture the other parameter in the code and pass it through as well.

Cheers,

Aderson

 
Previous
 
Next
HomeHomePublicPublicTips and TricksTips and TricksReports and PrintingReports and Printing



Try FREE
30 days money back guaranteed