Where are the Print Button's

rated by 0 users
This post has 6 Replies | 1 Follower

Not Ranked
Posts 7
Points 80
Douglas Irion Posted: Mon, Feb 27 2006 11:21 AM

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

 

  • | Post Points: 20
Top 25 Contributor
Male
Posts 1,496
Points 102,655
CS Developers
rhoward replied on Mon, Feb 27 2006 11:24 AM

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

 

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



Thanks, Rob
  • | Post Points: 50
Not Ranked
Posts 7
Points 80

Doh! I did notice the stylesheets but didnt realize they integrated into the browsers print functionality. Thanks for the quick reply!!

 

  • | Post Points: 5
Top 500 Contributor
Posts 44
Points 555
Pira replied on Thu, Aug 17 2006 2:20 AM

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.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidCastException: Specified cast is not valid.

Source Error:

Line 156:
Line 157: postRepeater = (Repeater)FindControl( "PostRepeater" );
Line 158: pager = (ForumPager)FindControl( "Pager" );
Line 159: pager2 = (ForumPager) FindControl("Pager2"Wink;
Line 160: rateThread = (RatePost)FindControl( "RateThread" );

Source File: C:\share\CS_2.0.60217.2664_SDK\src\forums\Controls\Views\PostFlatView.cs    Line: 158

Stack Trace:

[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
Pira
Top 500 Contributor
Posts 44
Points 555
Pira replied on Sun, Sep 10 2006 7:54 PM

Hi Howard!

 

What do you mean "build-in print button in the browser J " please explain.... :(

 

 

Pira
Top 100 Contributor
Posts 209
Points 3,160

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.

Eric Falsken Engineer, db4objects Blog: http://www.EveryLittleThing.net/blog/ Community: developer.db4o.com Administrator
  • | Post Points: 20
Top 500 Contributor
Posts 44
Points 555
Pira replied on Wed, Sep 13 2006 2:42 AM

Thanks Eric for your help Smile

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... ?

Pira
Page 1 of 1 (7 items) | RSS
Powered by Community Server (Commercial Edition), by Telligent Systems

Copyright© 2008 Telligent Systems Inc. All rights reserved
CommunityServer.com  •  Telligent.com