To convert applet-based application?
Hi
There are some tools on market to run an applet-based application on server side. Those tools convert the behavior of applet application to Jsp application. So they run the application on web server and send HTML to web browser.
One of those tools is WebCream(www.creamtec.com)
Would appreciate to let me know other tools or any other ways to achive this.
Thanks in Advance.
repost
Similar Messages
-
Convert AWT based application to ESWT based application on PDA
Dear Experts ,
is it possible to work with ESWT framework with MDSD 4.0 ( AWT based application) ?Hi Ahmed,
It is not possible to convert AWT application to ESWT.
Regards,
Dhanya -
JRE1.6 in Windows Vista for Swing based application
Hi,
I am running a Swing based and applet based application in Windows VISTA using JRE 1.6_U13. The text font is appearing bold in JRE 1.6_U13 whereas it is appearing normal while using JRE 1.5, though the style of the Font
is "SansSerif", PLAIN and size 12 for both JRE 1.6 and JRE 1.5.
Reason for the Issue:
Swings follows the concept of taking the display values from the Windows UIManager(). The UIManager consists of keys and values. The values for the keys change from OS to OS. As a result, if the UIManager key values are not overridden with the customized values, the display will change from OS to OS. Hence the issue has occurred.
Analysis:
Case-1:
1. CALM is setting the font style to Font("SansSerif", Font.PLAIN, 12).
2. This font is being set to the Label and Text components in swings.
3. The font class consists of Font.PLAIN argument whose value is 0 as per the java API.
4. This value cant be changed.
5. Hence we couldnt solve.
Case-2:
1. We tried to get the key value for the key Label.font and tried to override its value.
2. But then the issue is with the Font.Plain which is one of the arguments in Font object.
3. Hence couldnt achieve it.
Case-3:
1. We thought of creating a new font where in we can have control over the weight and width of the text. Then set this font to respective key of the UIManager.
2. Here the weight indicates the bold thickness. As a result of which we thought of changing the weight.
3. But then the options that we have in the API are less and the least weight value is TextAttribute.WEIGHT_EXTRA_LIGHT which is equal to 0.5.
4. This value is not sufficient as the boldness of the text is comparatively more than the text that is appearing in jre-1.5.
5. Then we tried to give the value manually, instead of using the API. But then, it was mentioned in the API that any values mentioned other than the ones specified in the API will be rounded to the nearest integer.
6. By doing this we have customized the boldness of the Label, but could not achieve the required boldness of the Label.
Please need a urgent solution.Hi,
The reason of the problem is Antialiasing effect of the graphics. In Control Panel -> Performance Information and tools -> Adjust visual effect, if the 'Smooth edges of screen font' is unchecked then the boldiness of the font or the Antialiasing effect is not there.
But this effect is reflecting not only on my swing based and applet based application but also on the whole system.
I tried to call the renderingHint method and change default value of the key KEY_TEXT_ANTIALIASING to VALUE_TEXT_ANTIALIASING_OFF, to make the antialiasing effect off for the application.
I implemented the below code:
Graphics g= new Graphics();
Graphics2D g2d = (Graphics2D)g;
g2d.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING,
RenderingHints.VALUE_TEXT_ANTIALIAS_OFF);
But I am not able to create an object of Graphics. -
There is anyone can convert applet code to application code?
i got this applet code and would like to convert it to application code but don't know how.Anybody convert this please?
thanks in advance.
[email protected]
//This program was completely written by Peter Wetsel.
//If there are any questions about this code you
//can email me at [email protected]
//To get it to compile using jdk type "javac -nowarn battle.java".
import java.util.*;
import java.lang.*;
import java.awt.*;
import java.applet.*;
import java.net.*;
import java.lang.*;
public class battle extends java.applet.Applet implements Runnable {
Color col;
String message= new String("");//holds the message placed in the upper left
String Status = new String("");
String message2[]= new String[5];//holds the destroyed messages in order for repainting.
int hits=0;//the total number of hits by the player
int numDestroyed=0;//the number of ships destroyed by the player
int battlepos[]=new int[4];//the 4 positions of the battleship
int carrierpos[]=new int[5];//the 5 positions of the carrier
int subpos[]=new int[3];//the 3 positions of the submarine
int patrolpos[]=new int[2];//the 2 positions of the patrol boat
int destroyerpos[]=new int[3]; //the 3 positions of the destroyer
int guesses=0;// the number of guesses by the player
int player[][]=new int[10][10]; //to hold the positions of the player.(not until version 2)
int guessed[][]=new int[10][10]; //hold the places that have been guessed by the player
int computer[][]=new int[10][10]; //holds where the computers ships are
int battleshipHitCt, destroyerHitCt, subHitCt, patrolHitCt, carrierHitCt;//keeps the hit count for each of the ships
boolean init=false;//false until play is pushed.
boolean ok=false;//boolean that is true if current boat position chosen by random is ok(getcarrier(), etc.)
boolean battleOK=true;//false when the type of ship is destroyed
boolean patrolOK=true;//...
boolean subOK=true;//...
boolean destroyerOK=true;//...
boolean carrierOK=true;//...
boolean won=false;//true when the player has won
int o;
public static void main (String args [])
Frame frame = new Frame () ;
battle applet = new battle () ;
frame.add (applet) ;
applet.init () ;
applet.paint(g);
applet.start () ;
public void getCarrier(){
int x, y, dir; //will hold a random x & y coordinate(0-9), and a random direction(0-1)(N,E,S,W)
x=(int)(10*Math.random());
y=(int)(10*Math.random());
dir=(int)(100*Math.random()/25);
if(dir==0)
while(y<4){
y=(int)(10*Math.random());
for (int i=0; i<5; i++){
computer[x][y-i]=1;
carrierpos=x*10+y-i;
if (dir==1)
while(x>5){
x=(int)(10*Math.random());
for (int i=0; i<5; i++){
computer[x+i][y]=1;
carrierpos[i]=(x+i)*10+y;
if (dir==2)
while(y>5){
y=(int)(10*Math.random());
for (int i=0; i<5; i++){
computer[x][y+i]=1;
carrierpos[i]=x*10+y+i;
if (dir==3)
while(x<4){
x=(int)(10*Math.random());
for (int i=0; i<5; i++){
computer[x-i][y]=1;
carrierpos[i]=(x-i)*10+y;
public void getBattle(){
int x, y, dir;
x=(int)(10*Math.random());
y=(int)(10*Math.random());
dir=(int)(100*Math.random()/25);
while(!ok){
ok=true;
x=(int)(10*Math.random());
y=(int)(10*Math.random());
dir=(int)(100*Math.random()/25);
if(dir==0)
while(y<3){
y=(int)(10*Math.random());
for (int i=0; i<4; i++){
o=computer[x][y-i];
if (o==1){
ok=false;
if (dir==1)
while(x>6){
x=(int)(10*Math.random());
for (int i=0; i<4; i++){
o=computer[x+i][y];
if (o==1){
ok=false;
if (dir==2)
while(y>6){
y=(int)(10*Math.random());
for (int i=0; i<4; i++){
o=computer[x][y+i];
if (o==1){
ok=false;
if (dir==3)
while(x<3){
x=(int)(10*Math.random());
for (int i=0; i<4; i++){
o=computer[x-i][y];
if (o==1){
ok=false;
if(dir==0)
for (int i=0; i<4; i++){
computer[x][y-i]=1;
battlepos[i]=x*10+y-i;
if (dir==1)
for (int i=0; i<4; i++){
computer[x+i][y]=1;
battlepos[i]=(x+i)*10+y;
if (dir==2)
for (int i=0; i<4; i++){
computer[x][y+i]=1;
battlepos[i]=x*10+y+i;
if (dir==3)
for (int i=0; i<4; i++){
computer[x-i][y]=1;
battlepos[i]=(x-i)*10+y;
public void getSub(){
int x, y, dir;
x=(int)(10*Math.random());
y=(int)(10*Math.random());
dir=(int)(100*Math.random()/25);
while(!ok){
ok=true;
x=(int)(10*Math.random());
y=(int)(10*Math.random());
dir=(int)(100*Math.random()/25);
if(dir==0)
while(y<2){
y=(int)(10*Math.random());
for (int i=0; i<3; i++){
o=computer[x][y-i];
if (o==1){
ok=false;
if (dir==1)
while(x>7){
x=(int)(10*Math.random());
for (int i=0; i<3; i++){
o=computer[x+i][y];
if (o==1){
ok=false;
if (dir==2)
while(y>7){
y=(int)(10*Math.random());
for (int i=0; i<3; i++){
o=computer[x][y+i];
if (o==1){
ok=false;
if (dir==3)
while(x<2){
x=(int)(10*Math.random());
for (int i=0; i<3; i++){
o=computer[x-i][y];
if (o==1){
ok=false;
if(dir==0)
for (int i=0; i<3; i++){
computer[x][y-i]=1;
subpos[i]=x*10+y-i;
if (dir==1)
for (int i=0; i<3; i++){
computer[x+i][y]=1;
subpos[i]=(x+i)*10+y;
if (dir==2)
for (int i=0; i<3; i++){
computer[x][y+i]=1;
subpos[i]=x*10+y+i;
if (dir==3)
for (int i=0; i<3; i++){
computer[x-i][y]=1;
subpos[i]=(x-i)*10+y;
public void getDestroyer(){
int x, y, dir;
x=(int)(10*Math.random());
y=(int)(10*Math.random());
dir=(int)(100*Math.random()/25);
while(!ok){
ok=true;
x=(int)(10*Math.random());
y=(int)(10*Math.random());
dir=(int)(100*Math.random()/25);
if(dir==0)
while(y<2){
y=(int)(10*Math.random());
for (int i=0; i<3; i++){
o=computer[x][y-i];
if (o==1){
ok=false;
if (dir==1)
while(x>7){
x=(int)(10*Math.random());
for (int i=0; i<3; i++){
o=computer[x+i][y];
if (o==1){
ok=false;
if (dir==2)
while(y>7){
y=(int)(10*Math.random());
for (int i=0; i<3; i++){
o=computer[x][y+i];
if (o==1){
ok=false;
if (dir==3)
while(x<2){
x=(int)(10*Math.random());
for (int i=0; i<3; i++){
o=computer[x-i][y];
if (o==1){
ok=false;
if(dir==0)
for (int i=0; i<3; i++){
computer[x][y-i]=1;
destroyerpos[i]=x*10+y-i;
if (dir==1)
for (int i=0; i<3; i++){
computer[x+i][y]=1;
destroyerpos[i]=(x+i)*10+y;
if (dir==2)
for (int i=0; i<3; i++){
computer[x][y+i]=1;
destroyerpos[i]=x*10+y+i;
if (dir==3)
for (int i=0; i<3; i++){
computer[x-i][y]=1;
destroyerpos[i]=(x-i)*10+y;
public void getPatrol(){
int x, y, dir;
x=(int)(10*Math.random());
y=(int)(10*Math.random());
dir=(int)(100*Math.random()/25);
while(!ok){
ok=true;
x=(int)(10*Math.random());
y=(int)(10*Math.random());
dir=(int)(100*Math.random()/25);
if(dir==0)
while(y<1){
y=(int)(10*Math.random());
for (int i=0; i<2; i++){
o=computer[x][y-i];
if (o==1){
ok=false;
if (dir==1)
while(x>8){
x=(int)(10*Math.random());
for (int i=0; i<2; i++){
o=computer[x+i][y];
if (o==1){
ok=false;
if (dir==2)
while(y>8){
y=(int)(10*Math.random());
for (int i=0; i<2; i++){
o=computer[x][y+i];
if (o==1){
ok=false;
if (dir==3)
while(x<1){
x=(int)(10*Math.random());
for (int i=0; i<2; i++){
o=computer[x-i][y];
if (o==1){
ok=false;
if(dir==0)
for (int i=0; i<2; i++){
computer[x][y-i]=1;
patrolpos[i]=x*10+y-i;
if (dir==1)
for (int i=0; i<2; i++){
computer[x+i][y]=1;
patrolpos[i]=(x+i)*10+y;
if (dir==2)
for (int i=0; i<2; i++){
computer[x][y+i]=1;
patrolpos[i]=x*10+y+i;
if (dir==3)
for (int i=0; i<2; i++){
computer[x-i][y]=1;
patrolpos[i]=(x-i)*10+y;
public void run(){// to be in here so can compile
public void init() {
for (int i=0; i<10; i++){//initializes the guessed matrix to be all 2's(not been guessed)
for (int j=0;j<10; j++){
guessed[i][j]=2;
for (int i=0; i<2; i++){//initializes array to be all zeros
patrolpos[i]=0;
for (int i=0; i<2; i++){
destroyerpos[i]=0;
for (int i=0; i<2; i++){
subpos[i]=0;
for (int i=0; i<2; i++){
carrierpos[i]=0;
for (int i=0; i<2; i++){
battlepos[i]=0;
battleshipHitCt=0;//initialize all hit counts
destroyerHitCt=0;
subHitCt=0;
patrolHitCt=0;
carrierHitCt=0;
//get all boat positions
getCarrier();
ok=false;
getBattle();
ok=false;
getDestroyer();
ok=false;
getSub();
ok=false;
getPatrol();
public void paint(Graphics g) { //this is the shots paint method... draws a line from its last position to its current position, basically
if (!init && !won){//draws screen before play is pushed
g.setColor(col.white);
g.fillRect(0,0,600,320);
g.setColor(col.black);
g.fillRect(20,20,30,25);
g.setColor(col.white);
g.drawString("PLAY", 23,30);
g.setColor(col.black);
g.drawString("This is different that usual battleship, here the goal is",23,65);
g.drawString("to find all of the computers ships in the least number of guesses.",23,85);
g.drawString("<30 turns --- You have too much luck!", 23, 105);
g.drawString("31-50 turns --- Excellent!", 23, 125);
g.drawString(">=51 turns --- You have no skills!", 23, 145);
g.drawString("PRESS PLAY TO BEGIN", 23, 165);
if (init && !won){//draws grid and messages
g.setColor(col.black);
g.fillRect(0,0,600,320); //makes big, black rectangle washover
g.setColor(col.white);
g.drawString("# of Guesses = " + guesses,500, 280);
for (int i=0; i<11; i++)
g.drawLine(20,20+i*28, 300, 20+i*28);
for (int i=0; i<11; i++)
g.drawLine(20+i*28,20,20+i*28,300);
char ch='A';
for (int i=0; i<10; i++){//draws letter accross the top
g.drawString(ch+" ",30+28*i,13);
ch++;
ch='1';
for (int i=0; i<9; i++){//draws numbers down the side
g.drawString(ch+" ",10,40+28*i);
ch++;
g.drawString("10", 6,290);
g.drawString(message,420,40);
for (int i=0; i<numDestroyed; i++){
g.drawString(message2[i], 305, 40+(i+1)*20);
g.setColor(col.black);
//next puts in any circles already guessed
for (int i=0; i<10; i++)
for (int j=0; j<10;j++){
if (guessed[i][j]==1) {
g.setColor(col.red);
g.fillOval(i*28+30, j*28+30, 10,10);
if (guessed[i][j]==0) {
g.setColor(col.white);
g.fillOval(i*28+30, j*28+30, 10,10);
public boolean seeifahit(int x, int y){//sees if the shot was a hit or not
if(computer[x][y]==1)
return true;
return false;
public String getshiptype(int x, int y){//returns the name of the ship that was hit
for (int i=0;i<4; i++)
if (battlepos[i]==x*10+y){
battleshipHitCt++;
return "Battleship";
for (int i=0;i<3; i++)
if (subpos[i]==x*10+y){
subHitCt++;
return "Submarine";
for (int i=0;i<2; i++)
if (patrolpos[i]==x*10+y){
patrolHitCt++;
return "Patrol Boat";
for (int i=0;i<5; i++)
if (carrierpos[i]==x*10+y){
carrierHitCt++;
return "Carrier";
for (int i=0;i<3; i++)
if (destroyerpos[i]==x*10+y){
destroyerHitCt++;
return "Destroyer";
return " ";
public void gameOver(){//displays guesses and ends
if (!won){
Graphics g = getGraphics() ;
g.setColor(col.black);
g.fillRect(0,0,600,320); //makes big, black rectangle washover
g.setColor(col.white);
g.drawString("YOU WIN!!", 200,100);
String out=new String("It took you "+guesses+" tries!");
g.drawString(out, 200,120);
g.drawString("Press refresh on your browser to play again", 200, 150);
won=true;
public boolean destroyed(){
if(battleshipHitCt==4 && battleOK)
battleOK=false;
return true;
if(carrierHitCt==5 && carrierOK)
carrierOK=false;
return true;
if(subHitCt==3 && subOK)
subOK=false;
return true;
if(patrolHitCt==2 && patrolOK)
patrolOK=false;
return true;
if(destroyerHitCt==3 && destroyerOK)
destroyerOK=false;
return true;
return false;
public boolean mouseDown(Event e, int x, int y) {//handles when a mouse key is pressed(either key)
String type= new String("");
if (!won){
message="";
Graphics g = getGraphics() ;
g.setColor(col.white);
int xindex, yindex, val;
if (x>20 && y>20 && y<300 && x<300 && init){
guesses++;
g.setColor(col.black);
g.fillRect(490,260, 550, 285);
g.setColor(col.white);
g.drawString("# of Guesses = " + guesses,500, 280);
g.setColor(col.black);
g.fillRect(419,30,580,95);
g.setColor(col.white);
xindex=(x-20)/28;//converts x coordinate into index(A-J) in form of (0-9)
yindex=(y-20)/28;//converst y coordinate into index(0-9)
val=guessed[xindex][yindex];
if (val==2){
if (seeifahit(xindex,yindex)){
type=getshiptype(xindex, yindex);
hits++;
g.setColor(col.white);
guessed[xindex][yindex]=1;
if (!destroyed()){
message=type + " Hit";
g.drawString(message, 420, 40);
else{
g.setColor(col.white);
message2[numDestroyed]=new String("");
message2[numDestroyed]=type + "Destroyed";
numDestroyed++;
g.drawString(message2[numDestroyed-1] , 305, 40+(numDestroyed)*20);
g.setColor(col.red);
else guessed[xindex][yindex]=0;
g.fillOval(xindex*28+30, yindex*28+30, 10,10);
else {
g.setColor(col.white);
message="That has already been guessed";
g.drawString(message,420,40);
if (x>20 && x<40 && y>20 && y<40 && !init){
init=true;
paint(g);
if (hits>=17){
gameOver();
System.exit(0);
return true;replace following in main method
applet.paint(g); by
repaint(); and
applet.start() by
// applet.start() at least compile your source code and if all runs the normal way it shoul be an application
PS: i think there is a way in javac to tell it your source is an applicat. and not an applet -
Conversion of forms5.0 to web based application
dear folks,
i have an existing application which runs on forms 5.0. i want to
convert it to a web based application. i do not want to rewrite
the scripts.if some of you could tell me the details about how to
go about it.
nullI am not sure if there is any tool to do that.
You can delete WebSphere specific xml files from ear/jar and open it in Weblogic's builder tool. Weblogic Builder is a GUI tool. Helps you assign values for deployment parameters, Transaction attributes, JNDI names and so on. Then you can generate deployment descriptors. Subsequently you can modify the descriptors as and when you want. -
Some minor issues we are facing in converting the 6i application to 10g ,
Regarding 10g froms i need support in resolving following issues:-
1. Direct print to default printer
In some of our applications user do not want to see the print preview and prefer direct print in 6i we were doing this by defining Desitination in report paramenters
2. Open each form in new window
We open each new form using OPEN_FORM() builtin, but all forms open in same MDI window, how using open form we can open the forms in new window
3. Maintaining source code in windows and linux
Initaially our developers test the forms under windows 10g AS environment but when the same form in uploaded on Linux machine they need to make some changes like " replacing all \ with /, converting all paths to lower case etc
how we can write the same code for linux and windows
These are some minor issues we are facing in converting the 6i application to 10g environment ...1) We don't do direct printing. We print everything to PDF files in a user's network mapped drive. They print or preview as required.
2) We overcame this problem by using Java WebStart
[http://groundside.com/blog/JanCarlin.php?title=forms_and_java_web_start&more=1&c=1&tb=1&pb=1]
It frees Forms from being browser based and looks more like a 'real' application.
3) We use FormsAPI Master [Link to ORCL-Toolbox|http://www.orcl-toolbox.com/] to automatically convert from Windows to Unix. Our script converts uppercase to lowercase for icons, menus, library attachments, etc. We only do this once - unless new libraries have been attached in the wrong case. For things like '\' to '/' , Windows is quite happy to accept '/' as a delimiter. "cd C:\temp" is the same as "cd c:/temp". However, there are obvious differences between Windows and Unix. If there is any interaction between the Form and the operating system, then we do all our testing in the Unix environment - leaving Windows as a "does the screen layout look OK" environment. -
Hi To All,
I'm converting a Applet into Application.
All the things are runing well but when my Applet gets to try the access getDocumentBase() method
its giving a nullPointerException
My all code is written below please help me to find out the problem
import java.awt.Frame;
import java.awt.event.*;
import java.awt.Dimension;
import java.applet.Applet;
// Applet to Application Frame window
public class AppletFrame extends Frame implements java.awt.event.WindowListener
public static void startApplet(String className, String title,String args[])
{ Dimension appletSize;
try
// create an instance of your applet class
myApplet = (Applet) Class.forName(className).newInstance();
catch (ClassNotFoundException e)
{ System.out.println("AppletFrame " + e);
return;
catch (InstantiationException e)
System.out.println("AppletFrame " + e);
return;
} catch (IllegalAccessException e)
System.out.println("AppletFrame " + e);
return;
} // initialize the applet myApplet.init();
myApplet.start();
AppletFrame f = new AppletFrame(title);
f.add("Center", myApplet);
f.addWindowListener(f);
appletSize = myApplet.getSize();
f.pack();
f.setSize(appletSize);
f.show();
public AppletFrame(String name)
{ super(name);
} public void windowClosing(java.awt.event.WindowEvent ev)
{ myApplet.stop();
myApplet.destroy();
java.lang.System.exit(0);
} public void windowClosed(java.awt.event.WindowEvent ev) {}
public void windowActivated(java.awt.event.WindowEvent ev) {}
public void windowDeactivated(java.awt.event.WindowEvent ev) {}
public void windowOpened(java.awt.event.WindowEvent ev) {}
public void windowIconified(java.awt.event.WindowEvent ev) {}
public void windowDeiconified(java.awt.event.WindowEvent ev) {}
private static Applet myApplet;
public static void main(String args[]){
startApplet("appletImageBook.appletImage.Standalone2","XApplets",args);
====================================================
And Standalone2.java is
public class Standalone2 extends Applet {
Image img ;
public void init()
{ add(new Button("Standalone Applet Button"));
img = getImage(getDocumentBase(),"images/office1.jpg");
public void paint(Graphics g) {
g.drawImage(img,0,0,null);
=====================================================
And while runing AppletFrame.java it is giving Error below
===============================
Exception in thread "main" java.lang.NullPointerException at java.applet.Applet.getDocumentBase(Applet.java:125)
at appletImageBook.appletImage.Standalone2.init(Standalone2.java:20) at appletImageBook.appletImage.AppletFrame.startApplet(AppletFrame.java: 38)
at appletImageBook.appletImage.AppletFrame.main(AppletFrame.java:99)
===============================
Any type of help will be fine for me
Thanks in advanceThe only difference between an applet and an application should be the way they are started.
Instead of adding an applet to a frame, open a frame from the applet. Open the same frame from your application.
Or instead of a frame, use a (J)Panel. Add it directly to your applet, or add it to a new frame when you want to run it as an application.
In any case: separate the way the UI is created from the way the application is started. -
Developing Web based applications using developer 6.0
How best i can use developer 6.0 as a web based application. I
have oracle web application server 4.0. Is it possible to
develop forms in 6.0 and use through the web application server.
nullT.Pavan Kumar (guest) wrote:
: How best i can use developer 6.0 as a web based application. I
: have oracle web application server 4.0. Is it possible to
: develop forms in 6.0 and use through the web application
server.
Yes, it's possible and it runs.
You will need:
- Application Server 4.0.7 or above (with 4.0.7 without patch,
do not install it on Win NT with SP4, it doesn't run
- Developer Server (may be it is not on your distribution CD for
Developer, but you can download or order it from OTN)
- JInitiator (the Oracle Java PlugIn, also available from otn)
for your end user's browser
Tip:
look very carefully at the documentation AND readmes. Also, if
you do this job for the first time, be prepared for some days of
work before your first form runs as a java applet...
peter
null -
Export/Convert Browser Based Infopath 2010 forms to PDF/Excel/Word
Hi,
Is there an OOB, way of converting browser based Infopath 2010 forms to PDF/Word/Excel.
In case there isnt, can anyone please point me to a coded or a programmatic way of implementing the same.
Soptik DuttaHi Soptik,
As far as I know, we can only save an InfoPath form as PDF/Excel using InfoPath Windows form application(rather than Broswer-based InfoPath).
In this case, we can
Open the library that save the forms
Selec the form that is wanted to be PDF/Excel(Just select it, don't open it)
Click the "inverse trangle", and then click "Edit in Microsoft InfoPath"
In InfoPath, click "File" > "Save & Send" to save the form as PDF/Excel
In this following thread, there are some code snippets, which will help you to export an form to PDF using custom code:
http://www.infopathdev.com/forums/t/8746.aspx?PageIndex=1
Please feel free to ask, if you have any more questions.
Thanks,
Jinchun Chen
Jinchun Chen
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact tnmff AT microsoft.com(Please replace AT with @) -
What technologies to use in web based application...??
Hi,
I have to develop a web-based application that will be used to display configured tests to user as well will allow user to add new tests and modify/delete already configured tests. What technologies shall i use to develop this application. And what will be fast to learn.
What is your opinion on applet-servlet approach here.
Please suggest.
Thanks,
DeepakWhat you've got sounds good.
If you're not going to build EJBs then you probably don't need JBoss.
Tomcat is the servlet engine for JBoss so you're getting the same thing but lighter by just using it.
The important thing is to make sure you have a nice separation of concerns. If you separate all of the database access by creating data access objects (DAO) objects that return plain old Java objects (POJO) then you can, if you choose, easily swap in Hibernate or another ORM Tool. -
How to add iad's to window based application in xcode for ios
hello,
Im trying to add iad's to a window based application. I add the framework and add the banner in interface builder. The program builds without any problems but when I try to run the application on the simulator, the app crashes. Don't know what im doing wrong. Do I need to add any extra code or something. Please help, thanks in advancehello,
Im trying to add iad's to a window based application. I add the framework and add the banner in interface builder. The program builds without any problems but when I try to run the application on the simulator, the app crashes. Don't know what im doing wrong. Do I need to add any extra code or something. Please help, thanks in advance -
Client/Server to Web-Based application Conversion
Hi! Everyone,
I have couple of questions for you guys.
Our Client had recently upgraded Forms 4.5 to 6i to move from Client/Server based application to Web based application.
They are using Forms Server 6i Patch Set 1, OAS 4.0.8.1, Windows NT Service Pack 5 and Oracle 7.3. They are facing the following error every now and then, when they run the forms,
"FRM-92100: Your connection to the server was interrupted. This may be the result of a network error or a failure on the server.You will need to re-establish your session."
Please let me know what might be causing the above error. The only problem i can think about might be Oracle 7.3. If i am right only Oracle 8 and above supports Forms 6i.
Can anyone let me know some tips and/or techniques to upgrade Forms 4.5 to 6i. If there are any important settings/steps which we might have over looked during the upgrade, please list them.
Any kind of help is greatly appreciated.
Thanks,
Jeevan Kallem
[email protected]Most of the code is use with no changes at all.
See otn.oracle.com/formsupgrade
Regards
Grant Ronald -
How to integrate web based application to windows based application
Hi,
Experts,
we developed web based application in this when we raising
invoice document after adding this we need to updated Amount
in integratee SAP B1 then that Amount we need Update The
Amount in OACT Table how we can Update in Amount Field
in OACT Particular Account Code. plz Guide me. and how to
integrate web absed application to windowbased application
plz help me.
Regds,
Samapth.Dear sampathdevunuri kumar,
You may develop the addon based on SDK DIServer for required function.
The DI Server is an extension of the DI API and supports all its objects. It is intended for high-volume data integration, where numerous client connections must be managed simultaneously and optimized for speed. It is also suitable where Web-services architecture is preferred.
Please refer to SDK help and SDK DIServer sample for more information.
Best Regards
Jane Jing
SAP Business One Forums team -
Web Based Application Single Sign on With Enterprise Portal
Good day Developers,
My question is really a two part question so forgive me in advance for asking in one post as I think they are relative to each other. My project is currently exlporing the creation of functionality that will allow the following:
1. We want to allow a secure Web Based application possessing the abilitiy to auithenticate the user into Enterprise Portal and by passing the login screen to get to a landing page/iview in our Enterprise Portal instannce.
2. We want the abilitity to perform a check of the user and create the user in the enterprise portal on the fly if they do not already exist.
So far in my research I've come across tools and white papers mentioning the use rof oAuth and OpenID. Is that the right way to tackle these two items. Thanks for your help in advance.
JDHi
1. You can do SSO between you application and portal using Verisign or third party authentication tool. I am not pretty sure how landing page and all will work as you mentioned.
As portal is web based, you can deply your application in portal server. So that you will not need any other authentication tool.Also you can save effort , cost.
2. By deploying application in portal also you do not have to concentrate on User management, which is itself a huge effort you have to put. Else you can go for third party tools like Identity management or ADS.
-Yogesh -
Authentication between Single Sign-On and Web based applications
Hi everyone,
I need to create a way in Portal 10g (10.1.2.0.2) that allow me to do the following:
Once the user is logged on Portal (against Single Sign-On - SSO) he doesn't need to retype his username/password when he access a web based application throught the portal, in my case, an ASP application (not .NET, just ASP).
I made a test creating a External Application in SSO and after publishing this portlet (external application) inside portal.
It worked, BUT I was prompted to inform username/password to log on the aplication.
So, the user end up entering his password twice.
Does anybody know a way to acomplish this task?
The documentation I'm researching is:
Oracle Application Server Single Sign-On
Administrator's Guide
10g Release 2 (10.1.2)
B14078-02
Oracle Application Server Single Sign-On
Security Guide
10g Release 2 (10.1.2)
B13999-03
Thank you very much,
Diogo Santos.have figured out how to secure any HTML, ASP, PHP, CFM, etc. web page again Portal / OID using the PDK toolkit.
Using AJAX (Asynchronous JavaScript and XML) and one Oracle Stored Procedure just adding a simple Javascript call to any HTML, ASP, PHP, etc. web page can secure it via Oracle SSO (OID). Access to any secured web page will require that it to be linked from an authenticated Portal session or a page opened in an authenticated Portal session.
This process can be easily modified to add in group security etc. This is just my starting point.
1) Create a stored procedure
# Make sure it has access to portal.wwctx_api.is_logged_on
CREATE OR REPLACE PROCEDURE login_ajax_check (
display_error IN number default NULL) AS
BEGIN NULL;
If portal.wwctx_api.is_logged_on = false then
htp.prn('DENY');
ELSE
htp.prn('ALLOW');
END IF;
Exception when others then htp.p('DENY');
END;
2) Use this Javascript in any page you wish to secure.
<-- Begin Paste Here -->
<script>
var allowgo=2
function ajaxCallRemotePage(url)
if (window.XMLHttpRequest)
// Non-IE browsers
req = new XMLHttpRequest();
req.onreadystatechange = processStateChange;
req.open("GET", url, false);
req.setRequestHeader("If-Modified-Since", "Sat, 1 Jan 2000 00:00:00 GMT");
req.send(null);
else if (window.ActiveXObject)
// IE
req = new ActiveXObject("Msxml2.XMLHTTP");
req.onreadystatechange = processStateChange;
req.open("GET", url, false);
req.setRequestHeader("If-Modified-Since", "Sat, 1 Jan 2000 00:00:00 GMT");
req.send();
else
return; // Navigateur non compatible
// process the return of the "ajaxCallRemotePage"
function CheckPortal()
ajaxCallRemotePage('[Your page calling the procedure from above]');
function processStateChange()
if (req.readyState == 4)
if (req.status == 200)
if (req.responseText.substring(0,4) == 'ALLO')
allowgo = 0;
else
allowgo = 1;
function doPage()
if (allowgo==1)
window.location='[Your login or error page]';
CheckPortal();
doPage();
</script>
<-- End Paste Here -->
That's it!!! Super easy. It works great too.
Larry Schenavar
[email protected]
Maybe you are looking for
-
ALV: How do I suppress repeating values and page breaks on printed output?
Good day, everyone! First, I've done a LOT of searching trying to find the answer to my question, but I'm not finding an answer. If this has already been answered and you can point me to a URL, I would appreciate it. Here's my issue: I have a rathe
-
How can I change my Profile photo or edit the thumbnail?
QuestionHow can I change my Profile photo or edit the thumbnail? AnswerThere are a couple of different ways to change your profile photo or thumbnail image on Tagged. Here's a quick How-to video that shows you how to change your profile photo If you
-
How to determine the bit rate with button over video subtitles?
I have a project where I've got several questions that come up on the screen. The DVD is subtitled in 14 languages, so depending on the language chosen, it will show the question in the proper language along with navigation buttons to go to the next
-
Problems deleting photos in i9
while editing and deleting photos in the library, I found that I could not delete any more photos. the photos stayed in the library but also were in trash. After numerous tries, they would not delete. In previous deletes, one time there were NO photo
-
I am still trying to get a webservice data source working with "Complex Type = true" in combination with an RTF template. It is a mistery to me, but I can not get it working, others had this problem before, see my other thread: BI Publisher - Read Si