Launching reports from HTMLDB
Hi all,
We have reports 6 executeables. We want to launch them from HTMLDB. I "discovered" dbms_scheduler and tried launching them via PL/SQL. However, that is not entirely reliable, since the job intermittently errors out with "file not found".
Is there another way to launch an executable? Or if we migrate to the latest version of reports, can they be launched from HTMLDB?
Please advise,
Johan Arve
"Why doesn't it work with Reports 6i?"
I'm running four different reports via a PL/SQL package that calls dbms_scheduler. One of these reports bug out on a regular basis iff the other three have just been run.
"How Do you call the reports with the dbms_scheduler?"
I've defined them as jobs and run dbms_scheduler.enable via PL/SQL package called by a HTMLDB process.
"If you can start a report via url in the browser, you can call it from pl/sql with utl_http."
OK, how do I start a .rep file via a url?
Thanks for your input.
Best regards,
Johan Arve
Similar Messages
-
How do I launch report from menu using RUN_REPORT_OBJECT?
Hi all,
Re: How do I launch report from menu (and have it print to the screen) using RUN_REPORT_OBJECT?
I am using Oracle 9iAS on Windows 2000 and I have a similar problem with launching reports from the menu. The application should call the report via the RUN_REPORT_OBJECT builtin feature from Forms. The report is never displayed.
The report is in the same folder as the menu form calling it. Do the reports have to be in a specific format? How do I get the report_id?
The name of the report is seconds_calls. No user-specified parameters are passed. Also, the report object in the object navigator in Forms is Report4 (is this relevant?)
When I try to run report via the form using this code:
DECLARE
report_id REPORT_OBJECT;
rep_status VARCHAR2(200);
v_rep VARCHAR2(100);
report_job_id VARCHAR2(200);
-- job_number NUMBER;
-- server_name VARCHAR2(200) := 'repserver';
BEGIN
report_id:= FIND_REPORT_OBJECT('seconds_calls');
rep_status:=REPORT_OBJECT_STATUS(report_job_id);
v_rep := RUN_REPORT_OBJECT(report_id);
END;
I get this error message:
FRM-41219 Cannot find report:Invalid ID
And this message
FRM-40738 Argument 1 to builtin RUN_REPORT_OBJECT cannot be null
When I tried to use the same code (above), substituting the object name for the form name,
I got these messages:
FRM-41219 Cannot find report:Invalid ID
FRM-40738 Argument 1 to builtin RUN_REPORT_OBJECT cannot be null
And FRM-10259 Invalid null argument to packaged procedure or function (???)
Any ideas?
Cheers,
PippaPhilippy,
substr(v_rep,instr(v_rep,'_',-1)+1)
This code extracts the Reports job id from the Reports Server name. The run_report_object() built-in
retrieves e.g. RepServ_9 as a job id, but in Reports9i you only need the '9' as a value to retrieve the
output.
Use the following sample a template. It is a procedure that expects the reports object name, teh reports server name and the
output format as an argument. The call to Web.show_document expects the ReportsSrevices to be accessible from teh same server
(relative addressing is used)
PROCEDURE RUN_REPORT_OBJECT_PROC (vc_reportobj Varchar2, vc_reportserver varchar2, vc_runformat varchar2) IS
v_report_id Report_Object;
vc_ReportServerJob VARCHAR2(100); /* unique id for each Report request */
vc_rep_status VARCHAR2(100); /* status of the Report job */
vjob_id VARCHAR2(100); /* job_id as number only string*
BEGIN
/* Get a handle to the Report Object itself. */
v_report_id:= FIND_REPORT_OBJECT(vc_reportobj);
SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_COMM_MODE,SYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESTYPE,CACHE);
/* Define the Report output format and the name of the Reports Server as well as a user-defined parameter, passing the department number from Forms to the Report. We don't need a parameter form to be displayed, and therefore paramform is set to "no". */
SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESFORMAT, vc_runformat);
SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_SERVER, vc_reportserver);
SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_OTHER, 'p_deptno='||:dept.deptno||'paramform=no');
vc_ReportServerJob:=RUN_REPORT_OBJECT(report_id);
/* remove the Reports Server name from teh job id */
vjob_id := substr(vc_ReportServerJob,length(reportserver)+2,length(vc_ReportServerJob));
/* Check the report status if finished. */
vc_rep_status := REPORT_OBJECT_STATUS(vc_ReportServerJob);
IF vc_rep_status='FINISHED' THEN
/* Call the Report output to be displayed in a separate browser window.
The URL for relative addressing is only valid when the Reports Server
is on the same host as the Forms Server. For accessing a Remote Reports
Server on a different machine, you must use the prefix http://hostname:port/ */
WEB.SHOW_DOCUMENT ('/reports/rwservlet/getjobid '||vjob_id ||'?server='vc_reportserver,'_blank');
ELSE
message ('Report failed with error message '||vc_rep_status);
END IF;
END;
Frank -
Launching report from Swing app
How do you launch a report froma Java Swing app and how does the report get viewed and then saved?
Thanks.hello,
there are several ways of running a report.
a) by executing rwrun
b) by submitting an HTTP request to the reports server
c) by executing rwcli to submit a request to the reports server
the output has to be viewed using either a browser window.
regards,
the oracle reports team --pw -
Launching report from button in forms
I have a report with a user input parameter that i need to launch from a button within oracle forms,
inputting the url does not display the report because of the perameter is there another way? ive looked into the built ins but they seem overly complicated for what i am trying to achieve as in theory it should be quite simple just to launch the report in the web browser (all of this is client side one machine holding all reports and forms)
really desperate as this has a deadline of tomorrow!!I have searched and i couldnt find anything specifically to do with client side and perameters, i know how to do it via web browser and the listener etc but with a parameter this does not work.
i literally need to run the web version of the report as in reports builder does through a button
if you know of a thread please point me there thanks!! -
How to run reports from discoverer viewer by http
Hello everybody,
We've migrated our j2ee application to htmldb and we've migrated Discoverer reports from 4i to 5. So, I'd like to know how to invoke reports from htmldb.
With the previous version we used this way:
http://hostname/discoverer4i/viewer?wbk=ZZZZZZZZZ&us=uuuuuuuuu&eul=XXXXX&qp_competence_id=-1&qp_competence_type=All&qp_Manager=NNNN&qp_resource_manager=-N&db=custprd.us.oracle.com&password=******
Best Regards,
Seba.Hi Seba
You basically run Viewer as normal and then copy the URL from the Address bar at the top of the browser. This can then be used to run the report.
I hope this helps
Best wishes
Michael Armstrong-Smith
URL: http://learndiscoverer.com
Blog: http://learndiscoverer.blogspot.com -
Error Launching Web Analysis Report from the Hyperion Workspace
Hi Everyone
When launching the report as a HTML from the Workspace, the output flashes briefly on screen
The view in the content pane disappears to leave a blank screen.
When I Select View | Refresh. The following result is returned "Web Analysis Information" -1
I have set the report in start up preferences. And Web Analysis preferences set to open as HTML
After logging on again the following error is shown " An attempt to open "Actual vs Budget" Failed
Show Details displays: this.getFocusRoot() is nullor not an object
The reports all display correctly when launched from the Web Analysis studio
Any ideas will be greatly appreciated
Thanks
G
Web Analysis Version
Server Information
Version: 11.1.1.0.0.724
Class Version: Java HotSpot(TM) Server VM
VM Version: Java HotSpot(TM) Server VM
VM Vendor: Sun Microsystems Inc.
Java Vendor: Sun Microsystems Inc.
Java Version: 1.5.0_11
OS Name: Windows 2003
OS Version: 5.2
Total Memory: 66519040
Free Memory: 22975320
Locale: English (United States)
Client Information
Version: 11.1.1.0.0.724
Class Version: Java HotSpot(TM) Client VM
VM Version: Java HotSpot(TM) Client VM
VM Vendor: Sun Microsystems Inc.
Java Vendor: Sun Microsystems Inc.
Java Version: 1.5.0_12
OS Name: Windows 2003
OS Version: 5.2
Total Memory: 34766848
Free Memory: 10688504
Locale: English (United States)Hi Ian,
Thanks for the advise but I have looked into your possible solution and referred to the Web Analysis user guide. I have a number of reports and when selecting the Design for HTML option - a number of objects are valid and should be displayed in the workspace.
After creating reports from scratch - with valid objects - the problem still persists.
Unfortunately, I don't think this provides a solution to the problem.
Cheers
G -
Launching a Discoverer report from jsp page
Hi
I have a discoverer workbook created using BI Discoverer (for relational). I want to accept some parameters for this workbook from a jsp page, which will also have a "View report" button. This button when pressed should open up the Discoverer workbook and all the parameters from the jsp should be passed to the workbook.
Is it possible? If yes, any details on it?
We do the same thing successfully to launch Oracle Reports from jsps, we simply build the url in the jsp, and from jsp we submit it to a new window, and it opens up the report. Similar functionality we are looking to launch Discoverer reports.
Any help will be appreciated.
Thanks
ShaluYou can open the workbook with URL parameters with Discoverer Viewer much like you would Oracle Reports. Setting anything form the username, password, workbook name, worksheet, and parameters. All the information can be found in the following document:
http://download-east.oracle.com/docs/cd/B14099_11/bi.1012/b13918/urlstart.htm
The specific question your asking is addressed under 13.5.2 Example 2. Let me know if you have any issues
Matt Topper
Technical Management Consultant
TUSC, The Oracle Experts
[email protected] -
Unable to launch Report Builder 3.0
I am running Reporting Services 2012 in Sharepoint integrated mode. I'm using Sharepoint 2010. My server is located in the US. Both my overseas and US users are unable to launch Report Builder but the errors are different.
Overseas user:
Following errors were detected during this operation.
* [05/4/2012 7:43:26 PM] System.Deployment.Application.InvalidDeploymentException (ManifestLoad)
- Exception occurred loading manifest from file MSReportBuilder.exe: the manifest may not be valid or the file could not be opened.
- Source: System.Deployment
- Stack trace:
at System.Deployment.Application.Manifest.AssemblyManifest.ManifestLoadExceptionHelper(Exception exception, String filePath)
at System.Deployment.Application.Manifest.AssemblyManifest.LoadFromInternalManifestFile(String filePath)
at System.Deployment.Application.DownloadManager.ProcessDownloadedFile(Object sender, DownloadEventArgs e)
at System.Deployment.Application.FileDownloader.DownloadModifiedEventHandler.Invoke(Object sender, DownloadEventArgs e)
at System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)
at System.Deployment.Application.SystemNetDownloader.DownloadAllFiles()
at System.Deployment.Application.FileDownloader.Download(SubscriptionState subState)
at System.Deployment.Application.DownloadManager.DownloadDependencies(SubscriptionState subState, AssemblyManifest deployManifest, AssemblyManifest appManifest, Uri sourceUriBase, String targetDirectory, String group, IDownloadNotification
notification, DownloadOptions options)
at System.Deployment.Application.ApplicationActivator.DownloadApplication(SubscriptionState subState, ActivationDescription actDesc, Int64 transactionId, TempDirectory& downloadTemp)
at System.Deployment.Application.ApplicationActivator.InstallApplication(SubscriptionState& subState, ActivationDescription actDesc)
at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)
--- Inner Exception ---
System.Deployment.Application.DeploymentException (InvalidManifest)
- Cannot load internal manifest from component file.
- Source:
- Stack trace:
US user:
Following errors were detected during this operation.
* [5/4/2012 11:03:17 AM] System.Runtime.InteropServices.COMException
- Failed to load the runtime. (Exception from HRESULT: 0x80131700)
- Source: System.Deployment
- Stack trace:
at System.Deployment.Application.NativeMethods.GetRequestedRuntimeInfo(String pExe, String pwszVersion, String pConfigurationFile, UInt32 startupFlags, UInt32 runtimeInfoFlags, StringBuilder pDirectory, UInt32 dwDirectory, UInt32& dwDirectoryLength,
StringBuilder pVersion, UInt32 cchBuffer, UInt32& dwLength)
at System.Deployment.Application.Win32InterOp.SystemUtils.CheckSupportedImageAndCLRVersions(String path)
at System.Deployment.Application.SubscriptionStore.CheckApplicationPayload(CommitApplicationParams commitParams)
at System.Deployment.Application.SubscriptionStore.CommitApplication(SubscriptionState& subState, CommitApplicationParams commitParams)
at System.Deployment.Application.ApplicationActivator.InstallApplication(SubscriptionState& subState, ActivationDescription actDesc)
at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)Hi,
My issue is not resolved as i am also facing same issue. OS of the server is windows 2012, .net 4.5 is installed so don't need to install .net 4 separately. Here i am giving error details
PLATFORM VERSION INFO
Windows : 6.2.9200.0 (Win32NT)
Common Language Runtime
: 4.0.30319.18408
System.Deployment.dll
: 4.0.30319.17929 built by: FX45RTMREL
clr.dll : 4.0.30319.18408 built by: FX451RTMGREL
dfdll.dll : 4.0.30319.17929 built by: FX45RTMREL
dfshim.dll : 4.0.41209.0 (Main.041209-0000)
SOURCES
Deployment url
: http://xxx/sites/xxxx/_vti_bin/ReportBuilder/ReportBuilder_3_0_0_0.application?SaveLocation=http%3a%2f%2fxxx%2fsites%2fxxxx%2fDocuments
Server
: Microsoft-IIS/8.0
X-Powered-By
: ASP.NET
X-AspNet-Version: 4.0.30319
Application url
: http://xxx/sites/xxxx/_vti_bin/ReportBuilder/RptBuilder_3/MSReportBuilder.exe.manifest
Server
: Microsoft-IIS/8.0
X-Powered-By
: ASP.NET
X-AspNet-Version: 4.0.30319
IDENTITIES
Deployment Identity
: ReportBuilder_3_0_0_0.application, Version=11.0.3000.0, Culture=neutral, PublicKeyToken=c3bce3770c238a49, processorArchitecture=x86
APPLICATION SUMMARY
* Online only application.
* Trust url parameter is set.
ERROR SUMMARY
Below is a summary of the errors, details of these errors are listed later in the log.
* Activation of http://xxx/sites/xxxx/_vti_bin/ReportBuilder/ReportBuilder_3_0_0_0.application?SaveLocation=http%3a%2f%2fxxx%2fsites%2xxxx%2fDocuments resulted in exception. Following failure messages were detected:
+ Application manifest has either a different computed hash than the one specified or no hash specified at all.
+ File, MSReportBuilder.exe.manifest, has a different computed hash than specified in manifest.
COMPONENT STORE TRANSACTION FAILURE SUMMARY
No transaction error was detected.
WARNINGS
There were no warnings during this operation.
OPERATION PROGRESS STATUS
* [8/25/2014 3:37:07 AM] : Activation of http://xxx/sites/xxxx/_vti_bin/ReportBuilder/ReportBuilder_3_0_0_0.application?SaveLocation=http%3a%2f%2xxx%2fsites%2fxxxx%2fDocuments has started.
* [8/25/2014 3:37:07 AM] : Processing of deployment manifest has successfully completed.
* [8/25/2014 3:37:07 AM] : Installation of the application has started.
ERROR DETAILS
Following errors were detected during this operation.
* [8/25/2014 3:37:10 AM] System.Deployment.Application.InvalidDeploymentException (HashValidation)
- Application manifest has either a different computed hash than the one specified or no hash specified at all.
- Source: System.Deployment
- Stack trace:
at System.Deployment.Application.DownloadManager.DownloadApplicationManifest(AssemblyManifest deploymentManifest, String targetDir, Uri deploymentUri, IDownloadNotification notification, DownloadOptions options, Uri&
appSourceUri, String& appManifestPath)
at System.Deployment.Application.DownloadManager.DownloadApplicationManifest(AssemblyManifest deploymentManifest, String targetDir, Uri deploymentUri, Uri& appSourceUri, String& appManifestPath)
at System.Deployment.Application.ApplicationActivator.DownloadApplication(SubscriptionState subState, ActivationDescription actDesc, Int64 transactionId, TempDirectory& downloadTemp)
at System.Deployment.Application.ApplicationActivator.InstallApplication(SubscriptionState& subState, ActivationDescription actDesc)
at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String&
errorPageUrl)
at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)
--- Inner Exception ---
System.Deployment.Application.InvalidDeploymentException (HashValidation)
- File, MSReportBuilder.exe.manifest, has a different computed hash than specified in manifest.
- Source: System.Deployment
- Stack trace:
at System.Deployment.Application.ComponentVerifier.VerifyFileHash(String filePath, Hash hash)
at System.Deployment.Application.ComponentVerifier.VerifyFileHash(String filePath, HashCollection hashCollection)
at System.Deployment.Application.DownloadManager.DownloadApplicationManifest(AssemblyManifest deploymentManifest, String targetDir, Uri deploymentUri, IDownloadNotification notification, DownloadOptions options, Uri&
appSourceUri, String& appManifestPath)
COMPONENT STORE TRANSACTION DETAILS
No transaction information is available. -
Error executing reports from forms
Hi,
Iam trying to launch reports9i from forms9i,
Iam getting following error,
500 Internal Server Error
java.lang.StringIndexOutOfBoundsException: String index out of range: 0
at java.lang.String.charAt(String.java:444)
at oracle.reports.rwclient.ServletCmdMgr.getJobId(ServletCmdMgr.java:3131)
at oracle.reports.rwclient.ServletCmdMgr.handleCmdGetjob(ServletCmdMgr.java:1255)
at oracle.reports.rwclient.CommandManager.handleWebCommand(CommandManager.java:92)
at oracle.reports.rwclient.ServletCmdMgr.handleWebCommand(ServletCmdMgr.java:278)
at oracle.reports.rwclient.RWClient.handleWebCommand(RWClient.java:915)
at oracle.reports.rwclient.RWClient.processRequest(RWClient.java:1398)
at oracle.reports.rwclient.RWClient.doGet(RWClient.java:349)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:604)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:208)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:125)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
at java.lang.Thread.run(Thread.java:534)
Can anyone help me in this regard,
Thanks and regards,
Avinash,
Pune.
India."Iam trying to launch reports9i from forms9i"
your forms version is 10g :-) -
Which URL to use to open a financial report from a Task list ?
Hi,
I've got a big issue in Hyperion Planning : I do not know which URL to use to open a financial report from a task list.
If I use the Smartcut (given when you do a right-click on the report, then Properties), a tab is opening (normal behaviour), but another tab is opening under the tab, which is very ugly, and moreover which prevent from using the PDF/HTML display icons !
Is someone know which URL to use to display correctly a financial report when opening it from a task list ?
It's an emergency, please help !
Thanks very much.
Virgile.
PS. : we use Internet Explorer 8 and we use 11.1.2.1 Hyperion Planning version
Edited by: 808808 on Jan 5, 2012 3:41 AMHi,
OK, thanks, it almost works !!
I've just a problem. 2 tabs are opening.
One is opening correctly and displays my report. I can display it in PDF/HTML.
But another tab is opening with this message : This window can now be closed since the application has been launched in a separate window. Note: Popup blockers may prevent this application from working properly.
Do you know why this tab is opening ?
Thanks very much for your help.
Virgile. -
Migrate reports from 6i to 10g
Hello friends,
I want to migrate reports created in oracle 6i report builder
to
oracle 10g.
Please give me steps for that.
Arvind2It happens on all machine. We use browser to launch the application and the report is called from forms (10.1.2). We didn't change any code in report and neither the fonts (Tahoma). In 6i, client server environment, windows can find the font. I guess in 10g web environment, the font is not as default. HP Laserjet 8000N is a network printer which I use to testing my report. everything is fine in 6i but not 10g. Here is my question.
1. How to check printer setup? Should I use the default font from Linux instead of Tahoma?
2. I found a note in metalink, Note:356221.1 which explains the procedures to deploy reports from windows to Linux. I am not sure my problem is related to the font or something else...
Thanks for you reponse. -
How do I open a Crystal Report from Microsoft Access?
I'm looking for step-by-step instructions on how to launch a Crystal Report from a Microsoft Access application (for a dummy like me).
My Crystal Report uses a connection to the Access database as the data.
I have Microsoft Access 2002 with Microsoft Visual Basic 6.5.
I have Crystal Reports 2008 CR Developer 12.
I'll need to know where to find the Visual Basic code references, and/or ActiveX Controls, if applicable.
Thanks
JaneenI concur with Don. Just a bit of help - a sample VBA app is here;
https://smpdl.sap-ag.de/~sapidp/012002523100006013432008E/rdc_vba.exe
But as Don mentioned, you will have to downgrade to CR XI r2 (or lower) to implement the above solution.
Ludek -
Calling a report from a web form & specifying PDF format
Has anyone been able to call a report from Oracle Forms (6i or 9i) in a web browser (i.e. by pressing a button or any other link)? We are having problems generating the report in PDF format when we web deployed our forms. In client server mode it works fine with the report deferring to PDF. But in the web browser it reverts to a messy HTML format with the columns being distorted. Running a standalone report from the web is no problem but when it is linked with a form it goes back to HTML. In the old forms (5.0) we used a function like run_product but I am not sure what the problem is in the new environment.
T.J.Hello,
According to the way the reports is launched, the format of the reports output depends on the
variables : FORMS60_REPFORMAT (for Forms 6.0 and 6i)
Two others variables are used : FORMS60_OUTPUT and FORMS60_MAPPING.
Can you check the variable FORMS60_REPFORMAT ?
regards Dennis:
Thanks for the info. Your suggestion of changing the windows registry setting FORMS60_REPFORMAT to 'PDF' worked! I did not have to make any other changes to the form. I left the run_product format as is in the form and it worked like a charm. When we eventually migrate to Oracle Reports/Forms 9i we will look into using run_report_object. But for now we will stick with Oracle Forms6i. There was no need to alter the other registry settings FORMS60_MAPPING and FORMS60_OUTPUT since I followed the instructions of setting the virtual directories (symbolic links) when I installed the forms and reports services.
Thanks again for your help!
T.J. -
Show the print dialog when running a report from an Oracle form.
I would like to be able to print an Oracle report from an Oracle form but
in addition show the print dialog. My PL/SQL code is shown at the bottom of this post.
I have set the 'printjob' system parameter to 'YES' in the
report and I can bring up a print dialog using the reports runtime.
However, as soon as I run it from my form I lose this capability. Setting
'printjob' to 'YES' in the code has no apparent effect.
Many thanks,
Ben
-- Launch a report
DECLARE
v_pl_Id paramlist; -- parameter list
BEGIN
-- add the parameters to the list.
v_pl_id := CREATE_PARAMETER_LIST ('summary');
ADD_PARAMETER (v_pl_id, 'destype', text_parameter, 'PRINTER');
ADD_PARAMETER (v_pl_id, 'printjob', text_parameter, 'YES');
-- run the report
RUN_PRODUCT (
reports
, 'C:\Test Reports\Test.rep'
, synchronous
, runtime
, filesystem
, v_pl_id
, NULL
END;At 10g not 9i using a bean area on my canvas implementing the following class ...
import java.awt.Frame;
import java.awt.JobAttributes;
import java.awt.PrintJob;
import java.awt.Toolkit;
import javax.swing.JPanel;
import java.io.*;
import oracle.forms.ui.VBean;
public class Select_Printer extends VBean {
public Select_Printer()
super();
public String getPrinterName()
String PrinterName=null;
JobAttributes jobAttributes;
try{
jobAttributes = new JobAttributes();
jobAttributes.setDialog(JobAttributes.DialogType.NATIVE);
Frame dummyFrame = new Frame();
PrintJob pJobDialog = Toolkit.getDefaultToolkit().getPrintJob(
dummyFrame, "Printtest", jobAttributes, null);
PrinterName = jobAttributes.getPrinter();
} catch (Exception e) {
System.out.println("Printer error!");
return PrinterName;
public static void main(String[] args)
Select_Printer select_Printer = new Select_Printer();
System.out.println(select_Printer.getPrinterName() );
} -
My MacBook Pro is running slowly. I run Mountain Lion on it. I received the following report from Etrecheck. Can someone help me decipher it and provide me with steps to fix the slow speed?
Problem description:
slow computer
EtreCheck version: 2.0.11 (98)
Report generated November 15, 2014 2:57:16 PM EST
Hardware Information: ℹ️
MacBook Pro (15-inch, Mid 2012) (Verified)
MacBook Pro - model: MacBookPro9,1
1 2.3 GHz Intel Core i7 CPU: 4-core
4 GB RAM
BANK 0/DIMM0
2 GB DDR3 1600 MHz ok
BANK 1/DIMM0
2 GB DDR3 1600 MHz ok
Bluetooth: Good - Handoff/Airdrop2 supported
Wireless: en1: 802.11 a/b/g/n
Video Information: ℹ️
Intel HD Graphics 4000 - VRAM: 384 MB
NVIDIA GeForce GT 650M - VRAM: 512 MB
Color LCD 1440 x 900
System Software: ℹ️
OS X 10.8.5 (12F45) - Uptime: 6 days 7:45:47
Disk Information: ℹ️
TOSHIBA MK5065GSXF disk0 : (500.11 GB)
S.M.A.R.T. Status: Verified
disk0s1 (disk0s1) <not mounted> : 210 MB
Macintosh HD (disk0s2) / [Startup]: 499.25 GB (25.67 GB free)
Recovery HD (disk0s3) <not mounted> [Recovery]: 650 MB
HL-DT-ST DVDRW GS31N
USB Information: ℹ️
Apple Inc. FaceTime HD Camera (Built-in)
Apple Inc. BRCM20702 Hub
Apple Inc. Bluetooth USB Host Controller
Apple Computer, Inc. IR Receiver
Apple Inc. Apple Internal Keyboard / Trackpad
Thunderbolt Information: ℹ️
Apple Inc. thunderbolt_bus
Gatekeeper: ℹ️
Mac App Store and identified developers
Kernel Extensions: ℹ️
/Applications/Rowmote Helper.app
[loaded] com.regularrateandrhythm.driver.RowmoteIREmu (1.0 - SDK 10.8) Support
/System/Library/Extensions
[not loaded] com.smarttech.iokit.SMARTBoard (11) Support
[not loaded] com.tectona.driver.PL2303 (1.3.0) Support
[loaded] com.webroot.driver.WebrootSecureAnywhere (54 - SDK 10.7) Support
Problem System Launch Agents: ℹ️
[failed] com.apple.accountsd.plist
[failed] com.apple.AirPlayUIAgent.plist
[failed] com.apple.coreservices.appleid.authentication.plist
[failed] com.apple.lookupd.plist
[failed] com.apple.printtool.agent.plist
[failed] com.apple.scopedbookmarkagent.xpc.plist
Problem System Launch Daemons: ℹ️
[failed] com.apple.coresymbolicationd.plist
[failed] com.apple.wdhelper.plist
Launch Agents: ℹ️
[loaded] com.oracle.java.Java-Updater.plist Support
[running] com.smarttech.boardservice.plist Support
[running] com.smarttech.floatingtools.plist Support
[running] com.smarttech.ink.plist Support
[running] com.smarttech.SBWDKService.plist Support
[running] com.smarttech.smartnotification.plist Support
[running] com.smarttech.systemtrayicon.plist Support
[running] com.webroot.WRMacApp.plist Support
[running] com.webroot.WRMacBackNSync.plist Support
Launch Daemons: ℹ️
[loaded] com.adobe.fpsaud.plist Support
[loaded] com.microsoft.office.licensing.helper.plist Support
[loaded] com.oracle.java.Helper-Tool.plist Support
[running] com.regularrateandrhythm.rowmotehelperaide.plist Support
[running] com.webroot.security.mac.plist Support
[running] com.webroot.webfilter.mac.plist Support
User Launch Agents: ℹ️
[loaded] com.google.keystone.agent.plist Support
[running] com.spotify.webhelper.plist Support
User Login Items: ℹ️
Garmin Express Service UNKNOWN (missing value)
iTunesHelper ApplicationHidden (/Applications/iTunes.app/Contents/MacOS/iTunesHelper.app)
Dropbox Application (/Applications/Dropbox.app)
Spotify Application (/Applications/Spotify.app)
Google Chrome ApplicationHidden (/Applications/Google Chrome.app)
Rowmote Helper Application (/Applications/Rowmote Helper.app)
Internet Plug-ins: ℹ️
Flip4Mac WMV Plugin: Version: 3.2.0.16 - SDK 10.8 Support
FlashPlayer-10.6: Version: 15.0.0.223 - SDK 10.6 Support
npwebroot: Version: 2.0.15 Support
AdobePDFViewerNPAPI: Version: 11.0.06 - SDK 10.6 Support
Flash Player: Version: 15.0.0.223 - SDK 10.6 Support
AdobePDFViewer: Version: 11.0.06 - SDK 10.6 Support
QuickTime Plugin: Version: 7.7.1
SharePointBrowserPlugin: Version: 14.4.5 - SDK 10.6 Support
Unity Web Player: Version: UnityPlayer version 4.5.1f3 - SDK 10.6 Support
Silverlight: Version: 5.1.20513.0 - SDK 10.6 Support
JavaAppletPlugin: Version: Java 7 Update 51 Check version
Safari Extensions: ℹ️
Password Manager
webfilter
3rd Party Preference Panes: ℹ️
Flash Player Support
Flip4Mac WMV Support
Java Support
SMART Board Support
Time Machine: ℹ️
Time Machine not configured!
Top Processes by CPU: ℹ️
3% WindowServer
2% iPhoto
2% mds
2% mdworker
1% Google Chrome
Top Processes by Memory: ℹ️
382 MB Mail
275 MB WebProcess
107 MB Google Chrome
103 MB WindowServer
99 MB Google Chrome Helper
Virtual Memory Information: ℹ️
270 MB Free RAM
1.50 GB Active RAM
1.30 GB Inactive RAM
1.22 GB Wired RAM
20.97 GB Page-ins
8.64 GB Page-outsHi Linc
I hope this is what you were after. Looking forward to hearing your feedback.
Thanks, Susanna.
11/16/14 12:36:02.738 PM com.apple.XType.FontHelper[91728]: FontHelper: message received. (<dictionary: 0x7fbb9b606ce0> { count = 2, contents =
"query" => <string: 0x7fbb9b605720> { length = 109, contents = "com_apple_ats_name_postscript == "Roboto-Regular" && kMDItemContentTypeTree != com.adobe.postscript-lwfn-font" }
"restricted" => <bool: 0x7fff7912f320>: true
11/16/14 12:36:02.738 PM com.apple.XType.FontHelper[91728]: AutoActivation: scopes (
"/Library/Application Support/Apple/Fonts"
11/16/14 12:36:02.878 PM com.apple.XType.FontHelper[91728]: FontHelper: message received. (<dictionary: 0x7fbb9a41d950> { count = 2, contents =
"query" => <string: 0x7fbb9a41d2e0> { length = 108, contents = "com_apple_ats_name_postscript == "Roboto-Medium" && kMDItemContentTypeTree != com.adobe.postscript-lwfn-font" }
"restricted" => <bool: 0x7fff7912f320>: true
11/16/14 12:36:02.878 PM com.apple.XType.FontHelper[91728]: AutoActivation: scopes (
"/Library/Application Support/Apple/Fonts"
11/16/14 12:36:02.889 PM com.apple.XType.FontHelper[91728]: FontHelper: message received. (<dictionary: 0x7fbb9b102580> { count = 2, contents =
"query" => <string: 0x7fbb9b100580> { length = 107, contents = "com_apple_ats_name_postscript == "Roboto-Light" && kMDItemContentTypeTree != com.adobe.postscript-lwfn-font" }
"restricted" => <bool: 0x7fff7912f320>: true
11/16/14 12:36:02.889 PM com.apple.XType.FontHelper[91728]: AutoActivation: scopes (
"/Library/Application Support/Apple/Fonts"
11/16/14 12:36:02.898 PM com.apple.XType.FontHelper[91728]: FontHelper: message received. (<dictionary: 0x7fbb9a41d1d0> { count = 2, contents =
"query" => <string: 0x7fbb9a41d2e0> { length = 106, contents = "com_apple_ats_name_postscript == "Roboto-Bold" && kMDItemContentTypeTree != com.adobe.postscript-lwfn-font" }
"restricted" => <bool: 0x7fff7912f320>: true
11/16/14 12:36:02.898 PM com.apple.XType.FontHelper[91728]: AutoActivation: scopes (
"/Library/Application Support/Apple/Fonts"
11/16/14 12:36:03.000 PM kernel[0]: memorystatus_thread: idle exiting pid 91723 [cfprefsd]
11/16/14 12:36:03.784 PM com.apple.launchd[1]: (com.apple.sleepservicesd[91721]) Exited: Killed: 9
11/16/14 12:36:03.000 PM kernel[0]: memorystatus_thread: idle exiting pid 91721 [SleepServicesD]
11/16/14 12:36:08.471 PM com.apple.launchd.peruser.501[159]: (com.apple.tccd[91730]) Exited: Killed: 9
11/16/14 12:36:08.000 PM kernel[0]: memorystatus_thread: idle exiting pid 91730 [tccd]
11/16/14 12:36:09.592 PM com.apple.launchd[1]: (com.apple.xpcd.F5010000-0000-0000-0000-000000000000[91727]) Exited: Killed: 9
11/16/14 12:36:09.000 PM kernel[0]: memorystatus_thread: idle exiting pid 91727 [xpcd]
11/16/14 12:36:13.129 PM com.apple.launchd[1]: (com.apple.XType.FontHelper[91728]) Exited: Killed: 9
11/16/14 12:36:13.000 PM kernel[0]: memorystatus_thread: idle exiting pid 91728 [XType.FontHelper]
11/16/14 12:36:14.996 PM com.apple.launchd[1]: (com.apple.sleepservicesd[91739]) Exited: Killed: 9
11/16/14 12:36:14.000 PM kernel[0]: memorystatus_thread: idle exiting pid 91739 [SleepServicesD]
11/16/14 12:36:20.120 PM com.apple.launchd[1]: (com.apple.cfprefsd.xpc.daemon[76618]) Exited: Killed: 9
11/16/14 12:36:20.000 PM kernel[0]: memorystatus_thread: idle exiting pid 76618 [cfprefsd]
11/16/14 12:36:23.433 PM com.apple.launchd.peruser.501[159]: (com.apple.cfprefsd.xpc.agent[76616]) Exited: Killed: 9
11/16/14 12:36:23.000 PM kernel[0]: memorystatus_thread: idle exiting pid 76616 [cfprefsd]
11/16/14 12:36:26.261 PM com.apple.launchd[1]: (com.apple.sleepservicesd[91752]) Exited: Killed: 9
11/16/14 12:36:26.000 PM kernel[0]: memorystatus_thread: idle exiting pid 91752 [SleepServicesD]
11/16/14 12:36:37.691 PM com.apple.launchd[1]: (com.apple.sleepservicesd[91764]) Exited: Killed: 9
11/16/14 12:36:38.000 PM kernel[0]: memorystatus_thread: idle exiting pid 91764 [SleepServicesD]
11/16/14 12:36:48.938 PM com.apple.launchd[1]: (com.apple.sleepservicesd[91777]) Exited: Killed: 9
11/16/14 12:36:49.000 PM kernel[0]: memorystatus_thread: idle exiting pid 91777 [SleepServicesD]
11/16/14 12:37:01.000 PM kernel[0]: memorystatus_thread: idle exiting pid 91788 [SleepServicesD]
11/16/14 12:37:00.821 PM com.apple.launchd[1]: (com.apple.sleepservicesd[91788]) Exited: Killed: 9
11/16/14 12:37:04.000 PM kernel[0]: memorystatus_thread: idle exiting pid 91706 [distnoted]
11/16/14 12:37:15.656 PM com.apple.launchd[1]: (com.apple.sleepservicesd[91795]) Exited: Killed: 9
11/16/14 12:37:15.000 PM kernel[0]: memorystatus_thread: idle exiting pid 91795 [SleepServicesD]
11/16/14 12:37:27.016 PM ReportCrash[91819]: Failed to create CSSymbolicatorRef for Webroot SecureAnywhere[264]
11/16/14 12:37:27.125 PM ReportCrash[91819]: Failed to create dSYM-less CSSymbolicatorRef for Webroot SecureAnywhere[264]
11/16/14 12:37:27.487 PM com.apple.launchd.peruser.501[159]: (com.webroot.WRMacApp[264]) Job appears to have crashed: Segmentation fault: 11
11/16/14 12:37:30.336 PM com.apple.launchd[1]: (WSDaemon[61]) Exited abnormally: Broken pipe: 13
11/16/14 12:37:34.295 PM WindowServer[79]: CGXDisableUpdate: UI updates were forcibly disabled by application "iPhoto" for over 1.00 seconds. Server has re-enabled them.
11/16/14 12:37:34.594 PM WindowServer[79]: reenable_update_for_connection: UI updates were finally reenabled by application "iPhoto" after 1.30 seconds (server forcibly re-enabled them after 1.00 seconds)
11/16/14 12:37:37.648 PM ReportCrash[91819]: Saved crash report for Webroot SecureAnywhere[264] version 8.0.7.78 (8.0.7.78) to /Users/landerson/Library/Logs/DiagnosticReports/Webroot SecureAnywhere_2014-11-16-123737_lukes-MacBook-Pro.crash
11/16/14 12:37:42.660 PM WindowServer[79]: CGXDisableUpdate: UI updates were forcibly disabled by application "iPhoto" for over 1.00 seconds. Server has re-enabled them.
11/16/14 12:37:43.632 PM WindowServer[79]: reenable_update_for_connection: UI updates were finally reenabled by application "iPhoto" after 1.97 seconds (server forcibly re-enabled them after 1.00 seconds)
11/16/14 12:37:50.783 PM WSDaemon[91822]: CGSRegisterConnectionNotifyProc called with invalid connection
11/16/14 12:38:09.909 PM Problem Reporter[91853]: launch_msg returned m
Maybe you are looking for
-
New problems after installing Netweaver 2004s Portal
After I have installed the Netweaver 2004s Portal, I have noticed there are two problems: 1) a script error is showing on the browser: "htmlb_217_searchForm_htmlbElements' is null or not an object" 2) When I right click on the folder Portal content -
-
When I try to install Bonjour on an old Compaq laptop that I have so that it can print through my Airport Extreme Base Station, I get the following error message: "Error 1327.Invalid Drive: E:\" Does anyone know what causes this or what a workaround
-
EPS files in ID contact sheets
Bridge CS2 on Mac OS 10.3.9 I am trying to produce ID contact sheets generated from Bridge's Tools menu of the images on a number of CDs of product photos, but have run into a snag. I am having a recurrence of a problem once solved some time ago in t
-
Hello out there, I run a network with two G4 Servers running OS9 and Appleshare IP v. 6.3.3, linked to similar G4 OS9 workstations, and OSX eMacs and Minis running Panther and Tiger. Suddenly the Tiger machines cannot log on to either file server. Bo
-
930212 - how to make CDockablePane unfocusable?
hi i create a CDockablePane as well as a CView in the main frame of my application. i need the pane not to get focused. this causes the active view to lose focus and doesn't receive keyboard events anymore. the pane consists of tool boxes. they're dr