473,651 Members | 2,551 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to disable print option of reports in jsp/java servlet

6 New Member
how to disable print option of reports in jsp/java servlet program .
if any body have any idea please help...
Feb 24 '14 #1
1 1358
2147483648
11 New Member
instead of enable u can use disable
i hope ur requirement suits,
Please reply if any mistake...

Expand|Select|Wrap|Line Numbers
  1. Imports System
  2. Imports System.Web.Services.Protocols
  3. Class Sample
  4.    Public Shared Sub Main()
  5. Dim rs As New ReportingService()
  6.       rs.Credentials = System.Net.CredentialCache.DefaultCredentials
  7.         Dim props(0) As [Property]
  8.         Dim setProp As New [Property]
  9.         setProp.Name = "EnableClientPrinting"
  10.         setProp.Value = “False” 
  11.         props(0) = setProp
  12.         Try
  13.             rs.SetSystemProperties(props)
  14.         Catch ex As System.Web.Services.Protocols.SoapException
  15.             Console.Write(ex.Detail.InnerXml)
  16.         Catch e as Exception
  17.             Console.Write(e.Message)
  18.         End Try
  19.     End Sub 'Main
  20. End Class 'Sample
  21.  
Feb 24 '14 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
2769
by: Phil Powell | last post by:
I have a PHP script that will be doing an @fopen file open command to a Java servlet, sending content via a query string. Problem is that it appears the Java servlet does not receive anything via its doGet() method and does no action. Has anyone here successfully ever sent anything via PHP to a Java servlet? Tell me what you are supposed to do, I thought it was this simple:
1
3466
by: Chris Morgan | last post by:
I'm trying to get php to run on my webserver as a Java Servlet, it works the first time but fails the second time and crashes the JVM with the following error: I have tried the latest versions of PHP 4. (release and dev) I would appreciate any help with this issue. -- Chris
6
3175
by: alan | last post by:
Dear all, I have a servlet problem. When I modified my java servlet program and then uploaded it to my web hosting server, then I start my web browser(I.E) to see the result. But it loaded the previous java servlet class program. After several days, these new classes file can be refreshed on browser. I want to know how I can make sure I always see the most update
1
4256
by: Vasil Slavov | last post by:
I apologize for the long email. I hope somebody will have time to read it and give some suggestions. I am working on a school project written in Python (using mod_python) and I need to upload a file to a java servlet. Here are the high-level instructions given by the servlet authors (the instructions are geared towards my C#/VB competition (and I really want to show them how cool Python is): - Open the file for reading.
3
8519
by: ppcguy | last post by:
i've got a progress bar that tracks a process running on a server (java servlet). i know i can refresh the page and update the status...but this results in the page being redrawn everytime. is there a way i can call a servlet from javascript and process the results directly - and in this case get the percent done and then update the progress bar.
1
11349
by: Kevin Schneider | last post by:
I am trying to POST an XML string to a Java servlet, but I am getting the error "The underlying connection was closed: An unexpected error occurred on a receive." when I try to get the response. Here's the relevant code (some of the names have been changed to protect the innocent): string lcUrl = "http://10.10.10.10:8503/Servlet"; HttpWebRequest loHttp = (HttpWebRequest) WebRequest.Create(lcUrl); loHttp.Method="POST";
1
2236
by: Vimala Sri | last post by:
Hello all, Have a great day. I wish to made interaction from c program in unix to the java servlet. That is i want to send a request from the Unix c program to the servlet. I have no idea on how to do this? The exact scenario is In the client there is a c program which send a request to the server (servlet in java) using poat method and should the response from the servlet. The...
4
2167
by: shivapadma | last post by:
1.I installed apache tomcat. 2.I have the following java servlet import java.io.*; import javax.sevlet.*; import javax.servlet.http.*; public class ser extends HttpServlet {
8
6072
by: inpuarg | last post by:
I 'm developing a c# (.net 2.0) windows forms application and in this application i want to connect to a java servlet page (HTTPS) (which is servlet 2.4 and which may be using Web Based SSO Sun Java System Access Manager but i 'm not sure), handle session management, get token, send data using post and get methods etc. I listened http traffic using Fiddler and sending the same messages from my application but browser based navigation is...
23
3028
by: tangara | last post by:
I have created a form where there's an option or 2 user types. All the data collected will be posted to my msaccess table. I have user java servlet to link the html to msaccess table so that user can view the table. Now I need to complete another task which is I can allow 1st user to assign 2nd user to any existing 1st users available on my database. I hope someone can advise me how to go about doing this.
0
8795
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8695
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8460
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7296
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6157
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4143
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2696
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1906
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1585
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.