31-Aug-06 09:10 AM
Hi



I'm not sure if this is possible, but hoping that someone out there can



give some guidance.



I'm using a reporting services ReportViewer object to view reports via



an ASP.NET application. I've just upgraded to SP2 to make use of the



print functionality.



However a requirement i have is that a particular report can be printed



only once. Is there a way that i can tap into the Print Report button



event so that i can detect if the print button has been clicked?



Or alternatively is there a way i can invoke the print method from



within ASP.NET aplication?



Or maybe there is some other way to do this.....all suggestions



welcome!!!!!!!



Many many thanks in advance



Cheers!!!!
 
31-Aug-06 12:03 PM
There is no way to do this that I know of. And what counts as once? What if



they open up IE again and view the report again? How would you know that it



is the first or second time?



--



Bruce Loehle-Conger



MVP SQL Server Reporting Services
 
31-Aug-06 10:19 AM
Bruce



They should be able to view it as many times as they want, therefore



coming out of IE and back in again would be fine. Essentially once



someone had clicked on the print button it would go back to the DB to



say that the report has been printed, thus locking it for anyone else.



If this sounds bizarre, its due a requirement from an external company



that only one print out should exist. There is a 'duplicate' function



which gives the user access to print the same report again, however the



word 'duplicate' would be splashed over to signify it is not the



original



So are you saying there's no way for me to detect the print function



has been invoked?



Thanks

SQL Server - It is a client side active X control.

31-Aug-06 12:32 PM
It is a client side active X control. If you were to detect it, it would



have to be via script and I just don't know. From RS perspective it is just



another rendering request for the report. What about exporting to PDF?



Unless you turn off exporting to PDF (which cannot be done by report, only



for the complete server) then all the user has to do is export to PDF and



print (which is what my users used to do before they adding printing).



--



Bruce Loehle-Conger



MVP SQL Server Reporting Services
help
1 Could not create constraint. See previous errors. I can see the constraint exists in Object Explorer. If I attempt to Delete it from Object Explorer the message I get is: The Default 'LOCApp_Created_df' does not exist on the server Stored procedure (1) e r can you post DDL for the table? USE [ALIS] GO / * ** ** * Object: Table [mc].[LOCApp] Script Date: 12 / 19 / 2008 16:16:03 * ** ** * / SET ANSI_NULLS ON GO at the wrong command. That could be explained with that you have refreshed the tree view since you dropped the default. Another thing, in you script you have this: SET ANSI_PADDING OFF GO In SSMS, under Tools-> Option-> SQL Server Object Explorer-> Scripting, find the option "Generate SET ANSI_PADDING commands". It's the second in the at the wrong command. That could be explained with that you have refreshed the tree view since you dropped the default. Another thing, in you script you have this: SET ANSI_PADDING OFF GO In SSMS, under Tools-> Option-> SQL Server Object Explorer-> Scripting, find the option "Generate SET ANSI_PADDING commands". It's the second in the at the wrong command. That could be explained with that you have refreshed the tree view since you dropped the default. Another thing, in you script you have this: SET ANSI_PADDING
Underlying Sql returning data; View not returning anything at all ?! SQL Server Hello all, I have a view in a Sql Server database that is not returning any records at all. However the underlying Sql returns 3, 004 records. I've deleted the view then rebuilt it but still find that "select * from ref_counterparty" returns an empty record set whereas running the underly sql in the view returns data. Any help would be appreciated. Rob SQL Server Programming Discussions SQL Server (1) Excel (1) CREATE VIEW (1) DROP VIEW (1) VBA (1) EmployeeID (1) Database (1) FirstName (1) I would start by prefixing your view and selects with the owner name. Here is a basic example. . . . . . . . . . . . . . . . . note the "dbo." prefix correct database. GO IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'vwEmployee') begin DROP VIEW dbo.vwEmployee end GO CREATE VIEW dbo.vwEmployee AS select EmployeeID, LastName, FirstName from dbo
part of every database, db1 included, is it not? So, is the problem that the view, sys.databases, is implemented using a filter on owner_sid that fails? But, how? Under which case of P2, public is added to the user token, and public is granted the view any database permission. So, I am still puzzled. - - Lars T Siemens Healthcare, Norway Lars Tafjord (lars(dot)tafjord(at)live(dot)no) writes: sys.databases is a view, but the physical information is stored in the master dataase. Furthermore VIEW ANY DATABASE is a server permission. The owner of P. EXECUTE AS in a procedure do something with Q. Is that possible? By the way, why did you say "Furthermore, VIEW ANY DATABASE is a server permission."? - - Lars T Siemens Healthcare, Norway Lars Tafjord (lars(dot only see your own process. To see other processes, you need the server-level permission VIEW SERVER STATE. I would suggest that it is best to sign the procedure that need last statement fails with error 4606: Granted or revoked privilege IMPERSONATE is not compatible with object. Why? - - Lars T Siemens Healthcare, Norway Lars Tafjord (lars(dot)tafjord(at)live(dot)no sure if you need to impersonate a login at all. Maybe all you need is VIEW ANY DATABASE. Anyway, here is an adapted version of the bulk-copy example in my
Here's the short explanation: This is an app for a marketing division that runs print ads for projects. Each project has one or more print ads. Each print ad needs to be published more than once. Projects table keeps project info and each project is identified with its ProjectID PrintAds table identifies print ads with ProjectID and PrintAdID field. In this table, NumberOfPublishings field tells us how many times each Print Ad needs to be published. Publishings table registers each print ad and where and when it was published. I need a stored procedure that gives me a list of print ads that need to be published. In other words, if a print ad has already been published to meet the # of publishings requirement, I don't need
Printing in server-side ReportViewer-Control fails SQL Server Error Message: Unable to load client print control Hello, I get above mentioned error message when I click the print icon in the Report, but only if I have its own aspx page server-side found some sites on the Internet that deal with the problem ( "Unable to load client print control "), however, it resulted not into a solution. The reason for this behavior is apparently Distributed (1) Kill (1) Bit (1) RSClientPrint (1) Report (1) ReportViewer (1) Hi The Client Print Control is an Active X object. You need to be able to download and install the control. In Internet Explorer \ Tools of these. . . http: / / geekswithblogs.net / smyers / archive / 2008 / 10 / 30 / ssrs-unable-to-load-client-print-control.aspx http: / / blogs.msdn.com / mariae / archive / 2008 / 12 / 11 / unable-to-load-client-print-control-error-in-reporting-services-2005-after-installing-kb956391.aspx http: / / www.kodyaz.com / articles run my custom web app, I still get the error message "unable to load client-print control". Only when I call the page from the ReportServer directly, I get the message