My users would like to print the threads, posts, etc, but there are no Print Buttons. Using CS 2.0 final release. Is there an adminstrative option i need to set or something? Ive looked in the skin files and found non of them referance the print button:
<CSD:ForumImageButton runat="server" ButtonType="Reply" id="ReplyButton" />
<CSD:ForumImageButton runat="server" ButtonType="Quote" id="QuoteButton" />
<CSD:ForumImageButton runat="server" ButtonType="Delete" id="DeleteButton" />
<CSD:ForumImageButton runat="server" ButtonType="Edit" id="EditButton" />
"So I added it myself"
<CSD:ForumImageButton runat="server" ButtonType="Print" id="PrintButton" />
The button now shows up but has errors. Seems this should be standard functionality and I should not have to add this to the skin files. What am i missing. Help.. Thanks
There are print stylesheets now, so you can use the build-in print button in the browser J
From: iriond [mailto:forums@communityserver.org] Sent: Monday, February 27, 2006 11:21 AM To: Rob Howard Subject: [CS.Forums] Where are the Print Button's
Doh! I did notice the stylesheets but didnt realize they integrated into the browsers print functionality. Thanks for the quick reply!!
Hi
when I use the following code for Print button, I face the error ... why? please anyone give a solution ASAP
the code <CSD:ForumImageButton runat="server" ButtonType="Print" id="PrintButton" />
the error
Specified cast is not valid.
Line 156:Line 157: postRepeater = (Repeater)FindControl( "PostRepeater" );Line 158: pager = (ForumPager)FindControl( "Pager" );Line 159: pager2 = (ForumPager) FindControl("Pager2"Line 160: rateThread = (RatePost)FindControl( "RateThread" );
[InvalidCastException: Specified cast is not valid.] CommunityServer.Discussions.Controls.PostFlatView.AttachChildControls() in C:\share\CS_2.0.60217.2664_SDK\src\forums\Controls\Views\PostFlatView.cs:158 CommunityServer.Controls.TemplatedWebControl.CreateChildControls() in C:\share\CS_2.0.60217.2664_SDK\src\Controls\BaseClasses\TemplatedWebControl.cs:342 System.Web.UI.Control.EnsureChildControls() +100 CommunityServer.Controls.TemplatedWebControl.DataBind() in C:\share\CS_2.0.60217.2664_SDK\src\Controls\BaseClasses\TemplatedWebControl.cs:38 CommunityServer.Discussions.Controls.PostFlatView.DataBind() in C:\share\CS_2.0.60217.2664_SDK\src\forums\Controls\Views\PostFlatView.cs:225 CommunityServer.Discussions.Controls.PostFlatView.OnLoad(EventArgs e) in C:\share\CS_2.0.60217.2664_SDK\src\forums\Controls\Views\PostFlatView.cs:121 System.Web.UI.Control.LoadRecursive() +35 System.Web.UI.Control.LoadRecursive() +98 System.Web.UI.Control.LoadRecursive() +98 System.Web.UI.Page.ProcessRequestMain() +750
Hi Howard!
What do you mean "build-in print button in the browser J " please explain.... :(
Your web browser has a print button. It's usually up next to the Back or Home or Reload buttons.
Worst case, press Ctrl-P. It will print.
Thanks Eric for your help
but, i was wondering the usage of "View-PostFlatViewPrint.ascx" file, coz thats looks like a print preview page of "View-PostFlatView.ascx" .. do you have any idea, how to use this preview file... ?
Copyright© 2008 Telligent Systems Inc. All rights reserved CommunityServer.com • Telligent.com