GHWND coming Null in Acrobat 8

Am using the condition if (NULL != gHWND) to check whether document has been loaded in Acrobat and is visible.
This is working in Acrobat 7 Standard/Professional However, in Acrobat 8 Standard/Professional gHWND is coming NULL even after the document is opened causing the condition to fail.
Please suggest whether the functionality of gHWND has changed or what needs to be checked to determine whether the document has been opened and window is visible.

Aandi,
The piece of code using gHWND is doing the following tasks
1. Checking that a particular key is present in the document's Info dictionary.
2. Checking whether the Adobe window is visible using gHWND as this would contain the HWND of the main Acrobat Window.
Below is my code
---------------------------------------------------------------------- BOOL blnEADoc = false;
DURING
// Ensure that the EA_DOCUMENT key is present
if (0 < PDDocGetInfo(thePDDoc, EA_DOCUMENT_KEY, NULL, 0))
// Must also be visible!
if (NULL != gHWND)
blnEADoc = IsWindowVisible(gHWND);
Regarding the AVWindowIsVisible function, it needs a parameter of type "AVWindow". Please suggest what to pass in this parameter.
Please also suggest how to get the HWND associated with the Acrobat window for passing in the SetTimer Windows SDK function.

Similar Messages

  • Null Pointer Exception Error's in WebDynpro Java

    Hi All,
    How Types are coming Null Pointer Exception Error's in WebDynpro Java, Please provide the types.of Errors.
    Ex. Cardinality Type not correct etc...
    Thanks,
    Bye,
    Vijay Hari.

    HI
      Null Pointer Exception can occur in may instances , for suppose
      1) when  you create a Value Node with some attribute which has cardinality , and you have not
      initialized the Node , then it would through  Null Pointer exception ,
      2) when you integrate the RFC and parameters you pass as input to the RFC are not set correctly
          then there could be null pointer when you execute the RFC
      3>or may be when you doesnot bind the node when using webservice then there could be null pointer exception
    and there could be many occurances  for the exception

  • "Altered by" fixup in Acrobat X?

    Acrobat 9 shipped with a fixup titled 'Add "Altered by Preflight Acrobat 9" to document information' that adds the key "Custom_Preflight_Acrobat9" with the value "Altered by Preflight Acrobat 9" to the document information.
    I tended to use it in our preflight profiles since it seemed like it might be useful for potential forensics (though really I've never heard of it coming up).
    Acrobat X has the same profile, but it continues to set the "Acrobat 9" key and values. Is it appropriate to update them for X? or 10? Is there a standard? Or is this preflight fixup completely pointless?
    Thanks.

    Correct - embedding an Audit Report cannot be automated. Sorry.
    Most people don't notice, but Preflight is actually a third-party plugin by Callas Software - and as such there's no access to internal features (i.e. the buttons and menus) from Acrobat's scripting and automation interface (being a plugin also explains why the Preflight dialog box is "quirky" to say the least!). All you can do via scripting/actions is apply a Profile, and inspect or verify an already-embedded PreflightAuditTrail object. The act of embedding an audit trail involves digitally-signing the document, using private code within the plugin.
    The only option in your case would be to execute the preflight profile via scripting, and do something nominal to the file in response to the returned object, such as changing the metadata. For example, say you wanted to run a profile and record some basic status info within the document "Subject" field:
    var oProfile = Preflight.getProfileByName("Convert to grayscale")
    if ( oProfile != undefined ) {
       var myPreflightResult = this.preflight( oProfile );
       if ( myPreflightResult.numErrors > 0 ) {
          this.info.Subject = "Preflight profile 'Convert to grayscale' found " + myPreflightResult.numErrors + " errors.";
       } else {
          this.info.Subject = "Preflight profile 'Convert to grayscale' ran successfully on this file at " + Date();
    This script is a bit simplistic (it'll choke if the file is secured, etc.) but it shows the idea. Bear in mind that with complex Profiles or long documents, Preflight can take a while - running this script on a folder of 100 files with 200 pages each, you may as well go for lunch!
    You can go to town with what and where you record the results, such as adding a comment, watermark, etc. (the result object has ".numFixed", ".numNotFixed", ".numWarnings" and ".numInfos" properties you can grab), but it's not a true audit trail. If you want the results in XML format, call the .report() method of the result object.

  • Struts action forward is NULL

    Hi,
    I have a Index jsp page. Ihave defined IndexAction as action class for this. I have defined it as <welcome-file> in web.xml.
    Also I have action tab in struts-config file:
    <action path="/index" type="com.cec.cll.webclient.logical.clr.actionclass.IndexAction" scope="request" validate="false">
    < forward name="index" path="/index.jsp"/> </action>
    So when I open my application and this jsp page, it goes to action class and fetch the results from database but when action class return the forward, its coming NULL.
    forward = mapping.findForward("index");
    I could not find why it is not getting mapping for index . Any ideas?

    Action class:
         public ActionForward execute(ActionMapping mapping,
                   ActionForm form,
                   HttpServletRequest request,
                   HttpServletResponse response) throws Exception {
              HttpSession session = request.getSession(true);
              List searchList = null;
              ActionForward forward = null;
              try {
                   searchList = RingUtilizationHelper
                   .getGigERingUtilizationForRing(null);
              logger.info("inside Index Action...ends");
                   // sort the result
                   List orderedUList = sortResult(searchList);
                   session.setAttribute("results", orderedUList);
                   forward = mapping.findForward("index");
              } catch (Exception ex) {
                   logger.debug("execute: exception : ", ex);
              logger.info("inside Index Action...forward :"+forward);
              return forward;
         }

  • Session geting null in AM Impl class

    All,
    In my root AM IMPL class i am setting the session variables as follows
            if(pAccountNumber!=null) getSession().getUserData().put("accountNumber",  pAccountNumber);
            System.out.println("User Account Number from Session is : " + getSession().getUserData().get("accountNumber")); //this value is getting printed
            if(pBranch!=null) getSession().getUserData().put("branch", pBranch);
            if(pItem!=null) getSession().getUserData().put("item", pItem);
            if(pOrganizationCode!=null) getSession().getUserData().put("organizationCode", pOrganizationCode);
            if(pCustomerId!=null) getSession().getUserData().put("customerId", pCustomerId);
            if(pCustomerName!=null) getSession().getUserData().put("customerName", pCustomerName);In my AM impl class extending the root Ampl class i am calling the getSession() like this
            ViewObjectImpl itemStockVo = getItemStock();
            _logger.fine("Account Number from Session : " + getSession().getUserData().get("accountNumber")); //this is printing as nullPlease advice what is wrong here ?
    thnks
    jdev 11.1.1.5

    Yes can be but as i have not disabled the AM pooling and the account name is coming null evne in the first go, i sense that may not be the issue (I may be wrong here).
    For your second part Timo, i am setting the session value as the default activity when the taskflow loads and i am trying to get it in the next view activity

  • Discoverer Plus - Manage Link option is not working in Viewer

    I am working on 10.1.2.3 Discoverer Plus. I have created one workbook with multiple worksheets (1 detail sheet and 4 Left Group Report.
    I have created seperate links for 4 worksheets. Drill to Details is working fine in discoverer plus and parameter values passed as per the mapping in managed link option.
    However, when I tried to access the report in Viewer, parameter values is not coming as per the mapping.
    In detail sheet we have several optional parameters
    from One summary Sheet, I am not passing all the values to the parameters in the detailed sheet.
    Those column for which, I am not passing any value is coming as NULL (it should come blank as report is treating NULL as string), so no data found
    - Sachin
    Edited by: SachinK on Feb 26, 2009 10:58 AM

    Thanks Lloyd,
    Drill Down is working fine in Viewer and Plus.
    Parameter's passed from one sheet to another is also working fine in plus but in viewer I have some problems.
    Here are the details of the problem I am facing.
    I have 2 Summary Sheets and 1 Detail Sheet
    Sheet 1: 3 Parameters (Summary)
    Sheet 2: 4 Parameters (Summary)
    Sheet 3: 7 Parameters (Details)
    When I am clicking on Sheet1 to Drill down 3 parameters are having correct values but the 4 parameters which can't be passed to Sheet 3 is coming 'NULL' (NULL string value) so detail report is not showing any data. Similarly for Sheet 2 4 parameters are coming as expected but 3 are coming as NULL.
    When I am defining Manage Link Option, I am doing the mapping for 3 Column for Sheet 1 rest 4 columns are BLANK (no info).
    I hope now my problem will be clear.
    Thanks & Regards
    Sachin
    Edited by: SachinK on Feb 26, 2009 1:26 PM

  • Discoverer worksheet not opening in Viewer.

    Dear All,
    We had an upgrade from 11i to R12.
    Few discoverer reports are not working.
    When checked using discover plus some column names were found to be changed. I checked the fan trap and coorected the column names.
    After correcting the column names report works fine in discoverer plus.
    But when trying to view from viewer I get the error.
    Join configuration cannot be resolved. Reason: more than 1 of the detail folders uses non-aggregated items. Attempt to open workbook failed.
    As mentioned earlier I enabled fan trap and did changes and saved. But in viewer I am still getting this error.
    Plz let me know how to handle this.
    Your help is greatly appreciated.
    Arun

    Thanks Lloyd,
    Drill Down is working fine in Viewer and Plus.
    Parameter's passed from one sheet to another is also working fine in plus but in viewer I have some problems.
    Here are the details of the problem I am facing.
    I have 2 Summary Sheets and 1 Detail Sheet
    Sheet 1: 3 Parameters (Summary)
    Sheet 2: 4 Parameters (Summary)
    Sheet 3: 7 Parameters (Details)
    When I am clicking on Sheet1 to Drill down 3 parameters are having correct values but the 4 parameters which can't be passed to Sheet 3 is coming 'NULL' (NULL string value) so detail report is not showing any data. Similarly for Sheet 2 4 parameters are coming as expected but 3 are coming as NULL.
    When I am defining Manage Link Option, I am doing the mapping for 3 Column for Sheet 1 rest 4 columns are BLANK (no info).
    I hope now my problem will be clear.
    Thanks & Regards
    Sachin
    Edited by: SachinK on Feb 26, 2009 1:26 PM

  • Client unable to get the javax.activation.DataHandler object from Server

    Hi All,
    I am trying to download the file from the server to the client using Javax.Activation.Data Handler object with IBM web services. But server always returning the Data Handler object is null. I am wondering why it is behaving like this.
    My requirement is add the file to the Data Handler object from the server and read the same from the client. But I am always getting Data Handler object is  null at the client place.
    Please see the client side code and server side code below.
    Server side Code:
    This is the simple web service method, its creating the Data Handler object and adding it to the Hash Map and returning the Hash Map object to the client.
    public Hashtable download()
              DataHandler dh = null;
              HashMap hashMap =new HashMap();
              try{
                   //Sample test files contains data
                   String downLoadFName="C:/ADP/downLoadData.txt";
                   //Creating the DataHandler Object with sample file
                   dh      =      new DataHandler(new FileDataSource(new File(downLoadFName)));
                   //Keeping the DataHandler object in the HashMap.
                   hashMap.put("DATAHANDLER",dh);
                   //keeping the sample test message object in the HashMap
                   hashMap.put("TEST","Keeping the DataHandler and test messages in the hashTable");                         
              }catch(Exception e){
                   logger.error("Error :while sending the data:"+e.getMessage(), e);
              //retrun the HashMap object to the client.
              return hashMap;
    Client Side Code:
    This is the simple client code, and connecting to the server and invoking the web service method
    //This is the client code,Just invoking the webservice method from the Webspehre server.
    public class WebserviceClient {
         static DocumentTransfer controller     =     null;
         public static void main(String args[]){     
                DocumentTransferService service          =     null;
              try{
                   //Creating the service Object
                   service               =     new DocumentTransferServiceLocator();
                   //Getting the Server connection
                    controller          =      (DocumentTransfer)service.getDocumentTransfer(new java.net.URL("http://localhost:9081/eNetsRuntimeEngine/services/DocumentTransfer"));
                    //Calling the download method from the server and it returns HashMap object.
                   HashMap hashMap     = controller.download();
                   //Getting the DataHandler Object from the HashMap
                    DataHandler dh=(DataHandler)hashMap.get("DATAHANDLER");
                   System.out.println("DATAHANDLER: :"+dh);
                   //Getting the String object from the HashMap.
                   String message=(String)hashMap.get("TEST");
                   System.out.println(": :"+message);
               }catch(Exception e){
                    System.out.println("Exception :Not able to get the file :"+e.getMessage());
    Could you please give me some inputs on this?
    Thanks in advance,
    Sreeni.

    Hi Stif,
    Thanks for your response.I did debug from server side,it has printing content of Data Handler properly.
    Also i have debug request and response messages using TCP/IP monitor(RAD environment has this feature).The response from the server is going proplery.
    But the client side Data Handler is coming null.
    Any advice or solution would be greatly appreciated.
    Thanks,
    Sreeni.

  • Dynamic Forms in Dreamweaver?

    Hi guys,
    We hav a project using livecycle designer; but that relies on the user having adobe reader and in early user testing some folks complain about having to install it (WOW_i mean it's free, great, and takes two minutes!!!)
    So we thought we might build what are essentially backup versions of the forms in dreamweaver. So if a user has not adobe reader (and wont install it) they can click "use browser version"  and go to a dreamweaver form.
    Now we're new to dreamweaver (totally new this week.)
    So can someone just confirm that we're thinking this through correctly.
    We need to be able to mimic livecycle form behaviours
    Basically can we have the following in dreamweaver:
          Have multi-page forms (or really long layouts/whatever) - in livecycle some of the forms are about 10 a4 pages and we need this kind of room i 
          guess here also.......
          hidden subforms that are shown on a click event
          flowed structure - so hidden fields once shown push the rest down etc - so sequencing is preserved
          button to email user entered data to a server system?
    Our forms just need to be able to cater to lots of options - we do this in livecycle ones by having lots of subforms hidden and showing the one that corresponds to their choice or user entered data.
    Just want to know if we're barking up the right tree in thinking of using dreamweaver? and also if there are better/simpler choices out there (other than saying tough install reader you lazy sods )
    if dreamweaver is  goer what books/resources would you recommend for getting started coming from livecycle/acrobat background.
    Thanks folks

    hidden subforms that are shown on a click event
    JavaScript. You are thinking too oversimplified here. it still needs to have the logic, does it not? The only way to do that in browsers is to use JavaScript.
    flowed structure - so hidden fields once shown push the rest down etc - so sequencing is preserved
    Spry Accordeon and its friends. Again, all JavaScript.
    button to email user entered data to a server system?
    Well, but what server system? You will need PHP, ASP, JSP or whatever to actually process the forms.
    Just want to know if we're barking up the right tree in thinking of using dreamweaver?
    As I said - you are grocely oversimplifying and in addition you are "spoiled" by the simplicity LifeCycle forms offer (no offense). So more or less it depends on how you actually will use your infrastructure. Custom developing a lot of code would only make sense if you use the system almost every day and in large numbers. For everything else you can find pre-made solutions like Wordpress with cforms or otehr widget-based, interactively configurable form generators. Requires only minor coding and styling, but supports quirte a few features from the start...
    Mylenium

  • Can we build custom code in xsl-xml

    Hi, We are using one of the .xml dump which is stored as a row in the table iby_trxn_documents
    We are mapping .xsl (a custom template with the above .xml tags)
    We are getting the below tags in .xml (which is stored in table iby_trxn_documents) but the value is not populated in the tags,
    We have build one one sequence in the database, where we need to map the incremented value of the sequence in that place.
    My (xml looks like any of the below two options)
    - <PaymentSequence>
    <SequenceName />
    <LastValue />
    </PaymentSequence>
    In this case i am getting output as W
    - <PaymentSequence>
    <SequenceName>XX_SEQ</SequenceName>
    <LastValue>1</LastValue>
    </PaymentSequence>
    in this case i am getting output as W1, but for next run i want it as W2 etc... or is there any option we can get incremented values in <Creation_Module>
    as my above value is coming null, in my output also i am getting null.
    Is there a way i can get the value of sequence in my xsl template.
    I am writing some thing like this in my (.xsl)
    - <Creation_Module>
    <xsl:value-of select="concat('W',/PaymentSequence/LastValue)" />
    </Creation_Module>
    For every run i want this last value to be incremented by 1
    Appreciate if some one has any knowledge in this.
    Thanks...
    Edited by: 902157 on Aug 27, 2012 9:18 AM

    Hi, We are using one of the .xml dump which is stored as a row in the table iby_trxn_documents
    We are mapping .xsl (a custom template with the above .xml tags)
    We are getting the below tags in .xml (which is stored in table iby_trxn_documents) but the value is not populated in the tags,
    We have build one one sequence in the database, where we need to map the incremented value of the sequence in that place.
    My (xml looks like any of the below two options)
    - <PaymentSequence>
    <SequenceName />
    <LastValue />
    </PaymentSequence>
    In this case i am getting output as W
    - <PaymentSequence>
    <SequenceName>XX_SEQ</SequenceName>
    <LastValue>1</LastValue>
    </PaymentSequence>
    in this case i am getting output as W1, but for next run i want it as W2 etc... or is there any option we can get incremented values in <Creation_Module>
    as my above value is coming null, in my output also i am getting null.
    Is there a way i can get the value of sequence in my xsl template.
    I am writing some thing like this in my (.xsl)
    - <Creation_Module>
    <xsl:value-of select="concat('W',/PaymentSequence/LastValue)" />
    </Creation_Module>
    For every run i want this last value to be incremented by 1
    Appreciate if some one has any knowledge in this.
    Thanks...
    Edited by: 902157 on Aug 27, 2012 9:18 AM

  • BPM with 2 JDBC outbound interfaces and one inbound file interface

    Hi,
    I have a scenario where data is coming from  different databases into XI and after processing the data it creates a file at the target side. Some calculations are to be done in the middleware and the result will be sent through a file.
    My question is
    1. BPM will be used in this scenario?
    2. There will 2 outbound interfaces(one for each database access), 2 abstract interfaces and one inbound interface(file). Please correct me if I am wrong.
    3. I have to multiply the value of field from one database to a particular value in another database and get the final result. For e.g exchange rate from one database is multiplied to Transaction currency in another database and get the group currency value in the output. Can anyone give the sequence of steps in the intergration process for this scenario as I am new to BPM.
    Thanks,
    Aparna

    Thanks a lot Liang and madhusudana for your responses.
    Since I can use JDBC lookup for this in my nornal scenario I think no need for BPM.
    I have created the advanced UDF for JDBC lookup code. Below is the code.
    String Query = " ";
    Channel channel = null;
    DataBaseAccessor accessor = null;
    DataBaseResult resultSet = null;
    MappingTrace importanttrace;
    importanttrace = container.getTrace();
    // Build the Query String
    Query = "Select home_cur_code FROM  gltrxcp WHERE company_code = '" + a[0] + "' ";
    try{
    //Determine a channel, as created in the Configuration
    channel = LookupService.getChannel("BS_JDBC_send","cc_JDBClookup_rec");
    //Get a system accessor for the channel. As the call is being made to an DB, an DatabaseAccessor is obtained.
    accessor = LookupService.getDataBaseAccessor(channel);
    //Execute Query and get the values in resultset
    resultSet = accessor.execute(Query);
    importanttrace.addWarning("resultset" + resultSet );
    for(Iterator rows = resultSet.getRows();rows.hasNext();){
    Map rowMap = (Map)rows.next();
    result.addValue((String)rowMap.get("HOME_CUR_CODE"));
    importanttrace.addWarning("result" + result );
    catch(Exception ex){
    result.addValue(ex.getMessage());
    finally{
    try{
    if (accessor!=null) accessor.close();
    catch(Exception e){
    result.addValue(e.getMessage());
    But I am not getting the desired result. I am getting result as 'Null'.
    Can you please help in resolving this issue. I have also used trace for find out where it is passing Null and found that 'result' is coming null. Do i also need to parse it before passing it to 'result'?
    Can anyone send sample code for JDBC lookup.

  • Sending the process instance to a particular participants workspace

    Hi All,
    I am a bit new to Aqualogic BPM. I have to design a process, the requirements of which are as follows:
    The process has three roles:
    - Super Users
    - Supervisor
    - Primary Users
    Super User and Supervisor will have one participant each but the role Primary Users can have multiple participants. The process will be initiated by the Super User, which will go in the Supervisors workspace. Now, the supervisor should have the flexibilty of assigning this intance to any one of the participant in the Primary User role.
    The Approach that i am following (from Supervisor onwards):
    Supervisor will see a presentation where he'll have all the participants of Primary Users in a drop down, from where he can select the participant to whom he wants to assigned. Then i am assigning it to Participant.next but unfortunately when taking the log, Participant.next is coming null.
    I have following queries:
    - Why Participant.next is still coming null?
    - Can't we assign anything to Participant.next?
    - Can we direct the instance to any Participant which is from a different role (just after the role from where we are assigning)?
    - Is there any other approach that can resolve this issue?
    Thanks,
    Akshay

    Have you tried using the lower case version "participant.next" instead? Also, I think this is only available to automatic activities.
    TP

  • How to get subgrid Id

    In my recent requirement client want to put dynamic view inside subgrid. For this I am using document.getElementById("SubgridName");
    This code is giving me null value. If I use document.getElementById("_SubgridName");, then it give me some values, but most of all the code is not working.
    I referred many blogs like http://blog.navantis.com/dynamically-change-sub-grid-fetchxml-with-a-small-twist-fix/
    Please help me, this is very important.
    Thanks in advance..!!!
    Harsha

    Hi,
    document.getElementById("_SubgridName") is coming null because , subgrids loads
    asynchronously. Thats why you have to check the subgrid element with setInterval function. Check this in my blog. You will understand how subgrid works.
    Filter Subgrid
    If you find this post helpful then please Vote as Helpful and Mark As Answer. Thanks and Regards, Polat Aydın
    My blog

  • BPEL 11g Transform Activity

    Hi
    We are developing EDI 850 Transaction using SOA 11g Environment. We are successfully able to complete the B2B 11g Trading partner setups and able to successfully puch EDI XML to IP_IN_QUEUE.
    We developed a 850 EDI BPEL mappings using BPEL 11g (Build JDEVADF_11.1.1.2.0_GENERIC_091029.2229.5536). We received the payload from IP_IN_QUEUE using B2B adapter successfully. After receiving this payload we are trying to map source elements to target schema. For testing we have mapped couple of elements from source to target.
    But, Transform activity is not performing the mappings which we mapped and its coming null at run time.
    We are not able to find the reason. Could some body let us know what could be issue?
    Regards
    Ravi

    Hi
    Thanks for your reply.
    We tried by assigning the static text, this text successfully comes at run time.
    We have only issue when mapping from source to target. None of the values are getting mapped to target from source.
    - Ravi

  • Publishing to the Web

    I'm creating a form that will be accessed from the web. I've done the "Publish to Repository" and am able to bring the document up, but it does not open within the browser. This is a miner issue, but I'm looking for it to me opened within the browser. Does it really matter? Once opened, the user will then fill it in and Print it out.
    Here is the URL: http://www.prodieselracersassociation.com/Regi.pdf
    The form has other issues, like the radio buttons don't function as they should (both are selectable) and I need a text box to calculate based on the checkboxes selected, But I intend on opening up new discussion for them.
    Thanks for you attention and time,
    D

    This post was primarily pertaining to accessing the PDF from the web so users could pull it up from a URL and fill it out in their browser. The PDF keeps coming up in acrobat though, but I'm not sure if it's really an issue. Does it really matter whether the PDF comes up within the browser, or through acrobat? I'm starting to think probably not. I had another post pertaining to the radio issue which is handled.
    Thanks for your attention,
    D

Maybe you are looking for

  • UDF  missing return statement }

    Hi, I'm wondering how the missing return statement  error can be avoided in this code, I've tried all sorts of syntaxes but it just won't work: public String DetermineCostCenter(String KTOS,String KTOH,String FNR,String KST,Container container){ int

  • FB01/FB02 user exit/BADI

    Hi, When document via fb01/fb02 is created  field (XREF1_HD) in header is created by custom. I checked substitution but I could find ther this rule which filled this field. I checked BADI: FAGL_SEGMENT_BS_ACC but it wasn't implemented. Could you indi

  • Reg: Negative Stock

    Hii, How does negative stocks works in SAP, here in Material Master for a selected material in plant 1000 and SL 0001, i have checked on negative stock option in Plant/ Storage 2 view. while issuing the stock in MIGO, it is not allowing and it is giv

  • File Adapter - BPM

    My Scenario is Start BPM - Receive Huge File from System A - Transform Big File into 8 Smaller Files - Send All Files using FTP adapter to System B- Invoke Webservice on System B to Process all the files earlier sent - If Response Message is successf

  • SEO support

    I downloaded the SEO tool for iWeb, but without instructions, I don't know how to use it.  When I click on the Help button, it wants to sell me an 80 minute help video for $29.95.  Is this worthwhile?  Or is there somewhere else I can get free instru