Window/Form/Applet Size

I've recently upgraded a project from Forms 6i to 10g. However the sizes of the window, form and servlet vary and seem to be form specific. I've tried setting the forms applet parameter in the formsweb.cfg but each form seems to revert to its own form specific width.
How do i globally set the height and width of all of the forms, window and applets within my project?

Hello,
You would have thought of that since the application startup. You have PL/SQL library and object libraries to help you making the more reusable code as you can.
If this works is not done from the very beginning, the last solution is to use the JDAPI tool to apply massive changes to the source modules in a single shot.
Francois

Similar Messages

  • Forms window inside applet doesnt show buttons

    Hi everyone,
    We are trying to migrate some apps to Forms10, ( coming from client-server 6i ) and there seems to b some problem with the size of the forms window inside the applet. I have tried the solution i read here about using javascript, which spwans a window whith applet and the forms ( closing the parent ). So, i get the browser window ( with no menu bar, just like I want ) but the trouble is the form doesn't show it's buttons ( close and maximize )... to get them in the applet i must double click the border of the forms window, and then they appear... but if i maximize it, they get out of range again... can anyone help me ?
    thx in advance
    Joao Castro

    What Windows screen size settings are you working with... 800x600, 1024x768, 1280x1024?
    It sounds like you are using up all the available space on the screen, and in Web Forms, the containing windows take up a few more pixels.

  • How to get Applet size in my form ?

    I'm running Oracle forms 11g, I want to center my window use the code below :
      v_app_width := TO_NUMBER(GET_WINDOW_PROPERTY(FORMS_MDI_WINDOW,WIDTH));
      v_app_height := TO_NUMBER(GET_WINDOW_PROPERTY(FORMS_MDI_WINDOW,HEIGHT));
      v_win_width := TO_NUMBER(GET_WINDOW_PROPERTY(p_window_name,WIDTH));
      v_win_height := TO_NUMBER(GET_WINDOW_PROPERTY(p_window_name,HEIGHT));
    -- message("width" ||v_app_width);
      SET_WINDOW_PROPERTY(p_window_name,POSITION,(v_app_width- v_win_width) / 2,(v_app_height - v_offset - v_win_height) / 2);This works for 6i but not working for 11g. As
    GET_WINDOW_PROPERTY(FORMS_MDI_WINDOW,WIDTH)returns 0.
    But once that message line is uncommented, the next form calling this center window procedure works fine.
    My problem is similar with this one : http://www.orafaq.com/forum/t/149809/2/ But it has no solution.
    I also found this : http://docs.oracle.com/cd/B14099_19/winitan.1012/relnotes.1012/relnotes/forms.htm
    5.1.4.1 GET_WINDOW_PROPERTY Returns 0 on Microsoft Windows
    GET_WINDOW_PROPERTY(FORMS_MDI_WINDOW,WINDOW_HANDLE) returns zero even with separateframe=true. Oracle Forms Online Help states that this should work on windows platform. This is incorrect as this Built-in does not support MDI. [Edited on 3/12 4:50pm] Today I found this code does work for my first form (login form) when the application launches. After login, the rest forms can be centered very well. Don't know what's the reason.
    So if this doesn't work, how could I get the applet size and center my window ?
    Edited by: frank1018 on Mar 12, 2013 4:53 PM

    If you want to center your window when MDI is maximized..
    first create timer.. under when-new-forms-intance..
    Declare
         timer_id   Timer ;
    Begin     
      timer_id := Create_Timer( 'laf_timer', 50, NO_REPEAT ) ;
    end ;use this in when time expired.. because it will not run this procedure in when-new-forms-instance or pre-form triggers..
    declare
         mh number;     rh number;     mw number;     rw number;
    begin     
                      If lower(Get_Application_Property( TIMER_NAME )) = 'laf_timer' Then
                             mh     :=     get_window_property(forms_mdi_window,height);
                        mw     :=     get_window_property(forms_mdi_window,width);
                        rh     :=     get_window_property('yourwindowname',height);
                        rw     :=     get_window_property('yourwindowname',width);     
                        set_window_property('yourwindowname',position,(mw/2)-(rw/2),0);  /* i make 0 for the value of Y.. for i liked it on the top but you can change it too */
              end if;
    end ;Edited by: ck on Mar 14, 2013 2:44 AM

  • Applet Size/Object Size

    hello,
    why does the applet size / the object size when viewed in windows and linux is different. If the user uses Windows as the client PC the size is correct but when the same is viewed in Linux workstation its totally different. everything seems to be small. All the modules were created in windows but compiled and generated the fmx using linux and they are deployed in the linux server. Since the modules were developed in windows i understand there is some conflict with DPI and what we did was put a new parameter in the forwsweb.cfg and it worked. but that parameter has effect only if the browser is Internet Explorer. If i run the same using mozilla or firefox bcos linux workstation uses either mozilla or firefox. so what ever the values i specify for clientDPI no effect at all bcos the browser is not internet explorer. You might suggest me to develope everything in linux and set all the size there itself. But i cannot do that bcos we have more than 400 forms and developing or making changes is very very time consuming and its not practical for my situation.
    If you suggest me how to play around with the motiff settings in linux then I dont think the linux(fedora core1) is using those setting anymore.
    If any one can give me suggestions how to work around it that will be great.
    Thanks
    Blesson

    Blesson,
    is your client Linux, or the server. Linux as a client is not certified yet. For server issues, please contact customer support at metalink.oracle.com
    Frank

  • Applet size width and height = 100%

    Hello All.
    I am using the large font in windows. So I’ve change the applet size in formsweb.cfg file to width=100% and height=100%. Now the applet area fills the browser windows when I maximize it. But if I try to resize it using the mouse from the lower right corner. The form will be busy and never respond to any event and staying like this forever.
    Is there any one come across the problem?
    I am using
    Application server 10g (9.0.4)
    Form 9i
    Client PC (windows 2000)

    Ooookay ..... then how come I've got an demo of
    someone's applet here that does exactly this, i.e.
    draws outside of it's original size ?
    Show us the demo.
    How might they do it ? (dont really want to decompile
    someone else's class file, coz that's rude :-)Maybe someone will do it for you; the impossible has always attracted the human mind.

  • How to make column headers in table in PDF report appear bold while datas in table appear regular from c# windows forms with sql server2008 using iTextSharp

    Hi my name is vishal
    For past 10 days i have been breaking my head on how to make column headers in table appear bold while datas in table appear regular from c# windows forms with sql server2008 using iTextSharp.
    Given below is my code in c# on how i export datas from different tables in sql server to PDF report using iTextSharp:
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using System.Windows.Forms;
    using System.Data.SqlClient;
    using iTextSharp.text;
    using iTextSharp.text.pdf;
    using System.Diagnostics;
    using System.IO;
    namespace DRRS_CSharp
    public partial class frmPDF : Form
    public frmPDF()
    InitializeComponent();
    private void button1_Click(object sender, EventArgs e)
    Document doc = new Document(PageSize.A4.Rotate());
    var writer = PdfWriter.GetInstance(doc, new FileStream("AssignedDialyzer.pdf", FileMode.Create));
    doc.SetMargins(50, 50, 50, 50);
    doc.SetPageSize(new iTextSharp.text.Rectangle(iTextSharp.text.PageSize.LETTER.Width, iTextSharp.text.PageSize.LETTER.Height));
    doc.Open();
    PdfPTable table = new PdfPTable(6);
    table.TotalWidth =530f;
    table.LockedWidth = true;
    PdfPCell cell = new PdfPCell(new Phrase("Institute/Hospital:AIIMS,NEW DELHI", FontFactory.GetFont("Arial", 14, iTextSharp.text.Font.BOLD, BaseColor.BLACK)));
    cell.Colspan = 6;
    cell.HorizontalAlignment = 0;
    table.AddCell(cell);
    Paragraph para=new Paragraph("DCS Clinical Record-Assigned Dialyzer",FontFactory.GetFont("Arial",16,iTextSharp.text.Font.BOLD,BaseColor.BLACK));
    para.Alignment = Element.ALIGN_CENTER;
    iTextSharp.text.Image png = iTextSharp.text.Image.GetInstance("logo5.png");
    png.ScaleToFit(105f, 105f);
    png.Alignment = Element.ALIGN_RIGHT;
    SqlConnection conn = new SqlConnection("Data Source=NPD-4\\SQLEXPRESS;Initial Catalog=DRRS;Integrated Security=true");
    SqlCommand cmd = new SqlCommand("Select d.dialyserID,r.errorCode,r.dialysis_date,pn.patient_first_name,pn.patient_last_name,d.manufacturer,d.dialyzer_size,r.start_date,r.end_date,d.packed_volume,r.bundle_vol,r.disinfectant,t.Technician_first_name,t.Technician_last_name from dialyser d,patient_name pn,reprocessor r,Techniciandetail t where pn.patient_id=d.patient_id and r.dialyzer_id=d.dialyserID and t.technician_id=r.technician_id and d.deleted_status=0 and d.closed_status=0 and pn.status=1 and r.errorCode<106 and r.reprocessor_id in (Select max(reprocessor_id) from reprocessor where dialyzer_id=d.dialyserID) order by pn.patient_first_name,pn.patient_last_name", conn);
    conn.Open();
    SqlDataReader dr;
    dr = cmd.ExecuteReader();
    table.AddCell("Reprocessing Date");
    table.AddCell("Patient Name");
    table.AddCell("Dialyzer(Manufacturer,Size)");
    table.AddCell("No.of Reuse");
    table.AddCell("Verification");
    table.AddCell("DialyzerID");
    while (dr.Read())
    table.AddCell(dr[2].ToString());
    table.AddCell(dr[3].ToString() +"_"+ dr[4].ToString());
    table.AddCell(dr[5].ToString() + "-" + dr[6].ToString());
    table.AddCell("@count".ToString());
    table.AddCell(dr[12].ToString() + "-" + dr[13].ToString());
    table.AddCell(dr[0].ToString());
    dr.Close();
    table.SpacingBefore = 15f;
    doc.Add(para);
    doc.Add(png);
    doc.Add(table);
    doc.Close();
    System.Diagnostics.Process.Start("AssignedDialyzer.pdf");
    if (MessageBox.Show("Do you want to save changes to AssignedDialyzer.pdf before closing?", "DRRS", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Exclamation) == DialogResult.Yes)
    var writer2 = PdfWriter.GetInstance(doc, new FileStream("AssignedDialyzer.pdf", FileMode.Create));
    else if (MessageBox.Show("Do you want to save changes to AssignedDialyzer.pdf before closing?", "DRRS", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Exclamation) == DialogResult.No)
    this.Close();
    The above code executes well with no problem at all!
    As you can see the file to which i create and save and open my pdf report is
    AssignedDialyzer.pdf.
    The column headers of table in pdf report from c# windows forms using iTextSharp are
    "Reprocessing Date","Patient Name","Dialyzer(Manufacturer,Size)","No.of Reuse","Verification" and
    "DialyzerID".
    However the problem i am facing is after execution and opening of document is my
    column headers in table in pdf report from
    c# and datas in it all appear in bold.
    I have browsed through net regarding to solve this problem but with no success.
    What i want is my pdf report from c# should be similar to following format which i was able to accomplish in vb6,adodb with MS access using iTextSharp.:
    Given below is report which i have achieved from vb6,adodb with MS access using iTextSharp
    I know that there has to be another way to solve my problem.I have browsed many articles in net regarding exporting sql datas to above format but with no success!
    Is there is any another way to solve to my problem on exporting sql datas from c# windows forms using iTextSharp to above format given in the picture/image above?!
    If so Then Can anyone tell me what modifications must i do in my c# code given above so that my pdf report from c# windows forms using iTextSharp will look similar to image/picture(pdf report) which i was able to accomplish from
    vb6,adodb with ms access using iTextSharp?
    I have approached Sound Forge.Net for help but with no success.
    I hope anyone/someone truly understands what i am trying to ask!
    I know i have to do lot of modifications in my c# code to achieve this level of perfection but i dont know how to do it.
    Can anyone help me please! Any help/guidance in solving this problem would be greatly appreciated.
    I hope i get a reply in terms of solving this problem.
    vishal

    Hi,
    About iTextSharp component issue , I think this case is off-topic in here.
    I suggest you consulting to compenent provider.
    http://sourceforge.net/projects/itextsharp/
    Regards,
    Marvin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • I Need Help Trying to Play (.pls) files in a simple windows forms Application

     So I'm try to build application that when I click on the icon it opens a little window and play the url .pls. I already got the graphics of the app i just to get the code and I've been looking around for but all i got was this code
    typedef struct
    int count;
    void **name;
    void **displayname;
    } Playlist;
    Playlist* my_playlist; // SHOUTCAST PLAYLIST
    #define BOX(text) MessageBox(NULL,text,"Info",MB_OK | MB_TOPMOST);
    char *stristr(char *string2, char *string1) // from /samples/fmod/Main.c
    char *s1 = strdup(string1);
    char *s2 = strdup(string2);
    char *ret = 0;
    int i, j;
    int len1 = (int)strlen(string1);
    int len2 = (int)strlen(string2);
    for (i=0;s1[i];i++) s1[i] = tolower(s1[i]);
    for (i=0;s2[i];i++) s2[i] = tolower(s2[i]);
    for (j=0;j < (len2 - len1);j++)
    char *a = s1;
    char *b = &s2[j];
    for (i=0;(i < len1) && *a && *b;a++, b++, i++)
    if (*a != *b)
    break;
    if (i == len1)
    ret = &string2[j];
    break;
    free(s1);
    free(s2);
    return ret;
    Playlist *ParsePlaylist(char *name) // from /samples/fmod/Main.c and MSDN
    char *filebuf, *p;
    Playlist *playlist = 0;
    int count, i;
    // Check if URL is null
    if (!name)
    BOX("Streaming URL is empty");
    return 0;
    // Check if URL is a *.pls file
    if (_stricmp((const char *)".pls", (const char *)(&name[strlen(name) - 4])))
    return 0;
    // Create a WinInet session
    HINTERNET hSession = InternetOpen(_T(""), INTERNET_OPEN_TYPE_PRECONFIG, 0, 0, 0);
    // Prepare a request
    HINTERNET hRequest = InternetOpenUrl(hSession, name, 0, 0, 0, 0);
    // Send the HTTP request.
    HttpSendRequest(hRequest, 0, 0, 0, 0);
    // Read the response data.
    DWORD dwNumberOfBytesAvailable = 0;
    do
    // Retrieve size of remote file
    InternetQueryDataAvailable(hRequest, &dwNumberOfBytesAvailable, 0, 0);
    if (0 < dwNumberOfBytesAvailable)
    // Allocate buffer memory
    filebuf = new char[dwNumberOfBytesAvailable + 1];
    filebuf[dwNumberOfBytesAvailable] = 0;
    DWORD dwBytesRead = 0;
    // Read remote file and put in buffer
    InternetReadFile(hRequest,
    filebuf,
    dwNumberOfBytesAvailable,
    &dwBytesRead);
    //BOX(filebuf);
    while (0 < dwNumberOfBytesAvailable);
    // Close the request handle.
    InternetCloseHandle(hRequest);
    // Close the WinInet session.
    InternetCloseHandle(hSession);
    // Parse the pls file (from Fmod sample)
    p = stristr(filebuf, "NumberOfEntries=");
    if (!p)
    BOX("Streaming : NumberOfEntries in pls file not found");
    return 0;
    p += 16;
    count = atoi(p);
    if (!count)
    BOX("Streaming : numeric value for NumberOfEntries not found");
    return 0;
    playlist = (Playlist *)calloc(sizeof(Playlist), 1);
    if (!playlist)
    BOX("Streaming : can't allocate memory for pls file (playlist)");
    return 0;
    playlist->count = count;
    playlist->name = (void **)calloc(sizeof(char *) * count, 1);
    if (!playlist->name)
    BOX("Streaming : can't allocate memory for pls file (playlist->name)");
    return 0;
    playlist->displayname = (void **)calloc(sizeof(char *) * count, 1);
    if (!playlist->displayname)
    BOX("Streaming : can't allocate memory for pls file (playlist->displayname)");
    return 0;
    for (i=0;i < count;i++)
    char tmp[32];
    char *filename, *displayname, *t;
    filename = displayname = 0;
    sprintf(tmp, "File%d=", i + 1);
    p = strstr(filebuf, tmp);
    if (p)
    p += strlen(tmp);
    t = p;
    for (;*t && (*t != 0xa) && (*t != 0xd);t++);
    if (*t)
    char tmpc = *t;
    *t = 0;
    filename = _strdup(p);
    *t = tmpc;
    if (strncmp(filename, "http://", 7) && strncmp(filename, "http:\\\\", 7))
    char *tmpname = _strdup(filename);
    p = &tmpname[strlen(tmpname) - 1];
    for (;(p > tmpname) && (*p != '\\') && (*p != '/');p--);
    if ((*p == '\\') || (*p == '/'))
    p++;
    displayname = _strdup(p);
    free(tmpname);
    playlist->name[i] = filename;
    playlist->displayname[i] = displayname;
    free(filebuf);
    return playlist;
    [main code]
    char string_music[256] = "http://www.shoutcast.com/sbin/shoutcast-playlist.pls?rn=6042&file=filename.pls"; // For example
    // Parse the remote file (in case it's a Shoutcast playlist (*.pls))
    my_playlist = ParsePlaylist(string_music);
    if (my_playlist)
    strcpy(string_music, (char*) my_playlist->name[0]); // for the first song in the playlist
    FSOUND_STREAM * my_stream = FSOUND_Stream_Open(string_music, FSOUND_NORMAL | FSOUND_NONBLOCKING, 0, 0);
    int int_sound_mp3 = FSOUND_Stream_Play(FSOUND_FREE, my_stream);
    and i got to link it to Wininet.lib
    and I'm a noob so i got problems as soon as i tried to put everything together
    so any help greatly appreciated 
    BTW if you know any other ways, that I'll be able to stream the audio that will be great to.
    heres the link for the audio stream (.pls)
    http://panel3.serverhostingcenter.com:2199/tunein/nrlsxglp.pls

    Hello 0cooldex0,
    What library do you used in this scenario? I haven't saw this FSOUND_STREAM from MSDN library.
    By the way, winform general is used for talking about Windows Form library, is is using C# or VB.NET but not C or C++. You are not posting in the right forum.
    In my point of view, you may choose the forum depending on the library you choosed and post on specific forum.
    Regards,
    Barry
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Forms applet does not load when request forwarded from custom servlet

    I have an existing forms app that I wish to call from a newly-developed servlet. The servlet determines which form to call and then forwards the request to the forms servlet using RequestDispatcher.forward().
    The request is forwarded correctly but when it is done all I see is a blank browser (IE7) window. When I View Source I see all the correct HTML code (from basejpi.htm) but it seems my browser does not attempt to load the forms applet. No messages are displayed in the Java Console. This is the same HTML that comes back if I run the forms app directly, e.g. click a link that goes straight to the forms servlet URL, only in that case the forms app starts up fine.
    Anyone know why this does not work?

    Figured out what is going on:
    In basejpi.htm there is "<SCRIPT LANGUAGE=JavaScript SRC=java/forms_ie.js>" that creates an OBJECT tag to load the forms applet. I believe since the context of my custom servlet is different than that of the forms servlet, forms_ie.js is not found when the request is forwarded from my servlet.
    One question answered raises another. There is also an OBJECT tag inside a NOSCRIPT tag for machines where scripting has been disabled:
    <!-- Forms applet definition (start) -->
    <NOSCRIPT>
    <OBJECT name=FormsApplet
    type="application/x-java-applet"
    ...>
    </NOSCRIPT>
    <SCRIPT LANGUAGE="JavaScript" SRC="java/forms_ie.js"></SCRIPT>
    My thinking is to remove the NOSCRIPT tag, and also the SCRIPT tag mentioned above, so all machines will simply see the OBJECT tag, like so:
    <!-- Forms applet definition (start) -->
    <OBJECT name=FormsApplet
    type="application/x-java-applet"
    ...>
    This makes me wonder why the SCRIPT option is there to begin with. Anyone see a downside to this approach?
    Kevin

  • Why do I get a MissingMan​ifestResou​rceExcepti​on when I try to use an MFC Control Wrapper in a Windows Forms Project with Measuremen​t Studio 7.0?

    I can use the .NET Windows Forms Controls without problems, but when I try to add an MFC control, everything appears to work fine until runtime. The program throws the aforementioned exception claiming that the resources haven't been added to the compiled project. Any help is appreciated. Thanks.
    Victor

    That is correct that you will need to create an interop wrapper for the 3D graph ActiveX control if you want to use the 3D graph in a Windows Forms project. However, data types like CNiReal64Vector are only in the C++ interfaces and are not in the ActiveX interface, hence you can use normal .NET data types and will not need to create the C++ data types. The interop wrapper will convert the .NET data types to the expected ActiveX data types and will pass those data types on to the ActiveX control. For example, here is a C# example that demonstrates how to plot a dual sine surface on the interop wrapper of the 3D graph:
    const int size = 40;
    double[] xData = new double[size];
    double[] yData = new double[size];
    double[,] z
    Data = new double[size, size];
    for (int i = 0; i < size; ++i)
    xData[i] = yData[i] = ((i - 20.0) / 20.0) * Math.PI;
    for (int i = 0; i < size; ++i)
    for (int j = 0; j < size; ++j)
    zData[j, i] = Math.Sin(xData[i]) * Math.Cos(yData[j]) + 2.0;
    graph3D.Plot3DSurface(xData, yData, zData, Type.Missing);
    - Elton

  • Trap and Windows Forms

    Hi, usually i have a  trap{} in my scripts to handle and log(!) all
    unforseen exceptions which i have
    not otherwise handled via Try/catch.
    This works great.
    But, when i have a script with windows forms, all exceptions will be displayed automatically as a system-popup
    and the code inside trap{} is not executed, so the error never gets logged.
    Why is the trap being ignored?
    And how do i make my form execute the trap in case of an exception?
    Thanks, Rob 
    http://www.administrator.de/

    Thanks for your reply David.
    Separate runspace? Mhm, I dont think so. Otherwise I would not be able to access variables of the root script (that set up the form), would I? 
    Also i do not set up confined script blocks to the events. They call functions in the script which call other functions and so on. Its
    all one script, only that actions are triggered by events.
    That depends on how the runspace is set up (and in this case, it's all being done by the PowerShell engine, so I'm not sure exactly what's happening.)  It's possible to give different runspaces access to the same variables, functions, etc (though you
    have to be careful when doing that, as you may create race conditions.)
    As I said, I don't know if that's actually what's happening here, but it would make sense.  Your main thread is blocking on $form1.ShowDialog(); until that function returns, execution would never jump to your trap block.
    Anyhow, regardless of the technical details of why it's behaving this way, making sure you set up a new trap statement within those events (or the functions they call) does seem to work:
    trap { Invoke-ErrorHandler -ErrorRecord $_ }
    function Invoke-ErrorHandler
    [CmdletBinding()]
    param (
    [Parameter(Mandatory = $true)]
    [System.Management.Automation.ErrorRecord]
    $ErrorRecord
    Write-Host "This statement called from the error handler."
    [void][System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms")
    [System.Windows.Forms.Application]::EnableVisualStyles()
    $form1 = New-Object 'System.Windows.Forms.Form'
    $form1.ClientSize = '200, 150'
    $button1 = New-Object 'System.Windows.Forms.Button'
    $button1.Location = '54, 45'
    $button1.Size = '75, 23'
    $form1.Controls.Add($button1)
    $button1.add_mouseclick({ TestFunction })
    function TestFunction {
    trap { Invoke-ErrorHandler -ErrorRecord $_ }
    $button1.FalseProperty = 1
    # TestFunction ## If you call the function here, instead of the command below, the trap catches the error
    $form1.ShowDialog()

  • Error while invoking infobus form applet

    Hi,
    Iam trying to deploy a InfoBus form applet created using JDeveloper 3.0 to IIS server in windows NT. I deployed the applet as follows.
    1) I created EmpTest.jar file which consists of InfoBus form applet code files which I created using JDeveloper 3.0 as instructed in the online help.
    2) I created two virtual directories in IIS one for holding the base html file and other for holding the Java archive files.
    if_code -- Virtual directory for Java Archive files
    if_html -- Virtual directory for the Base Html File
    3) I copied the Base Html file to "if_html" virtual directory
    4) I copied the following classes to the "if_code" virtual directory
    EmpTest.jar
    jdev-rt.zip
    classes111.zip (Oracle 8i v8.1.5)
    connectionmanager.zip
    jbodatum.zip
    jbomt.zip
    jboremote.zip
    jndi.jar
    xmlparserv2.jar
    javax_ejb.zip
    dacf.zip
    infobus.jar
    swingall.jar
    LW_pfjbean.jar
    classes.zip
    Now when I invoke the Base html file in Netscape navigator I get the following messages in the Java Console.
    Java(TM) Plug-in
    Using JRE version 1.2.1
    User home directory = C:\WINNT\Profiles\Administrator
    Proxy Configuration: no proxy
    JAR cache enabled.
    Opening http://sairam/if_code/EmpTest.jar no proxy
    No holding
    CacheHandler trying caching. http://sairam/if_code/EmpTest.jar
    CacheHandler file name: c:\Program Files\Netscape\Users\srinioj\cache\MUBVHFDO.JAR
    Got cached copy
    Opening http://sairam/if_code/jdev-rt.zip no proxy
    Opening http://sairam/if_code/classes111.zip no proxy
    Opening http://sairam/if_code/connectionmanager.zip no proxy
    Opening http://sairam/if_code/jbodatum.zip no proxy
    Opening http://sairam/if_code/jbomt.zip no proxy
    Opening http://sairam/if_code/jboremote.zip no proxy
    Opening http://sairam/if_code/jndi.jar no proxy
    No holding
    CacheHandler trying caching. http://sairam/if_code/jndi.jar
    CacheHandler file name: c:\Program Files\Netscape\Users\srinioj\cache\MU9IQQ75.JAR
    Got cached copy
    Opening http://sairam/if_code/xmlparserv2.jar no proxy
    No holding
    CacheHandler trying caching. http://sairam/if_code/xmlparserv2.jar
    CacheHandler file name: c:\Program Files\Netscape\Users\srinioj\cache\M01S0B5S.JAR
    Got cached copy
    Opening http://sairam/if_code/javax_ejb.zip no proxy
    Opening http://sairam/if_code/dacf.zip no proxy
    Opening http://sairam/if_code/infobus.jar no proxy
    No holding
    CacheHandler trying caching. http://sairam/if_code/infobus.jar
    CacheHandler file name: c:\Program Files\Netscape\Users\srinioj\cache\M187DFUA.JAR
    Got cached copy
    Opening http://sairam/if_code/swingall.jar no proxy
    No holding
    CacheHandler trying caching. http://sairam/if_code/swingall.jar
    CacheHandler file name: c:\Program Files\Netscape\Users\srinioj\cache\M0HHIU2J.JAR
    Got cached copy
    Opening http://sairam/if_code/LW_pfjbean.jar no proxy
    No holding
    CacheHandler trying caching. http://sairam/if_code/LW_pfjbean.jar
    CacheHandler file name: c:\Program Files\Netscape\Users\srinioj\cache\M0CG0F19.JAR
    Got cached copy
    Opening http://sairam/if_code/classes.zip no proxy
    Opening http://sairam/if_code/oracle/dacf/dataset/ResTable_en_US.class no proxy
    No holding
    CacheHandler trying caching. http://sairam/if_code/oracle/dacf/dataset/ResTable_en_US.class
    CacheHandler file name: null
    No cache available, using remote copy
    Opening http://sairam/if_code/oracle/dacf/dataset/ResTable_en_US.class no proxy
    java.lang.ClassFormatError: oracle/dacf/dataset/ResTable_en_US (Bad magic number)
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(Compiled Code)
    at java.security.SecureClassLoader.defineClass(Compiled Code)
    at sun.applet.AppletClassLoader.findClass(Compiled Code)
    at java.lang.ClassLoader.loadClass(Compiled Code)
    at sun.applet.AppletClassLoader.loadClass(Compiled Code)
    at java.lang.ClassLoader.loadClass(Compiled Code)
    at java.util.ResourceBundle.findBundle(Compiled Code)
    at java.util.ResourceBundle.getBundle(Compiled Code)
    at java.util.ResourceBundle.getBundle(ResourceBundle.java:334)
    at oracle.dacf.dataset.Res.<clinit>(Res.java:16)
    at oracle.dacf.dataset.SessionInfo.<clinit>(SessionInfo.java:65)
    at EmpPackage.EmpApplet.<init>(EmpApplet.java:213)
    at java.lang.Class.newInstance0(Native Method)
    at java.lang.Class.newInstance(Compiled Code)
    at sun.applet.AppletPanel.createApplet(AppletPanel.java:532)
    at sun.plugin.AppletViewer.createApplet(AppletViewer.java:759)
    at sun.applet.AppletPanel.runLoader(AppletPanel.java:468)
    at sun.applet.AppletPanel.run(Compiled Code)
    at java.lang.Thread.run(Thread.java:479)
    The same program when run inside the Jdeveloper runs fine.
    Can anyone show a light on this? Appreciate any kind of help in this.
    OS - Windows NT service pack 5
    Browser - Netscape Navigator v 4.51
    JRE - V1.2
    Database - Oracle 8i v 8.1.5
    My Email Id is [email protected]
    Warm Regards,
    Srini.

    Another thing I want to mention is if I run my process2 independently it works fine. So my guess is that the way I'm calling Process2 from Process1 maynot be correct. I'm not even sure if this thing will actually work or not.
    Process1 has a webservice that has http binding to call an outside servlet. I need to have another layer in between (Process2) that will call the Outside servlet. So it's Process1 calling Process2 and Process2 calling the outside servlet.
    My hands are tied that I can't change the webservice in Process1 or modify Process1 directly (I don't own this and it's shipped as standard functionality) which calls the servlet and has http binding. How can I call Process2 from the same binding and what endpoint should I use for my process ?
    Any help is highly appreciated.
    Thanks,
    Megha

  • Make progressbar appear on buttonclick in Windows Forms Powershell script?

    Hello.
    I am not very good at Powershell, so please bear with me if I ask questions which are easy to Powershell experts.
    I have a Powershell script with 4 buttons, which each calls different .bat files I've written, to automatically backup my pictures and music and such, to my external harddrive and all that works perfectly.
    Is there a way to make a marquee progressbar appear inside the window when a button is clicked? (strictly for good looks)
    I have a code for a progressbar which works fine by itself, but can I make it appear when I click each button? Here is the code for the progressbar:
    $progStrip = New-Object System.Windows.Forms.ProgressBar
    $progStrip.Top = 70
    $progStrip.Left = 10
    $progStrip.Width = 515
    $progStrip.Value = 0
    $progStrip.Style="Marquee"
    $progStrip.MarqueeAnimationSpeed = 50
    $form.Controls.Add($progStrip)**
    And here is my Powershell script with the button, that I want to trigger a progress bar, Marquee style for simplicity. Thank you very much in advance
    Add-Type -AssemblyName System.Windows.Forms
    [System.Windows.Forms.Application]::EnableVisualStyles()
    $form = New-Object System.Windows.Forms.Form
    $form.Size = New-Object System.Drawing.Size(550,210)
    $form.Text = "System Backup"
    $form.FormBorderStyle = "FixedDialog"
    $form.StartPosition = "CenterScreen"
    $form.KeyPreview = $True
    $form.Add_KeyDown({if ($_.KeyCode -eq "Escape")
    {$form.Close()}})
    $icon = [system.drawing.icon]::ExtractAssociatedIcon('D:\Documents\Andet\Icons\icon1 (3).ico')
    $form.Icon = $icon
    $statStrip = New-Object System.Windows.Forms.StatusStrip
    $statStrip.Items.Add("Backup via Powershell") | Out-Null
    $form.Controls.Add($statStrip)
    $1Button = New-Object System.Windows.Forms.Button
    $1Button.Location = New-Object System.Drawing.Size(10,100)
    $1Button.Size = New-Object System.Drawing.Size(125,40)
    $1Button.Text = "Saved games backup"
    $1Button.Add_Click({Start-Process "C:\Backup\Backup1.bat"})
    $form.Controls.Add($1Button)
    $2Button = New-Object System.Windows.Forms.Button
    $2Button.Location = New-Object System.Drawing.Size(140,100)
    $2Button.Size = New-Object System.Drawing.Size(125,40)
    $2Button.Text = "Fuld backup til ekstern harddisk"
    $2Button.Add_Click({Start-Process "C:\Backup\Backup2.bat"})
    $form.Controls.Add($2Button)
    $3Button = New-Object System.Windows.Forms.Button
    $3Button.Location = New-Object System.Drawing.Size(270,100)
    $3Button.Size = New-Object System.Drawing.Size(125,40)
    $3Button.Text = "Slet og omdøb filer/mapper"
    $3Button.Add_Click({Start-Process "C:\Backup\Delete.bat"})
    $form.Controls.Add($3Button)
    $4Button = New-Object System.Windows.Forms.Button
    $4Button.Location = New-Object System.Drawing.Size(400,100)
    $4Button.Size = New-Object System.Drawing.Size(125,40)
    $4Button.Text = "Afslut"
    $4Button.Add_Click({$form.Close()})
    $form.Controls.Add($4Button)
    $objLabel = New-Object System.Windows.Forms.Label
    $objLabel.Location = New-Object System.Drawing.Size(185,15)
    $objLabel.Size = New-Object System.Drawing.Size(200,50)
    $objLabel.Font = New-Object System.Drawing.Font("Arial",15)
    $objLabel.Text = "Vælg backup type:"
    $form.Controls.Add($objLabel)
    $form.Topmost = $True
    $form.ShowDialog()

    Thank you very much for your detailed reply.
    Can you please show me a quick example, of how I can run multiple xcopy after one another, like "xcopy c:\test1 c:\test2" and then "xcopy c:\test3 c:\test4" when I click button 1, how would I write this bit then:
    Thank you in advance.
    $1Button = New-Object System.Windows.Forms.Button
    $1Button.Location = New-Object System.Drawing.Size(10,100)
    $1Button.Size = New-Object System.Drawing.Size(125,40)
    $1Button.Text = "Saved games backup"
    $1Button.Add_Click({Start-Process "C:\Backup\Backup1.bat"})
    $form.Controls.Add($1Button)

  • Forms applet doesn't respond anymore

    Hi,
    Migrating to SunJVM 1.6.0_07 (JPI) our forms application sometimes crashes. It happens when dragging the mouse over the value displayed in a text field. About once a month on a normal PC and a couple of times a day on a virtual client. It never occurred in the old MS-JVM.
    - No ORA- or FRM- error message
    - Forms applet does not respond anymore to anything. But it's still running
    - Java Console shows stacktrace below 12 times
    - Running JVM gets corrupted. Subsequent Forms sessions have the same problem. Closing all browser windows resets JVM
    We are running Forms 9.0.2.11.0 = 9iAS + patchset 2 (Yes, I know it's not supported anymore :-( )
    Does anyone have a clue, what might be causing it?
    Regards,
    Roel
    Exception in thread "AWT-EventQueue-5" java.lang.IllegalThreadStateException
         at java.lang.ThreadGroup.add(Unknown Source)
         at java.lang.Thread.start(Unknown Source)
         at oracle.ewt.timer.Timer.schedule(Unknown Source)
         at oracle.ewt.lwAWT.lwText.AutoScroller.schedule(Unknown Source)
         at oracle.ewt.lwAWT.lwText.LWTextField.processMouseMotionEvent(Unknown Source)
         at java.awt.Component.processEvent(Unknown Source)
         at java.awt.Container.processEvent(Unknown Source)
         at oracle.ewt.lwAWT.LWComponent.processEventImpl(Unknown Source)
         at oracle.ewt.lwAWT.lwText.LWTextComponent.processEventImpl(Unknown Source)
         at oracle.ewt.lwAWT.lwText.LWTextField.processEventImpl(Unknown Source)
         at oracle.ewt.lwAWT.LWComponent.redispatchEvent(Unknown Source)
         at oracle.ewt.event.tracking.GlassMouseGrabProvider$Disp._redispatchEvent(Unknown Source)
         at oracle.ewt.event.tracking.GlassMouseGrabProvider$Disp._redispatchEvent(Unknown Source)
         at oracle.ewt.event.tracking.GlassMouseGrabProvider$Disp.mouseDragged(Unknown Source)
         at java.awt.Component.processMouseMotionEvent(Unknown Source)
         at java.awt.Component.processEvent(Unknown Source)
         at java.awt.Container.processEvent(Unknown Source)
         at oracle.ewt.lwAWT.LWComponent.processEventImpl(Unknown Source)
         at oracle.ewt.lwAWT.LWComponent.redispatchEvent(Unknown Source)
         at oracle.ewt.lwAWT.LWComponent.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)

    no luck, still needs to be clicked several times to make it start...
    Is it browser/computer specific ? On one pc, I first get the 'click to activate and use this control' message, and then it takes several clicks afterwards until it recognises the key input. On a different pc I don't get the message, and it generally only takes one or two clicks.
    Any other tips/suggestions ?
    Cheers,
    Stu

  • How to blur the windows media player in windows form on a button click?

    Assaliam-o-Alaikum
    i want to disable the functionality of media player by default.But when button clicked it would enabled.
    Any idea how to implement it.
    thanks

    Assaliam-o-Alaikum
    i want to disable the functionality of media player by default.But when button clicked it would enabled.
    Any idea how to implement it.
    thanks
    Hi,
    It seems that you want to disable that media player, the way shared by Pisteuon works for creating a blur for both window and controls.
    If you want to disable that media player, you could consider using the following way, in this case we need the class below.
    ImageCapture.
    using System;
    using System.Collections.Generic;
    using System.Drawing;
    using System.Linq;
    using System.Runtime.InteropServices;
    using System.Text;
    using System.Threading.Tasks;
    using System.Windows.Forms;
    namespace YourNamespace
    public class ImageCapture
    [StructLayout(LayoutKind.Sequential)]
    public struct RECT
    public int left;
    public int top;
    public int right;
    public int bottom;
    [DllImport("User32.dll", CharSet = CharSet.Auto, SetLastError = true)]
    public static extern IntPtr SendMessage(IntPtr hWnd, uint msg, IntPtr wParam, IntPtr lParam);
    [DllImport("User32.dll")]
    public static extern IntPtr GetDesktopWindow();
    [DllImport("User32.dll")]
    public static extern IntPtr GetWindowDC(IntPtr hWnd);
    [DllImport("User32.dll")]
    public static extern IntPtr ReleaseDC(IntPtr hWnd, IntPtr hDC);
    [DllImport("User32.dll")]
    public static extern IntPtr GetWindowRect(IntPtr hWnd, ref RECT rect);
    public const int SRCCOPY = 0x00CC0020;
    [DllImport("gdi32.dll")]
    public static extern bool BitBlt(IntPtr hObject, int xDest, int yDest, int width, int height, IntPtr hObjectSource, int xSrc, int ySrc, int dwRop);
    [DllImport("gdi32.dll")]
    public static extern IntPtr CreateCompatibleBitmap(IntPtr hDC, int width, int height);
    [DllImport("gdi32.dll")]
    public static extern IntPtr CreateCompatibleDC(IntPtr hDC);
    [DllImport("gdi32.dll")]
    public static extern bool DeleteDC(IntPtr hDC);
    [DllImport("gdi32.dll")]
    public static extern bool DeleteObject(IntPtr hObject);
    [DllImport("gdi32.dll")]
    public static extern IntPtr SelectObject(IntPtr hDC, IntPtr hObject);
    public static Image CaptureControlImage(Control c)
    IntPtr hSrc = c.Handle;
    IntPtr hdcSrc = GetWindowDC(hSrc);
    RECT rWindow = new RECT();
    GetWindowRect(hSrc, ref rWindow);
    int width = rWindow.right - rWindow.left;
    int height = rWindow.bottom - rWindow.top;
    IntPtr hdcDest = CreateCompatibleDC(hdcSrc);
    IntPtr hBitmap = CreateCompatibleBitmap(hdcSrc, width, height);
    IntPtr hOld = SelectObject(hdcDest, hBitmap);
    BitBlt(hdcDest, 0, 0, width, height, hdcSrc, 0, 0, SRCCOPY);
    SelectObject(hdcDest, hOld);
    DeleteDC(hdcDest);
    ReleaseDC(hSrc, hdcSrc);
    Image img = Image.FromHbitmap(hBitmap);
    return img;
    Add a panel to bring to front, and draw what that media player looks as its background image.
    Panel myPanel; //add that panel to disable that media player
    private void button2_Click(object sender, EventArgs e)
    if (this.myPanel == null)
    myPanel = new Panel();
    myPanel.Size = this.axWindowsMediaPlayer1.Size;
    myPanel.Location = this.axWindowsMediaPlayer1.Location;
    DWM_BLURBEHIND bb = new DWM_BLURBEHIND(true);
    DwmEnableBlurBehindWindow((IntPtr)this.axWindowsMediaPlayer1.Handle, ref bb);
    myPanel.BackgroundImage = ImageCapture.CaptureControlImage(this.axWindowsMediaPlayer1 );
    this.Controls.Add(myPanel);
    myPanel.BringToFront();
    //remove that panel to enable that media player
    private void button3_Click(object sender, EventArgs e)
    { if (this.myPanel != null)
    this.Controls.Remove(myPanel);
    myPanel = null;
    Result:
     Regards,
    Carl
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Forms Applet Refresh

    Hi,
    I have deployed my Oracle 9i Forms on Oracle 9iAS.
    Sometimes when i invoke an LOV,the forms applet dissapears and the screen goes blank.This is not regular problem though.I have partially solved the problem by using synchronize built-in just before invoking the LOV.Kindly suggest a better method if any.
    Regards
    Deepak

    This sounds like it could be a bug - could it be related to the size of the LOV query?
    When you say the applet disappears do you mean that the application is now locked (and has to be restarted). If so, do you know if the app server runtime is still running??
    The only thing I could suggest at this point is to make sure you have the latest/certified patches and software versions and if possible, try it on an earlier release to see if it is a problems specific to 9i.
    Sorry I can't offer more information (it may be worth calling Support and working through this with them to see of we can get a reproducable bug).
    Thanks
    Grant Ronald
    Forms Product Management

Maybe you are looking for

  • Time Machine and Excel Missing File

    Hello, this is my first posting here and I would appreciate some help. An important Excel file of mine just disappeared both on my hard drive as well as on my Time Capsule backup, which is really puzzling me. Here are the facts: 1. I am using an iMac

  • DRM Import, Action Script

    Hi All, I am new to Hyperion DRM 11.1.2, I am confused about concepts such as metadata and data still not able to understand difference between them. What I understand is all Versions hold is set of independent hierarchies which have nodes and their

  • SSRS 2012 Reports freeze after first run in IE 11

    Hello, We have just recently upgraded/migrated from SSRS 2008R2 to SSRS 2012 sp2 (Windows 2012 R1).  We have found one report so far when using IE 11 that after the first run from the client side Internet Explorer freezes.  The report normally takes

  • Itunes playlist is deleting songs, I want to keep!

    When I try to create a new playlist, if any songs in the playlist are in any previous playlists, it deletes any duplicate songs from all previous playlists. How do I keep all my previous playlists the same if I want one song in multiple playlists?

  • How do I change the table to start from right to left

    How do I change the table to start from right to left