LOV works fine when run from JDEV

Hi OAF Gurus,
I have an issue with one of the LOV population.
It is an external LOV and I have created it as a seperate region and it works fine when I run from the Jdeveloper .
When I deploy it in the server,it throwing me an error with a OAF exception saying "java.sql.SQLException: ORA-01008: not all variables bound"
I have created a seperated controller for the external lov and initiate the query for it.
But when I click the About this page for the Region,it says theres no controller for the region.
How could this be solved?
Can this issue be tracked somehow?Answers plz as this is immediate.......
Regards,
Magesh.M.K.
Edited by: user1393742 on Jun 15, 2011 6:36 AM

Hi Gyan,
No I have not attached the controller through personalization.
My requirement is like
I need to create a lov item but I have to pass bind variables to the lov query.
I think this can be achieved only through external LOV, so I created an external lov and created a new controller for it and initiated the query and attached that to the normal page.
It runs fine through the Jdeveloper but when I deploy it, it is throwing an error saying bind variable not existing and I dont see a controller attached to the region.
Cannot understand whats the reason behind it?
Regards,
Magesh.M.K.

Similar Messages

  • I have a production mobile Flex app that uses RemoteObject calls for all data access, and it's working well, except for a new remote call I just added that only fails when running with a release build.  The same call works fine when running on the device

    I have a production mobile Flex app that uses RemoteObject calls for all data access, and it's working well, except for a new remote call I just added that only fails when running with a release build. The same call works fine when running on the device (iPhone) using debug build. When running with a release build, the result handler is never called (nor is the fault handler called). Viewing the BlazeDS logs in debug mode, the call is received and send back with data. I've narrowed it down to what seems to be a data size issue.
    I have targeted one specific data call that returns in the String value a string length of 44kb, which fails in the release build (result or fault handler never called), but the result handler is called as expected in debug build. When I do not populate the String value (in server side Java code) on the object (just set it empty string), the result handler is then called, and the object is returned (release build).
    The custom object being returned in the call is a very a simple object, with getters/setters for simple types boolean, int, String, and one org.23c.dom.Document type. This same object type is used on other other RemoteObject calls (different data) and works fine (release and debug builds). I originally was returning as a Document, but, just to make sure this wasn't the problem, changed the value to be returned to a String, just to rule out XML/Dom issues in serialization.
    I don't understand 1) why the release build vs. debug build behavior is different for a RemoteObject call, 2) why the calls work in debug build when sending over a somewhat large (but, not unreasonable) amount of data in a String object, but not in release build.
    I have't tried to find out exactly where the failure point in size is, but, not sure that's even relevant, since 44kb isn't an unreasonable size to expect.
    By turning on the Debug mode in BlazeDS, I can see the object and it's attributes being serialized and everything looks good there. The calls are received and processed appropriately in BlazeDS for both debug and release build testing.
    Anyone have an idea on other things to try to debug/resolve this?
    Platform testing is BlazeDS 4, Flashbuilder 4.7, Websphere 8 server, iPhone (iOS 7.1.2). Tried using multiple Flex SDK's 4.12 to the latest 4.13, with no change in behavior.
    Thanks!

    After a week's worth of debugging, I found the issue.
    The Java type returned from the call was defined as ArrayList.  Changing it to List resolved the problem.
    I'm not sure why ArrayList isn't a valid return type, I've been looking at the Adobe docs, and still can't see why this isn't valid.  And, why it works in Debug mode and not in Release build is even stranger.  Maybe someone can shed some light on the logic here to me.

  • VO substitution not taking effect when running from Jdev

    Hi,
    I made a VO substition. However, when running the page from Jdev, the substition is not in effect. When I press "about this page" I see the original view objects - not my own.
    I have verified that my .jpx file contains the substitution.
    I have tried followed the instructions in the OAF user guide and added -Djbo.project=<myprojectname> to the project runtime java options.
    However - if deploying the jpx file on the server with jpximport, the substitution is working. But why is it necessary to deploy that substition on the server when running locally. Also, that should not be necessary according to the user guide.
    Any ideas?

    When running locally u don't need to dceploy substitution on server.You only need to add substitutions in jdev and added -Djbo.project=<myprojectname>
    Note that
    the Name value is the .jpx file name without the .jpx extension (for example, ExtendLabSolutions). Be
    sure to include a space between any existing options and the new option.Also confirm u have put correct jpx file name.
    When I press "about this page" I see the original view objects - not my own.
    This is because about this page must be picking VO definations from DB, and since ur extended files are not in jdev... it will not reflect here.--Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Query filtering rows in the ViewObject but works fine when run in sql

    Hello,
    The below query returns 8 rows when run in SQL Plus but the same query when used in the viewobject, its only returning 4 rows. I tried in all possible ways but not sure what's happening.
    SELECT
    tt.assignment_number,
    tt.tab_name,
    tt.old_value,
    tt.new_value,
    tt.oracle_value
    FROM TestTable tt
    WHERE tt.ppa_id = :1
    AND ((:2 IS NULL) OR (:3 = tt.old_col))
    AND ((:4 IS NULL) OR (:5 = tt.new_col))
    Any suggestions are appreciated.
    Thanks
    --KK                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Try this
    OAViewObject OAViewB = (OAViewObject)OAAppl.findViewObject("DisplayDetailsVO");
    OAViewB.setWhereClauseParams(null);
    OAViewB.setWhereClauseParam(0,Integer.parseInt(Pid));
    OAViewB.setWhereClauseParam(1,Changes_Flag);
    OAViewB.setWhereClauseParam(2,Changes_Flag);
    OAViewB.setWhereClauseParam(3,Oracle_Flag);
    OAViewB.setWhereClauseParam(4,Oracle_Flag);
    OAViewB.setMaxFetchSize(-1);
    OAViewB.executeQuery();
    Thanks
    Shree

  • Working fine when running with eclipse, when exported, it doesnt.

    I have made a little mp3 player with the help of Jlayer 1.0 library. Now, it is running perfectly when I run it from eclipse. But when I export it to a .jar file, strange thing happens.
    The program starts ok, then I click add song button, a popup pops and wants me to choose a file, well I click the choose
    the file button, it opens a JfileChooser, choose file, everything ok so far. Now, I want to click ok so that the song would be added to the program, but nothing happens when I click ok. when running eclipse it would add the song to the Jtree and so on, now it does absolutely nothing, the box wont disappear, no error message, nothing. I wanted to check if it was somekind of bug in the button, but it would seem it does do some basic statements on the beginning, but when it would have to create
    new datastructure, it never comes back. I tested this with printing text when the program completed a statement and got the statement which makes the program idle. And the program doesnt freeze, it just wont do anything, and it wont even finish the method it is supposed when ok is clicked.
    Any suggestions? Im totally clueless.

    Yes, you probably don't have the application correctly set up to run outside of Eclipse. How to do that is different for each IDE. I am aware of the following tutorial for NetBeans, and (probably) Eclipse has something like that. You need to ask at the Eclipse website for that, since these forums are for the Java language, not Eclipse support.
    http://www.netbeans.org/kb/articles/javase-deploy.html

  • Spell checker quirky running Outlook mail with Firefox, works fine when running Windows

    Using Firefox with Outlook mail. Spell checker misses many obvious typos and misspellings. After correcting an error or two with spell checker underlining of remaining uncorrected errors disappears.
    Spell checker works properly when using Windows with Outlook mail.

    I'm not using the MS mail service very much these days as there have been too often issues in Firefox that took too long to get fixed by MS, so I hadn't noticed these issues, but with checking it out I can see the same happen if there are multiple errors marked.
    <pre><nowiki>function clk() { parent && parent.rteOnClick && parent.rteOnClick() }function kyu() { parent && parent.rteOnKeyUp && parent.rteOnKeyUp() }function drg(event) { parent && parent.rteOnDragOver && parent.rteOnDragOver(event) }function drp(event) { parent && parent.rteOnDrop && parent.rteOnDrop(event) }function Init(){var wl = window.location, d = document;var hn = wl.hostname, dmn = hn.substr((hn.lastIndexOf('.', (hn.lastIndexOf('.', hn.length)) - 1)) + 1).toLowerCase();if (("live.com" == dmn) || ("live-int.com" == dmn)) d.domain = dmn;if (d.addEventListener) { d.addEventListener('dragover', drg, false); d.addEventListener('drop', drp, false); }d.body.hideFocus = true}</nowiki></pre>

  • ICloud emails sent from apple mail or iPhone 3gs never arrives, works fine when sent from iCloud website

    The ony place I have been able to send and receive email since the launch of iCloud has been the icloud website. I wasn't able to send email from my iphone 3gs or apple mail at all until today, now it finally appears to let me send email but it never arrives to its destination.
    I can send an email from the icloud website without issue, and email sent from my icloud account using my iphone 3gs and apple mail seems to send fine and without error but who knows where it goes.
    Has anyone else experienced this issue?
    Thanks!
    Charles

    I figured out how to fix it... if anyone else has this problem, go to Outlook > Preferences > Accounts > select the IMAP account > Advanced > Folders and for "Store Sent Messages in this Folder:" select "Sent Messages (Server)."

  • SignTool.exe verify /pa returns exit code 1 from the code but works fine while running from command prompt

    Hi,
    I am using SignTool.exe from a new Process() to verify a codesigned assembly and it returns the exit code 1 whereas it returns exit code 0 while i run the same from Visual Studio Command prompt. Please let me know your thoughts...
    Here is my code snippet from VS2012 ultimate on Win7 PC.
    p = new Process();
                p.StartInfo.FileName = "C:\\Program Files (x86)\\Microsoft SDKs\\Windows\\v7.0A\\Bin\\SignTool.exe";
                string args = @"verify";
                p.StartInfo.Arguments =  args + " "+ "/pa " + "/v "+ name;
                p.Start();
                p.WaitForExit();
                pexitcode = p.ExitCode;
    //name = "C:\\Users\\v-maparn\\Documents\\Visual Studio 2012\\Projects\\CodesignVerification\\CodesignVerification\\bin\\Release\\Microsoft.IT.Core.dll"
    Thanks,
    Mani

    Hi Amy,
    Thanks for your reply. I am receiving the exit code 1 by the Process even though the SignTool is able to successfully verify the assembly. I ran the below command from command prompt and received no errors or warnings. I assume the exit code should be 0.
    I have also verified that this assembly has digital signature embedded as you can see from the output.
    output:
    C:\Windows\system32>signtool.exe verify /pa /v "C:\Users\v-maparn\Documents\Visu
    al Studio 2012\Projects\CodesignVerification\CodesignVerification\bin\Release\Mi
    crosoft.IT.Security.UI.SystemSecurityManagement.SSMUIWebHost.dll"
    Verifying: C:\Users\v-maparn\Documents\Visual Studio 2012\Projects\CodesignVerif
    ication\CodesignVerification\bin\Release\Microsoft.IT.Security.UI.SystemSecurity
    Management.SSMUIWebHost.dll
    Signature Index: 0 (Primary Signature)
    Hash of file (sha1): 1B58113B218260837A6B850561538A804B034F2A
    Signing Certificate Chain:
        Issued to: Microsoft Root Certificate Authority
        Issued by: Microsoft Root Certificate Authority
        Expires:   Sun May 09 15:28:13 2021
        SHA1 hash: CDD4EEAE6000AC7F40C3802C171E30148030C072
            Issued to: Microsoft Code Signing PCA
            Issued by: Microsoft Root Certificate Authority
            Expires:   Mon Aug 31 14:29:32 2020
            SHA1 hash: 3CAF9BA2DB5570CAF76942FF99101B993888E257
                Issued to: Microsoft Corporation
                Issued by: Microsoft Code Signing PCA
                Expires:   Thu Apr 24 14:33:39 2014
                SHA1 hash: 108E2BA23632620C427C570B6D9DB51AC31387FE
    The signature is timestamped: Mon Dec 30 02:58:12 2013
    Timestamp Verified by:
        Issued to: Microsoft Root Certificate Authority
        Issued by: Microsoft Root Certificate Authority
        Expires:   Sun May 09 15:28:13 2021
        SHA1 hash: CDD4EEAE6000AC7F40C3802C171E30148030C072
            Issued to: Microsoft Time-Stamp PCA
            Issued by: Microsoft Root Certificate Authority
            Expires:   Sat Apr 03 05:03:09 2021
            SHA1 hash: 375FCB825C3DC3752A02E34EB70993B4997191EF
                Issued to: Microsoft Time-Stamp Service
                Issued by: Microsoft Time-Stamp PCA
                Expires:   Wed Feb 11 14:11:31 2015
                SHA1 hash: D967AB4CF991F11DA6E318C880F1AF1A9C8D2C7C
    Successfully verified: C:\Users\v-maparn\Documents\Visual Studio 2012\Projects\C
    odesignVerification\CodesignVerification\bin\Release\Microsoft.IT.Security.UI.Sy
    stemSecurityManagement.SSMUIWebHost.dll
    Number of files successfully Verified: 1
    Number of warnings: 0
    Number of errors: 0
    C:\Windows\system32>
    Thanks,
    Mani

  • Opening Excel Workbook Fails when run from Scheduled Task on Windows Server 2008 Rw

    Hi,
    I have a little vbs script that instantiates the Excel.Application object and then opens a work book to perform some tasks on it. The script runs fine when run from the command line. When I attempt to run it as a scheduled task (it is supposed to update
    data that is pulled from a SQL Server at regular intervals), it fails with the following error:
    Microsoft Office Excel cannot access the file 'c:\test\SampleWorkbook.xlsm'. There are several possible reasons: .....
    The file does exist. The path reported in the error is correct. The account under which the task is running is the same account I use to run it from the command line. User Account Control is not enabled, and the task is set up to run with highest privileges.
    When I run the same script through the Task Scheduler from a Windows Server 2003 machine, it works without issue.
    I was just wondering if somebody on this forum has run into a similar issue in connection with Windows Server 2008 R2 and figured out what the magic trick is to make it work. I'm sure it is rights related, but I haven't quite figured out what which rights
    are missing.
    Thanks in advance for any advice you may have.

    This is truly killing me ... trying to get it working on Windows Server 2012 without success.
    I desperately need to automate running Excel macros in a "headless" environment, that is non-interactive, non-GUI, etc.
    I can get it to work using Excel.Application COM, either via VBScript or Powershell, successfully on many other Windows systems  in our environment - Windows Server 2008 R2, Windows 7 (32-bit), etc.,  -BUT-
    The two servers we built out for running our automation process are Windows Server 2012 (SE) - and it just refuses to run on the 2012 servers - it gives the messages below from VBScript and PowerShell, respectively- 
    I have tried uninstalling and re-installing several different versions of Microsoft Excel (2007 Standard, 2010 Standard, 2010 Professional Plus, 32-bit vs. 64-bit, etc.), but it makes no difference.
    Would be extremely grateful if any one out there has had any success in running Excel automation on Server 2012 in a non-interactive environment that they could share.
    ( I have tried adding the "%windir%\syswow64\config\systemprofile\desktop"
    folder, which did fix the issue for me when testing on Windows Server 2008 R2, but sadly did not resolve it on Windows Server 2012 )
    [VBScript error msg]
    Z:\TestExcelMacro.vbs(35, 1) Microsoft Office Excel: Microsoft Office Excel cannot
    access the file 'Z:\TestExcelMacro.xlsm'. There are several possible reasons:
    • The file name or path does not exist.
    • The file is being used by another program.
    • The workbook you are trying to save has the same name as a currently open work
    [Powershell error msg]
    Exception calling "Add" with "0" argument(s): "Microsoft Office Excel cannot open or save any more documents because th
    ere is not enough available memory or disk space.
     To make more memory available, close workbooks or programs you no longer need.
     To free disk space, delete files you no longer need from the disk you are saving to."
        + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
        + FullyQualifiedErrorId : ComMethodTargetInvocation
    You cannot call a method on a null-valued expression.
        + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
        + FullyQualifiedErrorId : InvokeMethodOnNull

  • ZBook 17 g2 - poor DPC Latency performance when running from z Turbo Drive PCIe SSD

    I'm setting up a new zBook 17 g2 and am getting very poor DPC latency performance (> 6000 us) when running from the PCIe SSD. I've re-installed the OS (Win 7 64 bit) on both the PCIe SSD and a SATA HDD and the DPC latency performance is fine when running from the HDD (50 - 100 us) but horrible when running from the PCIe SSD (> 6000 us).  I've updated the BIOS and tried every combination of driver and component enabling/disabling I can think of.  The DPC latency is extremely high from the initial Windows install with no drivers installed.  Adding drivers seems to have no effect on the DPC latency. Before purchasing the laptop I found this review: http://www.notebookcheck.net/Review-HP-ZBook-17-E9X11AA-ABA-Workstation.106222.0.html where the DPC latency measurement (middle of the page) looks OK.  Of course, this is the prior version of the laptop and I believe it does not have the PCIe SSD.  Combining that with the fact that I get fine performance when running from the HDD I am led to believe that the PCIe SSD is the cause of the problem. Has anyone found a solution to this problem?  As it stands right now my zBook is not usable for digital audio work when running from the PCIe SSD.  But it cost me a lot of money so I'd sure like to use it...! Thanks, rgames

    Hi mooktank, No solution yet but, as of about six weeks ago, HP at least acknowledged that it's a problem (finally).  I reproduced it perfectly on another zBook 17 g2 and another PCIe SSD in the same laptop and HP was able to reproduce the problem as well.  So the problem is clearly in the BIOS or with some driver related to the PCIe SSD.  It could also be with the firmware in the drive, itself, but I can't find any other PCIe drives in the 60 mm form factor.  So there's no way to see if a differnt type of drive would fix the problem. My suspicion is that it's related to the PCIe sleep states - those are known to cause exactly these types of problems because the drive takes quick "naps" to save power and there's a delay when it is told to wake back up.  That delay causes a delay in the audio buffer that results in pops/crackles/stutters that would never be noticed doing other tasks like video editing or CAD work .  So it's a problem specific to folks who need low-latency audio performance (very few apps require low latency audio - video editing, for example, uses huge buffers with relatively high latency).  A lot of desktops offer a BIOS option to disable those sleep states but no such option exists in HP's BIOS for that laptop.  In theory you can do it from within Windows but it doesn't have an effect on my system.  That might be one of those options that Windows allows you to change but that actually has no effect. One workaround is to disable CPU throttling.  That makes the CPU run at full speed all the time and, I believe, also disables the PCIe and other sleep states.  When I disable CPU throttling, DPC latency goes back to normal.  However, the CPU is then running full-speed all the time so your battery life basically goes to nothing and the laptop gets *very* hot. Clearly that is not necessary because the laptop runs fine from the SATA SSD.  HP needs to fix the latency problem associated with the PCIe drive. The next logical step is to provide a BIOS update that provides a way to disable the PCIe sleep states without disabling CPU throttling, like on many desktop systems.  The bad news is that HP tech support is not very technical, so it takes forever for them to figure out what I'm talking about.  It took a couple months for them to start using the DPC Latency checker. Hopefully there will be a fix at some point... in the meantime, I hope that HP sends me a check for spending so much time educating their techs on how computers work.  And for countless hours lost re-installing different OSes only to show that the performance is exactly the same as shown in the DPC Latency checker. rgames

  • Failed to initialize  Databank exception when run from OLT

    HI All,
    I've created a script with an associated databank,that runs perfectly fine when run from OpenScript. But when I run from OLT, the following waring is encountered.
    Start failure message from agent "OLT Server": oracle.oats.common.databank.DatabankException: Failed to initialize Databank 'Forms.forms'
    Stopped Autopilot because of error on agent "OLT Server".
    Name of my DB is : forms
    and Script name is :Forms
    Please let me know the solution for this.
    Regards,
    Karthik
    Edited by: user777720 on May 21, 2013 5:00 AM

    Have you tried changing the parameter in the Assets/Databank "Save Path" from "Relative to current script" to "Relative to a repository"?
    Regards, Ian.

  • The iTune Remote App has stopped finding my iTunes library when connected to wifi from my main router, but works fine when connected via second wifi router on the same network (different SSID)

    I'm running iTunes Remote App from a couple of iPhone 5's and a first generation iPod Touch. iTunes is running on a PC - Windows 7. My home network runs two Wifi Routers, each with a different SSID. I've had no problems with the Remote app running this set up for the last 8 months but recently the App can only find my iTunes library when the iPhone/iPod is connected via one specific router, when connected to the network via the other router, no iTunes library is found. I'm also running an Apple TV and it's the same as the iTunes Library, only visible via the one SSID.
    Everything else seems to work fine when connected via either router, eg Internet on the iPhones (definitely via wifi)
    I've tried renewing the lease on the iPhone wifi connection, restarting everything.....several times.....
    It used to work fine, this only seems to have been a problem in recent weeks
    Any help or advice would be much appreciated
    Thanks
    Ian

    It turned out to be the firewall settings on our router. Her machine was sending traffic that our router interpreted as a DoS attack and blacklisted her Airport's MAC address. That's why it would work fine if she switched to Ethernet.

  • Problem Executing Macro from Ribbon, Runs fine when called from intermediate, or 'normal' butons

    Hi,
    I've come across a very strange problem, we've been using some fairly simple macro's within excel for the last few months, I've recently come into a strange problem.
    I decided to make things easier by putting commands onto the ribbon and creating an addin, as this code is reused by most of our workbooks, and having thousands of files with this code in seems like an awesome way to fill up our drives :)
    Basically the code seems to just ignore the saveas command when run from the ribbon, code runs, ends saying successful, in the debugger stepping over the code it appears to step over the saveas command as appears that it's been excused without fail, however
    no file gets created, workbook does not get saved and it keeps its original book<x> caption
    here's a quick example of my code, I have a class module registering application commands
    the ribbon button i'm using is just a print button, using the application print which then calls this before print function
    this is the code that fires from the ribbon, we always print out 2 copies i'm not sure if this can be simplified?
    If Application.Workbooks.Count = 0 Then Exit Sub
    If CheckRangeExists("BVSID") = 1 Then
    ActiveWindow.SelectedSheets.PrintOut Copies:=2, Collate:=True, IgnorePrintAreas:=False
    End If
    Using CTRL P or File Print this works fine, BeforePrint triggers each time, but within Save Invoice it calls the Application.SaveAs function, when this print is fired from the ribbon this simply seems to get ignored
    Private Sub App_WorkbookBeforePrint(ByVal Wb As Workbook, Cancel As Boolean)
    'check worksheet belongs to bvs plugin
    If CheckRangeExists("BVSID") = 1 Then
    'code to save
    If SaveInvoice = 0 Then Cancel = True
    End If
    End Sub
    incase there is something weird i'm missing, this is the line that throws up no errrors, simply doesn't work, more annoyingly the SaveInvoice function returns no error, which in turn prints out the document, and its only until after you check for the file
    you would realise it didn't save, I've since put a check in to check the file has saved, so far everysingle time it does not save from the ribbon, pressing CTRL P or clicking File Print will always save the file?
    ActiveWorkbook.SaveAs Filename:=Path & Range("Invoice").Value & ".xlsx", FileFormat:=xlOpenXMLWorkbook, CreateBackup:=False
    before I have Application.DisplayAlerts = False and after Application.DisplayAlerts = True
    As the code is within an Addin my probably overly basic idea is to create a hidden range with the name BVSID, with the idea the events only fire with the sheets I've created
    Finally, If I type the
    ActiveWindow.SelectedSheets.PrintOut Copies:=2, Collate:=True, IgnorePrintAreas:=False
    in the debug window the code also runs, triggers the before print and saves the files
    any help would be most appreciated :)

    Thanks for the time!
    it works fine when using the normal print button on the custom ui, its when using a macro combined with
    ActiveWindow.SelectedSheets.PrintOut
    I've just created a blank workbook, with a class module to capture the before print, I've put 2 buttons on the custom ribbon, one using the default command, and the other to call a macro to reference the printout command
    before print gets activated on both tries, however the saveas command gets ignored, seems to run, but not do anything when called using the .PrintOut command.
    Here's the code I've used to test
    This Workbook code
    Private XLApp As CExcelEvents
    'set applications to be avaliable in the cexcelevents class module
    Private Sub Workbook_Open()
    Set XLApp = New CExcelEvents
    End Sub
    Module for custom button (not actually sure if this needs to be in a module but this is to mimic the same behaviour i'm getting with the addin
    Sub PrintInvoice(control As IRibbonControl)
    ActiveWindow.SelectedSheets.PrintOut Copies:=2, Collate:=True, IgnorePrintAreas:=False
    End Sub
    Class Events CExcelEvents
    'get application events
    Private WithEvents App As Application
    Private Sub App_WorkbookBeforePrint(ByVal Wb As Workbook, Cancel As Boolean)
    ActiveWorkbook.SaveAs "C:\Test\Book1_Copy.xlsm", XlFileFormat.xlOpenXMLWorkbookMacroEnabled
    End Sub
    Private Sub Class_Initialize()
    Set App = Application
    End Sub
    Private Sub Class_Terminate()
    Set App = Nothing
    End Sub
    CustomUI Code
    <customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui">
    <ribbon startFromScratch="false">
    <tabs>
    <tab id="customTab" label="Custom Tab">
    <group id="customGroup" label="Custom Group">
    <button idMso="FilePrint" imageMso="FilePrint" size="large"/>
    <button id="btnPrint" label="Print" imageMso="FilePrint" size="large" onAction="PrintInvoice" supertip="Saves Invoice Then Prints to Default Printer" enabled="true"/>
    </group>
    </tab>
    </tabs>
    </ribbon>
    </customUI>
    the button id btnprint is what I've been testing with so I copy pasted that button from the customui code I had
    I can't see away to add the workbook as an attachment, if needed I can upload it here too, this workbook was just created from scratch just incase its the addin I've got making some weird error

  • My audio does not work playing videos for Firefox 4 but is fine when running WMPlayer, how can I fix/check this ?

    I get no audio output from internet videos like tutorials for the new ff beta and such but it works fine when I run Windows Medial Player latest version . Is there an easy way to correct this or check for a correct fix ?

    Try to install the new WMP plugin
    * http://kb.mozillazine.org/Windows_Media_Player#Missing_plugin
    See also http://kb.mozillazine.org/Plugin-container_and_out-of-process_plugins

  • My iphone 4 wont connect to my wifi, it usualy works fine, when i go to settings it says its connected but on the home screen it still says 3g and is running at 3g speeds still, please help :)

    my iphone 4 wont connect to my wifi, it usualy works fine, when i go to settings it says its connected but on the home screen it still says 3g and is running at 3g speeds still? please help

    http://support.apple.com/kb/ts1398

Maybe you are looking for