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.0Define print part  of a module / module print button not showing the correct view Define print part of a module / module print button not showing the correct view
Previous
 
Next
New Post
4/23/2009 11:39 PM
 

The module I am developing is designed the way that all our features (employee list, employee profile birthday list, telephone list, job list, job profile, request name card form, preview name card, etc.) are in one module in different Asp:View elements and depending on the module settings the selected view is being displayed. Now this causes the following problem:

When the print button of the module is clicked, the print version of the Asp:View which is selected in the module settings is displayed, although a user already might have navigated to another view by some links. E.g. a user starts at the name card request form because in the module settings it is selected to display this Asp:View. When he submitted his name card request, another Asp:View for showing his name card preview will be set to visible. When he now wants to print his sample name card, the window with the print view will show the name card request from instead of the Asp:View where he navigated to.

I guess it is because in the page_load event I am retrieving the view to display from the module settings so the print function will always use that view to display being printed although I might already be on another view where a user usually will get with links and GET parameters. The print button is a JavaScript function and does obviously not include the GET paramters which are currently part of the URL but only the module tab/page so always the default view from the module settings is loaded. So how can we correct this?

Is it furthermore possible to define the area of the module to be displayed for printing? E.g. in the name card preview example, on the name card sample should be displayed, while some other information (date of request, status of workflow etc.) can be skipped.

 
New Post
4/24/2009 4:24 AM
 

 I suggest to use free TemplatePrint skin object from dnnjungle.vmasanas.com, which preserves all querystring parameters and will display correct item (and allows to skin print page).


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
4/24/2009 5:59 AM
 

As it is a Skin Object I guess it is used in the whole site skin so will apply to the whole site but not only my module. Or is it possible to use a Skin Object within a module, too?

 
New Post
4/24/2009 6:45 AM
 

the skin object needs to be part of the container, but there are only advantages (skinned print page) for any module providing the print option. check it out working on http://www.itb.de/Forschung/AbgeschlosseneProjekte.aspx (click a title to enter default view and print to see layouted print page),


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
4/28/2009 11:54 PM
 

Sebastian, I tried the skinobjects, let me describe my experiences, because it confuses me:

  1. Both skinobjects (PAGEPRINT and TEMPLATEPRINT) did not install correctly; while their files were installed in DesktopModules/Vendorname/Control.ascx, the module definition in host pointed just to Control.asx.
  2. So I changed the module definition from control.asx to DesktopModules/Vendorname/control.ascx and the TEMPLATEPRINT was working great!
  3. Today I turned on my testing machine again and built my lcoal test environment. I went to Host > Extensions to install another module and so an error message which comes from the TEMPLATEPRINT skinobject. I did not change anything, the module definition still points to the correct folder and file, and even un-installing and re-installing the Skinobject does not change anything. Error msg:

DotNetNuke.Services.Exceptions.ModuleLoadException: startIndex cannot be larger than length of string. Parameter name: startIndex ---> System.ArgumentOutOfRangeException: startIndex cannot be larger than length of string. Parameter name: startIndex at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy) at VMasanas.DNN.SkinObjects.TemplatePrint.TemplatePrint.Page_Load(Object sender, EventArgs e) --- End of inner exception stack trace ---

4. While in the module definitions and extensions it is showing that error message, all normal pages have the print button and the template print works fine, module settings do not show a print button but no error message.

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Define print part  of a module / module print button not showing the correct view Define print part of a module / module print button not showing the correct view


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