Launching HTML document from application?
Hello Java freaks!
I'm looking for a way to launch a HTML file out of my application (Starting the webbrowser)
At this time I do this with a separate tool ("shell execution utility") that I call using Runtime.getRuntime().exec....
Is there a better way? Without additional tools?
Thanks in advance.
if u wanna do it without runtime.exec then i do have the code with me .. but i can not share it publicly .. give me ur mail id i'll mail u
Raj
Similar Messages
-
Opening help html documents from 10g form
We are converting our 6i forms to 10g. I am trying to open my help html documents from the 10g forms. We have modified the httpd.conf file setting the DocumentRoot "/oracle/apps/aces/help". This is the path where my html documents reside. From the 10g forms I am using web.show_document to open the html documents. I am getting a Page not Found error. Is there somewhere else the help path needs to be set?
Thanks!!
Shellie BrickerThe way i know is, putting some AliasMatch in the conf-file of Apache like
AliasMatch ^/help/(..*) "C:\help/$1"And then use WEB.SHOW_DOCUMENT with this virtual path
WEB.SHOW_DOCUMENT('//help/helpfile.html', '_blank'); -
I want to read a HTML document from internet
Is it i should use javax.swing.text.html.HTMLDocument?
Is it i should use javax.swing.text.html.HTMLDocument?What do the docs for that class say? Does it have methods for reading an HTML document from the internet?
-
Need Help Launching Network Documents from Forms 6i
Hello,
I am trying to launch a network document from Forms 6i running in Oracle Applications 11.5.10.
I have a column in on a form that shows document locations and I am having the user double click on the column in order to lauch the document. I am using the FND_UTILITIES.OPEN_URL package. This works great for web sites but not for internal network documents.
Examples.
Works Fine:
FND_UTILITIES.OPEN_URL ('HTTP://WWW.ORACLE.COM',_blank)
Does Not Work
FND_UTILITIES.OPEN_URL ('\\netwin\ERP\Documents\Setups.doc',_blank)
Now if I open an Internet Explorer window and paste the not working address into it it does pull up the document so I know the address is valid.
Mike<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Arvind Balaraman():
Hi
open your form in the form builder. select file compile all and run yor form. see if it works.
HTH
Arvind Balaraman<HR></BLOCKQUOTE>
Thank You.
I allready did that and it doesn't work!!!
null -
Launch Adobe Connect from Application
I have a custom C#/WPF application that allows a user to interact with a remote traveler. The application will do the following things:
Launch Adobe Connect
Login to an Adobe Connect account
Send the remote traveler a link to that Adobe Connect session
Interact with the remote user with video/audio via Adobe Connect.
For steps 1&2 I show an embedded html window with the link to login to the account. This works fine. After the login succeeds, Adobe Connect takes over the entire screen, which then hides my custom application.
Is there a way to do this type of launch without Adobe Connect taking over the screen? I would like to keep it in a browser window of my choosing so I can organize my user's screen.
Or - is there a better way to launch Adobe Connect from a custom application?
ThanksThis appears to be a bug/issue with Connect 9.3. Adobe Connect User Community
-
How to open word document from application server?
hello ,
I want to open a word document that is placed on the application server.
the function module 'ws_execute' works fine for displaying documents placed on ur local file system. But if i want to open from application server, what needs to b done?
i m referring to the following demo program 'SAPRDEMOOFFICEINTEGRATION'
is this the correct reference or there is some other way to do the same?
kindly help.
Regards,
RoshaniHi Roshani,
The solution is like this.
1> Execute - this is the solution to your program. The file is generated and put in the Application Server for the data to be sent by some means to the intended Place.
2> To Display/View - This is for the person (who runs the program) to view if the output generated is correct or not.
So to accomplish this use the same internal table for both Open Dataset and Gui download.
Open dataset puts data onto the Application server and Gui_download puts the data onto the Desktop or Presentation server for the user to see the data thats fetched.
So use them as directed to achieve the desired output.
Reward Points.
Thanks,
Tej.. -
Retrieving html text not html document from RichEditableText control
Hi,
I have some html text
Ex- This is <b> test </b>
which i am setting to RichEditableText using TextConvert.importToFlow(),I want to format this text just bold and italic and then get back same html text back with
only formatting i have done.
Suppose i have formatted this text in RichEditableText like;
Ex- This <i>is</i> <b> test</b>
But when i am trying to get back this from RichEditableText using;
TextConverter.export(richedittxt.textFlow,TextConverter.TEXT_FIELD_HTML_FORMAT,ConversionT ype.STRING_TYPE);
It gives a complete html document with <html><body><font> tags, which i dont want. It should not includes all these extra tags.
Can any one suggest, whether it is feasible or not ? Please reply if any one has solution
Thanks..Leao,
> I didn't write the original actionscript so I don't
> really know how to implement what you suggested.
Aha! Well, that can be a bit like painting yourself into a
corner. ;)
> Could you explain a little more?
Spend a bit of time with the String class. Before you even
do that, you
may want to familiarize yourself with the concept of objects
in general.
See this introductory article ...
http://www.quip.net/blog/2006/flash/actionscript-20/ojects-building-blocks
... then spend a bit of time in a completely new FLA
experimenting with the
String class. Many of its methods are specifically geared
toward changing
the value of the text content, including stripping away
certain characters.
e.g., you can use String.indexOf() to return the position of
a particular
character (or characters) in a string of text. You may then
use that
position in cahoots with String.substr() to return a new
string that as been
"pruned" of undesired content.
David Stiller
Adobe Community Expert
Dev blog,
http://www.quip.net/blog/
"Luck is the residue of good design." -
HTML documents from Mac to Pad
I have developed a series of HTML-CSS-JavaScript pages (kind of utilities) on my iMac, and I would like to have them on my newly purchased iPad.
1. How do I transfer such documents from iMac to iPad?
2. How do I open these documents with Safari on iPad?
FrançoisSorry,
I was just reading steve jobs speech on why html5 should be used instead of flash, his big point was html just works the same everywhere so i want the web to stop using flash and switch to html so i can see it too.
but why would say abc.com take down there flash stuff and replace it with html if the flash they made works everywhere except my device and html needs to be made for every browser.
i dont like needing an app for every website and not all apps are free. i just want to surf the web like everyone else. and im now worried that my device is never going to be able to.
I saw this guy watching abc.com right on his phone.
http://www.youtube.com/watch?v=omBXttm-eec&feature=related
Then I saw this guy showing how html for macs wont work on ipads
http://www.youtube.com/watch?v=rfmbZkqORX4&feature=watchresponserev
now im scared abc.com will never change their site for my device which only supports html, because html needs to be made again for everthing and flash works everywhere. -
Interacting with html documents from flash
Hi,
I'm a newbie in actionscript. I created a world map in flash. The map has regions (Europe, North America, Latin America, etc.). The regions on the map are defined as buttons.
The final flash map will be embedded in an html document (map.html). The idea is that when you click for example the "Europe" button on the flash movie, this will open an html document called Europe.html and will show it underneath the map flash (inside map.html).
The "Europe.html" for example contains a list of countries.
In this mission I have 2 problems:
1. What script I have to attach to every region button on the flash map so it will call the right html file into the div on the map.html?
2. What script do I have to put inside the html document?
Any help will be much appreciated. thank you
Arie M.assign your button an instance name (in the properties panel after selecting your button) and use that name in the actions panel:
yourbutton.addEventListener(MouseEvent.CLICK,f);
function f(e:MouseEvent):void{
navigateToURL(new URLRequest("map.html"),"youriframe") -
Any new ideas for launching web browser from application
I have searched the forums trying to find a new way of launching a web browser from a java application. The problem I am having is that on Unix and Linux systems, at least the variety I have access to (not quite sure on what that variety those are as they are not my systems or systems I control), the common method of using Runtime.getRuntime().exec(STRING) with either netscape or mozilla does not work. While using the Runtime.exec method is not the same as a console, I did try on these systems "netscape + A_WEB_ADDRESS" (or mozilla) and it did launch the respective browser with the page, so it appears that at least from the console level, those commands are valid.
All the forums seem to say that the Runtime.exec method is the way to go. All the source code I have found through links from the forum say the same thing. I have voted on this bug:
http://developer.java.sun.com/developer/bugParade/bugs/4210168.html
and the feedback there does seem to indicate that there is similar trouble out there. Below is the code I am using. It does work on Win2000,XP, and Mac OSX. The application is not supported on earlier systems, and as it stands it will not work on Win 95,98, nor ME. Only small modification should be needed for work on those OSs, but as I no longer personally use those OSs, I cannot be sure.
private void openNativeBrowser(String url) {
// not the browser itself is started, i only call something like
// start http://www.javasoft.com
// and then the standardbrowser will be started ...
StringBuffer call = new StringBuffer();
System.err.println(System.getProperty("os.name"));
System.err.println(System.getProperty("user.dir"));
try {
// which OS ?
String operatingSystem = System.getProperty("os.name");
// how to call the OS
if (operatingSystem.toLowerCase().indexOf("windows") > -1)
call.append("cmd /c start ").append(url);
else
if (operatingSystem.toLowerCase().indexOf("mac") > -1)
call.append("open ").append(url + " &");
else if(operatingSystem.toLowerCase().indexOf("linux") > -1)
// use Script 'netscape'
call.append("mozilla ").append(url).append(" &");
else
call.append("netscape ").append(url).append(" &");
System.err.println(call.toString());
// start it ...
Runtime.getRuntime().exec(call.toString());
catch (Exception e) {
System.out.println(e.getMessage());
e.printStackTrace();
As I said, if you have a new way to call the broswer that seems to work on either Unix or Linux, please post it, point to it, or explain it.
Aaronthere is a shell script on Linux called htmlview that you can launch like this:
String[] cmd = {"htmlview", "http://java.sun.com"};
try {
Runtime.getRuntime().exec(cmd);
} catch (IOException ioe) {
// do something
}which will open the default browser. Don't think this is available on other *NIX though, although the script itself would probably work so you could include it with your app (/usr/bin/htmlview). -
Print html document from presentation server with no intervention of user
Hello,
I have been able to create HTML output for my smartform.
They are saved on my machine.
I need to print these HTML outputs as a part of process without intervention of the user.
Is it possible?
I have tried method 'EXECWB' of 'cl_gui_html_viewer', but that gets fired only on some action and shows the Print dialog for the selection of printer.
It would be great if anyone can help me with us.
Thanks
MonaPDL -- thank you for your reply.
What you gave me did spawn the print dialog allowing me to select a printer. However, when the document printed, the number of pages in the document was correct but the pages were empty except for the page x of y along the top and the name of the document along the bottom. Have you seen this before and do you know how to correct? Also, how do you suppress the info across the top and bottom of the report from printing?
Thanks -
Posting documents from application/jsp server to web server
I need to allow users to upload documents (ie. pdf, doc, ppt, etc) on the application I am building. I am using the FileUpload classes from Jakarta's commons fileUpload. The application that the commons-fileupload-1.0.jar resides on is on the application server. The directories where the documents need to post to are located on the Web Server. Does anyone have any methods or resources for doing this?
You could specify a remote directory for upload... the one on the web server.
-
Attach document from application server using BAPI
Hi,
I am trying to attach files to Document Info Record using BAPI
BAPI_DOCUMENT_CHECKIN_REPLACE2. When i execute the z program that calls this BAPI on
presentation server in foreground by giving path of documents which are locating on local pc it works
fine and check in the file in document infor record
But when i run program in background and file path is of application server.It gives error that
Program no longer started via RFC. No return possible.
I want to know the cause of this error.
Please help.i think u need to pass Storage category = FILESYSTEM.
check the documentation of data element -
DE CV_STORAGE_CAT
but i'm not 100% sure abt it.
regards
Prabhu -
Launching html file from JFrame
I wish to launch an html file called "Help.html" when a user clicks on the help button on my toolbar in the GUI. I know how to open a simple program using the Runtime.exec( ) command but the problem is how would i open a specified file in a specified program...any help will be appreciated.
PS: I do not know any C unfortunately, haven't done that yet at uni but would be glad to learn now :)I think you missed the question, opening a simple JFrame with a JTextArea won't have the same effect of opening a HTML file in which user can click on stuff and all that, even if I do open another JFrame imagine all the programming i have to do to get the URL's working for all the links in the help file and little search commands etc...I hope someone can tell me how to open the clients web-browser with the help.html file supplied by me!
-
Reading a document from application server / opening in SAP session
Hi guys,
we have a requirment has follows , please help me with your inputs.
We have list of documents available in the DMS server....(XLS,DOC,PDF)
1. How to get the list of file names ( available in the DMS server ) into the internal table.
2. i need to open these documents by clicking - into the same sap session itself. (it should not open in windows)
Please Note : Many of our forum friends earlier to open the file in windows.
regards
GiriHi,
You can show any doc that is uploaded in DMS using the URL of the doc . the doc will be shown in a container. You can refer the std prog . SAPRDEMOPIVOTINTERFACE.. or some thg like that ( i dont remember the exact name ) .
You need to pass the Class name . object type and object name to find the URL. Check transaction OAER and enter class as SSOFFICEINTEGRATION , type as OT and name as SSOFFICEINTEGRATION.
Hope this helps.
Maybe you are looking for
-
Recover RAID 5 array with new root drive
Ok, I have a root mirror and a 4 drive RAID 5 array on an E250. The linker got hosed on the root partition and mount fails as a result. I've tried repairing the linker to no avail. So I replaced c0t0d0 with a brand new drive and put a fresh install o
-
'project must be rendered before it can be encoded'
Why do I always get the message 'project must be rendered before it can be encoded' when I try to export using quicktime conversion to product an mpeg2 for DVD Studio Pro?
-
i am using th quick time record your screen option and see (when on the audio selction) that you can only either record sound from your computer or from your microphone is it possible to have it both on one recording?
-
How can you export pictures from a windows7 computer to an iPad2?If this can be done, can any of those pictures be used to change the startup screen image as well.
-
Right clicking on Dock is not showing Assign to Desktop Option (Mavericks)
When I two finger click on a Dock Application, it should show Assign To (Desktop, All Desktop, None) under Options. However, I am only getting (Remove from Dock, Open at Login, Show in Finder) Is there an option to include/exclude these options? Than