Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

DotNetNuke Marketplace
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
WebHostForAsp.net
 


  Sponsors  

Meet Our Sponsors

MaximumASP
SourceGear - Tools for Developers
.: CounterSoft :.
telerik
ExactTarget email software solutions
Merak Mail Server
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  Need help with printing
Previous Previous
 
Next Next
New Post 3/6/2008 1:28 AM
Unresolved
User is offline onishiro
134 posts
9th Ranked


Need help with printing 

I have a module in which I have a button, when I press the button I want to open a new windows showing some data ready to be printed without  the dotnetnuke skin.

I want to do it calling a edit control of my module in a new window without the dotnetnuke skin, but I don't know how to do it.

Any help or alternatives?

Thanks in advance.

 

 
New Post 3/6/2008 8:23 AM
User is offline ech01
613 posts
7th Ranked




Re: Need help with printing 

'custom parameters to send back to the page
Dim params As String = "&date=" & _date & "&loc=" & _loc & "&mode=print&"
imgPrinter.OnClientClick = "window.open('" & NavigateURL(TabId, "view", "mid=" & ModuleId.ToString, params & "&SkinSrc=" & QueryStringEncode("[G]" & Skins.SkinInfo.RootSkin & "/" & glbHostSkinFolder & "/" & "No Skin"), "ContainerSrc=" & QueryStringEncode("[G]" & Skins.SkinInfo.RootContainer & "/" & glbHostSkinFolder & "/" & "No Container"), "dnnprintmode=true") & "');"


www.blackhawksurfaces.com | www.nlsales.com | www.midwestfilmandvideo.com
 
New Post 3/6/2008 11:31 AM
User is offline Sebastian Leupold
13566 posts
www.deutschnetnuke.de
1st Ranked












Re: Need help with printing 

usually the print option should be part of the skin, the would release the module developer from any action to be taken.

for better options, I suggest to have a look at free TemplatePrint SkinObject from dnnjungle.vmasanas.net


Sebastian Leupold

DeutschNetNuke dnnWerk - The DotNetNuke Experts German DotNetNuke User-Group

DotNetNuke Project UserDefinedTable
DotNetNuke Project Release Tracker
 
New Post 4/16/2008 9:38 AM
User is offline Phil Biggs
52 posts
10th Ranked


Really simple Print Page solution 
Modified By Phil Biggs  on 4/16/2008 12:39:30 PM)

 

After reading some posts on the subject, I came up with this really simple solution for adding a print page link to a skin:

 

 

<a class="printlink" target="window2" href="/default.aspx?tabid=<%= PortalSettings.ActiveTab.TabID %>&SkinSrc=[G]Skins\MySkin\PrinterFriendly&ContainerSrc=[G]Containers\MyContainer\PrinterFriendly">Print this page >
&nbsp;&nbsp<img id="" border="0" align="middle" src="<%= SkinPath %>printer_small.gif" alt="Print this page" title="Print this page" /></a>

It's pretty much self explanatory. You get the current TabID from <%= PortalSettings.ActiveTab.TabID %> and use this to form a URL that includes SkinSrc and ContainerSrc parameters. Point these parameters to your print friendly skin and container files (less the .ascx extension). Include a printer icon in the hyperlink if you so desire. Use [G] for a host skin and [L] for a site level skin.

Easy.

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  Need help with printing
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


The Forerunner Network
The Forerunner Network consists of a group of Dynamic Website & Interactive Membership Portal hosting services that are managed by Forerunner Communications. Our services span a wide range of markets and enable individuals, organizations and businesses to build and manage dynamic, interactive portals and websites.
The Forerunner Network
ZLDNN.COM
We provide commercial DotNetNuke modules.
www.zldnn.com
DNNhost Scandinavia
SUPER fast QuadCore DELL servers, MSSQL servers, DotNetPanel, daily backup, Check out our customers websites
DNNhost.dk

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP