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 Print OptionAdding Print Option
Previous
 
Next
New Post
10/19/2012 9:51 AM
 

I have a situation where a ControlPage that appears, a user needs to print. However I don't want any of the skin to appear. I created a "Print" button on the ControlPage that performs the following code:

With arrParameters
   .Add("dnnprintmode=true")
   .Add("SkinSrc=" & DotNetNuke.Common.Globals.QueryStringEncode((("[G]" & SkinController.RootSkin) & "/_default/No Skin")))
   .Add("ContainerSrc=" & DotNetNuke.Common.Globals.QueryStringEncode((("[G]" & SkinController.RootContainer) & "/_default/No Container")))
   .Add("HidePrintButton=True")
End With

The page appears without the Skin & Containers however I have 2 problems:
1) I get the following error:
Message: 'dnn' is undefined
Line: 1
Char: 132
Code: 0
URI: http://dnndevelopment/js/dnncore.js?c...

2) The HTML Table that originally shows as 100% width (ie: Spans across the page) shrinks down in size (width)...The source of the page shows that Width="100%" however...the table is left justified on the page and the width does not stretch across the page.

Any ideas?

-Ben


Ben Santiago, MCP Certified & A+ Certified
Programmer Analyst
(SQL, FoxPro, VB, VB.Net, Java, HTML, ASP, JSP, VBS, Cognos ReportNet)
 
New Post
10/19/2012 4:46 PM
 
My guess here is that your design/content is dependent upon a modification or override of default.css that exists within the skin of your site. You might want to check the css for your skin. This would be for the table issue. As for the other issue I'm not sure of the reason for that. What version of DNN?

-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
New Post
10/22/2012 7:53 AM
 

Mitchel,

Thank you for the reply. Unfortunatly, I am using the default skin for DNN. So it's definitly not because of a modified CSS.
I am using version 06.02.03

-Ben


Ben Santiago, MCP Certified & A+ Certified
Programmer Analyst
(SQL, FoxPro, VB, VB.Net, Java, HTML, ASP, JSP, VBS, Cognos ReportNet)
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesAdding Print OptionAdding Print Option


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