Print Reports on Client Default Printer
Hi All,
I am using Oracle Reports 11g Release 2 (11.1.2.2.0).
I want to print oracle reports from ADF which is JEE base framework on client default printer. I am send just plane url to generate report to report server. In Oracle forms we have option to get job id of report, but in plain url i am not seeing any thing like that. In forms in am generating PDF wait untill job is finished and then send pdf to client printer by using job id.
How it will be possible by using plain URL send to report server or any other idea to achieve this task.
Thanks in advance.
If you offer a PDF to the end user, they usually know what to do with it. OTOH, if you wish to provide software to facilitate the local printing, you might launch an application on the client side that accesses the JNLP API's PrintService - that can be done in a sandboxed application.
A signed application might access the normal J2SE based print services. Though I heard that Sun had decided to make printing a 'prompt on first attempt' deal - even for sandboxed apps., from 1.5 plus (or was it 1.6 plus?).
It would be a serious security bug if a web site could print on the client printer, without trust or active involvement from the end user.
Similar Messages
-
How to print report on client default printer ?
I develop web application. I use jdev 10.1.3.4.0 . I can print report in PDF format.
My Problem
I can't print report on client default printer. when Client run application and print. Report is printed at server default printer
How can I do.
_My source code for print to PDF format._
FacesContext context = FacesContext.getCurrentInstance();
response = (HttpServletResponse)context.getExternalContext().getResponse();
String urlSchema = "jdbc:oracle:thin:@localhost:1521:ORCL";
String schemaName = "hr";
String schemaPass = "hr;
reportPath = "D:\\Project\\Reports";
Class.forName("oracle.jdbc.driver.OracleDriver");
conn = DriverManager.getConnection(urlSchema, schemaName, schemaPass);
reportPath = reportPath.endsWith("\\") ? reportPath : (reportPath + "\\");
input = new File(reportPath + reportName + ".jasper");
reportParameters.put("SUBREPORT_DIR", reportPath);
reportParameters.put("P_IMAGE_PATH", reportPath);
jasperPrint = JasperFillManager.fillReport(input.getPath(), reportParameters, conn);
response.setContentType("application/pdf");
response.addHeader("Content-Disposition", "attachment;filename=" + reportNameOutput + ".pdf");
OutputStream outputStream = response.getOutputStream();
JasperExportManager.exportReportToPdfStream(jasperPrint, outputStream);
outputStream.flush();
outputStream.close();
conn.close();{code}
_My source code for print to *printer*._
{code}FacesContext context = FacesContext.getCurrentInstance();
response = (HttpServletResponse)context.getExternalContext().getResponse();
String urlSchema = "jdbc:oracle:thin:@localhost:1521:ORCL";
String schemaName = "hr";
String schemaPass = "hr;
reportPath = "D:\\Project\\Reports";
Class.forName("oracle.jdbc.driver.OracleDriver");
conn = DriverManager.getConnection(urlSchema, schemaName, schemaPass);
reportPath = reportPath.endsWith("\\") ? reportPath : (reportPath + "\\");
input = new File(reportPath + reportName + ".jasper");
reportParameters.put("SUBREPORT_DIR", reportPath);
reportParameters.put("P_IMAGE_PATH", reportPath);
jasperPrint = JasperFillManager.fillReport(input.getPath(), reportParameters, conn);
JasperPrintManager.printReport(jasperPrint, false);
conn.close();Edited by: jaae251 on Jun 18, 2009 2:29 AMIf you offer a PDF to the end user, they usually know what to do with it. OTOH, if you wish to provide software to facilitate the local printing, you might launch an application on the client side that accesses the JNLP API's PrintService - that can be done in a sandboxed application.
A signed application might access the normal J2SE based print services. Though I heard that Sun had decided to make printing a 'prompt on first attempt' deal - even for sandboxed apps., from 1.5 plus (or was it 1.6 plus?).
It would be a serious security bug if a web site could print on the client printer, without trust or active involvement from the end user. -
Print report from client machine without showing in screen
Hi guys!!
I m using (forms10g+ 10gAS). I want to Print report from client machine without showing in the screen/monitor.
Currently I m generating report in pdf format. From the pdf I m printing the document.
But my requirements is to print directly to the printer without showing preview
Thanks in advance
MokaremMaybe this will help:
http://forums.oracle.com/forums/thread.jspa?messageID=1209371�
Gary -
Oracle9i Reports in Client/Server environment
Hi
Is it possible to use Oracle9i Reports in Client/Server environment. I tried to use reports against older databases (7.3.4 and 8.1.7) and they work from Repots Builder but it is nor clear is it possible to set clinet/server environment for them.
RegardsYou can certainly still run reports using the rwrun executable.
However, there is no longer any runtime UI (i.e., you can't run to Screen or Preview any more, only to File, Printer, etc.)
Regards,
Danny -
Generating a report for clients that are not registered
Hi - Hopefully someone can assist. We are looking to generate a report in SCCM 2012 that will tell us if a client is properly registered, and most recent scan.
I can't seem to find a generic report for this task, so does anyone know if one exists - or how to create a custom one?
Thanks!what means "properly registered" in your eyes? To me, if it was able to communicate at all--heartbeat; that means it had to have registered. But maybe you have a different criterion.
So I think what you want is simply something like...
select s.Netbios_Name0, max(disc.AgentTime) as LastHeartbeat
from v_r_system s
left join v_agentDiscoveries disc on s.resourceid=disc.resourceid
and disc.AgentName = 'Heartbeat Discovery'
Group by s.Netbios_Name0
order by LastHeartbeat desc
where the most recent heartbeat at the top; and boxes with no heartbeat reported will be null at the bottom. If you don't want to even "see" the boxes that have never reported a heartbeat successfully, then don't left join, use just Join
You could also use v_r_system_valid, instead of v_r_system. As you can tell by the name, _valid means that CM itself has determined those are valid clients; so that might be what you think of as "properly registered".
It all boils down to what means "properly registered" to you, and what you mean by "recent scan". is a recent scan a heartbeat? a software update scan? hardware inventory reported? and what means "recent". the sample above is
reporting on anything and everything regardless of date.
As for default reports, you're saying that the default reports in "Client Status" don't fit your criteria?
Standardize. Simplify. Automate. -
Excel output of report on client machine
excel output report on client machine
hello
i am running report from app server, output is excel file...
using following URL
web.show_document(rpt_url ||'&report='||rpt_path||'batch_idcards_print_excel.rdf&desformat=spreadsheet&destype=file&desname=c:\batch.xls','_blank');
----this stores the excel file at app server under c:\
now i want to save it on client machine... how can i do that ?
from one forum, i got help , so i changed URL as below
web.show_document(rpt_url ||'&report='||rpt_path||'batch_idcards_print_excel.rdf&desformat=spreadsheet&mimetype=application/msexcel&destype=FILE&title=batch.xls','_blank');
when i open report, no window opens for saving file...a new window opens and gets closed itself immediately...
wht is the problem?... client machine having MS office excel 2003...Dear
Could you, please, tell us what you've done to solve this issue? We're facing the same problem, and until now we couldn't figure out what is exactly happening.
Thanks in advance for any help. -
Access denied report App\Client SDK
Server crashed, therefore I reinstalled Crystal Reports 9 & Crystal Enterprise 9 and attempting to rebuild the ASP pages which pass report parameters. The error received is:
Technical Information (for support personnel)
Error Type:
webReporting.dll (0x80004005)
Access denied. Please check directory setting for files you can access.
/HTMLViewers/reportgenerator.asp, line 31
Browser Type:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 2.0.50727)
Page:
GET /HTMLViewers/reportgenerator.asp
Line 31 on the page reads:
.processHttpRequest Request, Response, Session
Running the registry moniter I receive an access Denied for hklm\software\Crystal Decisions\9.0\report App\client SDK
This is my first time on the forum, hope I explained myself properly.Thanks Shaun, I appreciate your link for the process monitor application. This replaces my older seperate reg mon & file mon apps.
I have now been able to determine that my application is getting to where it is calling the cachemanager.dll and it is experiencing the problem. I tried manually registering this dll and receive the error Loadlibrary("cachemanager.dll")failed. GetLastError Returns 0x00000007e.
If I change the ASP pages to a very simple process, it will run the demo report, and my report. Once I attempt to use the ASP page with the login requesst, and parameter call I receive this error.
Error Type:
webReporting.dll (0x80004005)
The system cannot find the path specified.
/HTMLViewers/reportgenerator.asp, line 31
Browser Type:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 2.0.50727)
Page:
GET /HTMLViewers/reportgenerator.asp
The reportgenerator ASP page which is causing this error is:
trace.write(category,message)
trace.warn(category,message)
<%@ Language="VBScript"%>
<%
'Declare variables for the report viewer and the ObjectFactory objects, and create the ObjectFactory object.
Dim ObjectFactory, userName, password
dim clientid
dim reportid
clientid = request.querystring("Clientid")
session("Clientid") = clientid
reportid = request.querystring("reportid")
' open a report
' copy this report to "Report Directory" in RAS Configuration Manager
Session("ReportName") = "C:\Program Files\Crystal Decisions\Report Application Server 9\Reports\logonparm\" & reportid
userName = "SYSDBA"
password = "masterkey"
'Create the ObjectFactory for use in creating other Crystal Objects
Set ObjectFactory=CreateObject("CrystalReports.ObjectFactory.2")
'Instantiate the Server Control object which allows us to collect information about the required
'inputs to run the report
Set ServerControl = ObjectFactory.CreateObject("CrystalReports.CrystalReportServerControl")
With ServerControl
.ReportSource = Session("ReportName")
.EnableLogonPrompt = False ' Set this to false so that we can override the controls prompting for logon
.processHttpRequest Request, Response, Session
End With
Set Session("ReportParameters") = ServerControl.ParameterFields
' Set Login info for all connections
' ***************** Added to logon using Viewer SDK *****************************
Set connectionInfos = serverControl.databaseLogonInfos
For x=0 To connectionInfos.count - 1
Set connInfo = connectionInfos.Item(x)
connInfo.UserName = CStr(username)
connInfo.Password = CStr(password)
Next
For each parameter in Session("ReportParameters")
Set parameterField = parameter
paramName = parameterField.Name
if paramName = "INTERFACE ID" then
Dim paramValue
Set paramValue = ObjectFactory.CreateObject("CrystalReports.ParameterFieldDiscreteValue")
paramValue.Value = session("Clientid")
parameterField.CurrentValues.RemoveAll
' Add this value to current value list
parameterField.CurrentValues.Add paramValue
end if
Next
Set clientDoc = CreateObject("CrystalClientDoc.ReportClientDocument")
clientDoc.Open session("ReportName")
set session("oclientdoc")=clientdoc
Session("pathReport") = pathReport
Set Session("connectionInfos") = connectionInfos
Response.Redirect "Viewer.asp"
%>
My appologies if I do not explain my problem well. I am not an ASP programmer, and am desperatly looking for assistance to resolve this problem. If anyone can refer a contract programmer that would be interested and capable of assisting me, that would be appreciated. I believe I am close to resolving this problem. I purchased a support session only to find out that this version is no longer supported. -
Save report on client side in three tier architecture
Hi,
We have a 3 tier 10g R2 Application server installed on Unix.
We want to generate and save report directly to a location on client machine.
But when we try to do that report is saved in server and not on client machine.
Can anyone help in this regard?
Av.Hi,
We are aware of this method, but this is causing following problems to us -
1. Report name concurrency, we will have to change existing coding to a large extent to make sure same report when generated by different users should have seperate names so that there is no conflict.
2. To transfer to client machine there can be access right issues, though we have not tested this aspect.
So was thinking if there is any other way through wich we can directly save the report on client side rather than transfering file between AS and client? -
Error Loding Crystal Report in Client Machine
I have developed a windows application using vs2010 c# and also generated crystal report using the application.The problem is I
am able to view report on my computer but when the same application runs on a client machine its throwing an error "could not load file or assembly crystaldecisions.windows.forms version 13.0".I am not able to load the report on client machine.What
could be the possible reasons for the error.Any suggestions would be of great help? Thanks in advanceHello,
This forum is for discussions and questions regarding profiles and Microsoft's recognition system on the MSDN and TechNet sites. It is not for products/technologies.
As it's off-topic here, I am moving the question to the
Where is the forum for... forum.
Karl
When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
My Blog: Unlock PowerShell
My Book:
Windows PowerShell 2.0 Bible
My E-mail: -join ('6F6C646B61726C406F75746C6F6F6B2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}}) -
Issue in XL reporter on Client machine
Hi Experts
I am facing issue in running XL reporter on client machine aftre upgrading patch 10 of SAP B1 2007 B.
System shows following errro
Run TIme Error 430
Class does not support Automation or does not support expected interface.
pls. help me out from this.
Regards
Kamlesh VagalHi,
Please check this link:
http://support.microsoft.com/kb/248404
Thanks,
Gordon -
How to open a file created at the server through form/report at client end
How to open a file created at the server through form/report at client end
Dear Sir/Madame,
I am creating a exception report at the server-end using utl file utility. I want to display this report at the client end. A user doesn't have any access to server. Will u please write me the solution and oblige me.
Thanks
Rajesh JainOne way of doing this is to write a PL/SQL procedure that uses UTL_FILE to read the file and DBMS_OUTPUT to display the contents to the users.
Cheers, APC -
Greetings everyone,
I wonder if other folks are experiencing the same:
We have upgraded our JDBC driver to latest ojdbc6.jar (2,714,189 bytes) - 11.2.0.3
Everything looks great, except that on the server side it is reported as client version 11.2.0.2
JVM side:
===== Database info =====
DatabaseProductName: Oracle
DatabaseProductVersion: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
DatabaseMajorVersion: 11
DatabaseMinorVersion: 2
===== Driver info =====
DriverName: Oracle JDBC driver
DriverVersion: 11.2.0.3.0
DriverMajorVersion: 11
DriverMinorVersion: 2
Database side:
select client_driver, client_version from v$session_connect_info
(null), 11.2.0.2.0
Is that expected behavior or the property is not updated between releases?
Andrey
Edited by: 907164 on Jan 10, 2012 12:09 PMHi ,
Thank you so much for your reply.
That was the exact information that I needed.
Could you also tell me from where can I get the information of future releases.
Regards,
Stacey. -
Is it possible to sort an interactive report with a default column ?
Hi,
I have a nice request used with an interactive report.
select "ID",
"DATE_CREATION",
"SERVICE",
"RESPONSABLE",
"NATURE_CONTRAT",
"SOCIETE",
"DATE_DEBUT",
"DATE_FIN",
"DELAI_RENOUVELLEMENT"
from "#OWNER#"."CONTRATS_MAINTENANCE"
order by DATE_FIN descUnfortunately, the interactive report does not displays using the order into the SLQ query.
I tried to de select the "sort" option of each other columns into the Column attributes Section, but without any improvement. If I remove the order statement from the SQL query, nothing changes in the order.
Do you have an idea on how to display the lines in the order of the sql query ?
Thank you for your knid answers !
ChrstianChristian,
This can be a little tricky at first. Try this:
1. Remove the order by clause from the query.
2. Log out of the application, not the builder, just the application.
3. Log back in and try using the options in the interactive report to sort the information.
Does it work? If so:
4. Get the order the way you would like it as the default. Note: you get more sort options if you use the Action Menu (grind wheel) and selecting Sort over just clicking the column headers.
5. Save the report by selecting the Save Report option from the Action Menu. If you see a drop down, save the report as the "default".
6. Log out of the application again and back in.
Does it work?
Regards,
Dan
http://danielmcghan.us
http://sourceforge.net/projects/tapigen
You can reward this reply by marking it as either Helpful or Correct ;-) -
Interactive Reporting Web Client on Apple Mac: Intelligence iServer?
Hi All,
I just installed EPM release 11.1.1.1 along with Interactive Reporting. We were led to believe that Macintosh was supported as long as FireFox was used as a browser. Everything seems to work fine except when I try to create a new Interactive Reporting Web Client document, I get the error message:
Viewing and analysis with Interactive Reporting Web Client is supported in Windows only.
For other platforms, use the Intelligence iServer option: ihtml servlet icon
Contact your system administrator if this option is not available.
I cannot seem to find much information on this "Intelligence iServer". Does this exist and will it let FireFox clients use Interactive Reporting Web Client? Is it an option that can be installed on the server?
Thanks for
any insight.
RandyHi,
I have some knowledge about this Intelligence iServer, which I would like to share with you.
In Version 8(HPSu 8.5), Hyperion has 5 servers, which we need to install-
Hyperion Foundation server
Hyperion SQR server
Hyperion SQR iserver
Hyperion Intelligence Server
Hyperion Intelligence iserver
Each server had its own specific work and foundation server was base of all other servers.
Hyperion Intelligence iserver supports the user to access the BQY in ihtml client. It helps user to perform some feature (like drill down-drill up) in html view.
Later Hyperion Came with System 9 and integrated the entire server into a single bundle (internally I don't know what happened).
This EPM 111.1.1 is Hyperion System 9.5 only.
I would like to advice you to log this case to Oracle support (metalink3) and ask more information about this.
It may be that, EPM 11 doesn't support Web Client in Macintosh environment
Thanks & Regards,
Mohit Jain -
Can Balance Sheet and P&L Statements be reported in Client Level?
Can BS and P&L Statements are reported under Chart Of Accounts Levelor they can be reported under Client( Group of one or more Chart Of Accounts) Level.
Hi,
If you have more than one company code operating in your client and all coampnaies are using same chart of account, then possibly you can generate B/S and P/L at client level. Other wise there is no reason to get conlsolideted financial statement per client level.
Kind Regards
Dinabandhu.
Maybe you are looking for
-
How can I remove sensor spots from video?
I have a badly spotted video. There is a tutorial that shows how to accomplish spot removal with CS 5 Extended <Smart Object Video in Photoshop | Russell Brown at Photoshop World 2011 - Orlando | Adobe TV> , but this does not seem to work on my progr
-
I'm tryna make my mp3 player wifi compatible but first I need to know if it's possible or what I need to buy
-
T410 with 4337 docking station - can't get dual monitors to work
running win 7, unit has the Intel graphics. I can't figure out how to get any display to work off the docking station, VGA or digital. Discovery does not seem to pick up the external monitors.
-
Sony Bravia KDL-40Z4100 - Green Ghosting on TV Picture
My Sony Bravia KDL-40Z4100 is displaying green 'ghosting' on the TV picture(The link below, will provide an image of the ghosting) https://www.dropbox.com/s/er9zb39xy3ewej0/BraviaScreenImage.jpg?dl=0 I have tried:1.Disconnecting all external devices2
-
While in Internet Explorer; my yahoo internet account was compromised and I wasn't able to open any emails. I decided to give up on Internet Explorer and moved over to Mozilla Firefox for the added protection it offered. Now that I moved I am not abl