Not able to properly Save OLE Storage to .docx format.

Hi,
We have legacy C++ code that would embed word .doc files using OLE and save them back to .doc disk based files whenever necessary.
This code does not now work with .docx(.xlsx to that matter).
I am aware that old .doc files are Structured Storage files whereas the latest .docx are zipped xml files.
I am attaching code that would create an OLE storage out of .docx file and save it back to .docx.
When opening the saved .docx file, an error message pops in WinWord indicating that the file is corrupted and that it can repair that file. It works after word repairs the file. But Excel cannot even repair such .xlsx files.
Further, the saved OLE storages are well displayed in our application(in place editing for embedded files).
Can any one suggest what needs to be done?
the following is a sample code.
void CreateStorage()
HRESULT hr = S_OK;
WCHAR filePath[] = L"E:\\Sample.docx";
OleInitialize(NULL);
DWORD renderopt = OLERENDER_FORMAT;
FORMATETC formatEtc;
formatEtc.cfFormat = CF_ENHMETAFILE;
formatEtc.dwAspect = DVASPECT_CONTENT;
formatEtc.lindex = -1;
formatEtc.ptd = NULL;
formatEtc.tymed = TYMED_ENHMF;
LPSTORAGE m_pSrcStorage = NULL; // Pointer to the source storage
IOleObject *pObj = NULL;
ILockBytes *pLockBytes = NULL;
CLSID clsID;
hr = StgCreateStorageEx(NULL, STGM_READWRITE | STGM_CREATE | STGM_SHARE_EXCLUSIVE,
STGFMT_DOCFILE, 0, NULL, NULL, IID_IStorage, (void **)&m_pSrcStorage);
hr = OleCreateFromFile(CLSID_NULL, filePath, IID_IOleObject, renderopt,
&formatEtc, 0, m_pSrcStorage, (void**)&pObj);
IPersistStorage* pPersist = NULL;
hr = pObj->QueryInterface(IID_IPersistStorage, (void**)&pPersist);
if (pPersist != 0)
// Sample code to test OleSave. hr fails due to Access Denied
hr = OleSave(pPersist, m_pSrcStorage, FALSE);
pPersist->Release();
// Debugging code to know the CLSID of the document
pObj->GetUserClassID(&clsID);
unsigned long mytempdata = clsID.Data1;
LPSTORAGE pOleStorage = NULL;
hr = pObj->QueryInterface(IID_IStorage, (void**)&pOleStorage);
if (pOleStorage != NULL)
pOleStorage->Release();
WCHAR newFilePath[] = L"E:\\TestMe.docx";
DWORD STORAGE_OPEN_MODE = STGM_READWRITE | STGM_CREATE | STGM_DIRECT | STGM_SHARE_EXCLUSIVE;
LPSTORAGE pNewStorage = NULL;
hr = ::StgCreateStorageEx(newFilePath, STORAGE_OPEN_MODE, STGFMT_DOCFILE,
0, NULL, NULL, IID_IStorage, (void **)&pNewStorage);
hr = m_pSrcStorage->CopyTo(0, NULL, NULL, pNewStorage);
hr = pNewStorage->Commit(STGC_DEFAULT);
if (pLockBytes != NULL)
pLockBytes->Release();
pNewStorage->Release();
m_pSrcStorage->Release();
pObj->Release();
OleUninitialize();

Hi Phani,
As far as I know,only the Office 97-2003 binary file formats use the Windows Structured Storage APIs. Please refer to this KB article:
https://support.microsoft.com/kb/840817?wa=wsignin1.0
And the .docx file should be Office Open XML Formats which do not support Windows Structured Storage APIs.
If you want to manipulate .docx documents using Visual C++, please think about MS Office OLE Automation APIs.
http://www.codeproject.com/Articles/34998/MS-Office-OLE-Automation-Using-C
Also please check this : Sample code for creating a DOCX file. But these sample is written by C#.
http://blogs.msdn.com/b/brian_jones/archive/2006/06/29/651190.aspx
http://blogs.msdn.com/b/dmahugh/archive/2006/06/26/647859.aspx
Best regards,
Shu Hu
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.

Similar Messages

  • HT4489 I am not able to transfer my in spite of VCf format from my computer to my iPhone 5S...can you pls suggest some way to do it as fast as possible

    Can you pls solve my issue......I am not able to transfer my in spite of VCf format from my computer to my iPhone 5S...can you pls suggest some way to do it as fast as possible

    What happens when you follow this?
    http://support.apple.com/kb/PH3605

  • Not able to properly use another photoshop since uploading flash player

    Hi everyone, I have been encountering a problem ever since I uploaded the flash player for adobe express. For some reason before I uploaded it so that I could access the website, I was using another online photoshop called www.pixlr.com. However both have different tools needed for my images and I like to use both. However, Since I uploaded the flash player onto my laptop to access the adobe express I have not been able to save my edited images to my computer from pixlr.com.  I can edit the images, but it just wont let me save. Any one know what I can do?? I need the clone stamp and the pinch tool, which arent offered by adobe express. Thank you in advance!!
    ~Chantelle~

    Welcome to the account number problem.  Each user account has a number, starting with 501, 502 etc.  Whereas Setup Assistant uses the first account (say 501) which is the same as the original data disk,  later use of Migration Assistant creates a new user account (say 502), so cannot then communicate with the old data.
    Here is Pondini's guide to this, with a solution too:
    http://pondini.org/OSX/MigrationProblems.html
    Pondini RIP

  • Not able access properly correct  webserivice method

    Hi,
    I have to create client for an document style WSDL,
    can any body tell how to write client to this WSDL using some dummy serive name
    for accessing GetLog method
    Iam giving the sample of my wsdl
    <?xml version="1.0" encoding="utf-8"?>
    <wsdl:definitions xmlns:s1="http://microsoft.com/wsdl/types/"
    xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:s="http://www.w3.org/2001/XMLSchema"
    xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:tns="http://tempuri.org"
    xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"
    xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
    targetNamespace="http://tempuri.org"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
    <wsdl:types>
    <s:schema elementFormDefault="qualified" targetNamespace="http://tempuri.org">
    <s:import namespace="http://microsoft.com/wsdl/types/" />
    <s:element name="HelloWorld">
    <s:complexType />
    </s:element>
    <s:element name="HelloWorldResponse">
    <s:complexType>
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="HelloWorldResult" type="s:string" />
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:element name="GetLog">
    <s:complexType>
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="code" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="Packet" type="s:string" />
    <s:element minOccurs="1" maxOccurs="1" name="Persistency" type="s:boolean" />
    <s:element minOccurs="1" maxOccurs="1" name="type" type="s:boolean" />
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:element name="GetLogResponse">
    <s:complexType>
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="GetLoginTokenResult" type="tns:IdResp" />
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:complexType name="IdResp">
    <s:sequence>
    <s:element minOccurs="1" maxOccurs="1" name="Value" type="s1:guid" />
    <s:element minOccurs="0" maxOccurs="1" name="ErrorCode" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="Source" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="ErrorMessageList" type="tns:ArrayOfString" />
    <s:element minOccurs="0" maxOccurs="1" name="StackTrace" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="TraceMessageList" type="tns:ArrayOfString" />
    </s:sequence>
    </s:complexType>
    <s:complexType name="ArrayOfString">
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="unbounded" name="string" nillable="true" type="s:string" />
    </s:sequence>
    </s:complexType>
    <s:complexType>
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="code" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="Packet" type="s:string" />
    <s:element minOccurs="1" maxOccurs="1" name="Persistency" type="s:boolean" />
    <s:element minOccurs="1" maxOccurs="1" name="type" type="s:boolean" />
    <s:element minOccurs="0" maxOccurs="1" name="param" type="s:string" />
    <s:element minOccurs="1" maxOccurs="1" name="allow" type="s:boolean" />
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:element name="GetActLogResponse">
    <s:complexType>
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="GetActLogResult" type="tns:IdResp" />
    </s:sequence>
    </s:complexType>
    </s:element>
    </s:schema>
    <s:schema elementFormDefault="qualified" targetNamespace="http://microsoft.com/wsdl/types/">
    <s:simpleType name="guid">
    <s:restriction base="s:string">
    <s:pattern value="[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}" />
    </s:restriction>
    </s:simpleType>
    </s:schema>
    </wsdl:types>
    <wsdl:message name="HelloWorldSoapIn">
    <wsdl:part name="parameters" element="tns:HelloWorld" />
    </wsdl:message>
    <wsdl:message name="HelloWorldSoapOut">
    <wsdl:part name="parameters" element="tns:HelloWorldResponse" />
    </wsdl:message>
    <wsdl:message name="GetLogSoapIn">
    <wsdl:part name="parameters" element="tns:GetLog" />
    </wsdl:message>
    <wsdl:message name="GetLogSoapOut">
    <wsdl:part name="parameters" element="tns:GetLogResponse" />
    </wsdl:message>
    <wsdl:message name="GetActLogSoapIn">
    <wsdl:part name="parameters" element="tns:GetActLog" />
    </wsdl:message>
    <wsdl:message name="GetActLogSoapOut">
    <wsdl:part name="parameters" element="tns:GetActResponse" />
    </wsdl:message>
    <wsdl:portType name="SSOServiceSoap">
    <wsdl:operation name="HelloWorld">
    <wsdl:input message="tns:HelloWorldSoapIn" />
    <wsdl:output message="tns:HelloWorldSoapOut" />
    </wsdl:operation>
    <wsdl:operation name="GetLog">
    <wsdl:input message="tns:GetLogSoapIn" />
    <wsdl:output message="tns:GetLogSoapOut" />
    </wsdl:operation>
    <wsdl:operation name="GetLog">
    <wsdl:input name="GetActLog" message="tns:GetActLogSoapIn" />
    <wsdl:output name="GetActLog" message="tns:GetActLogSoapOut" />
    </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="ServiceSoap" type="tns:ServiceSoap">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
    <wsdl:operation name="HelloWorld">
    <soap:operation soapAction="http://tempuri.org/HelloWorld" style="document" />
    <wsdl:input>
    <soap:body use="literal" />
    </wsdl:input>
    <wsdl:output>
    <soap:body use="literal" />
    </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="GetLog">
    <soap:operation soapAction="http://tempuri.org/GetLog" style="document" />
    <wsdl:input>
    <soap:body use="literal" />
    </wsdl:input>
    <wsdl:output>
    <soap:body use="literal" />
    </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="GetLog">
    <soap:operation soapAction="http://tempuri.org/GetActLog" style="document" />
    <wsdl:input name="GetActLog">
    <soap:body use="literal" />
    </wsdl:input>
    <wsdl:output name="GetActLog">
    <soap:body use="literal" />
    </wsdl:output>
    </wsdl:operation>
    </wsdl:binding>
    </wsdl:definitions>
    Message was edited by:
    praveennr

    Hi Phani,
    As far as I know,only the Office 97-2003 binary file formats use the Windows Structured Storage APIs. Please refer to this KB article:
    https://support.microsoft.com/kb/840817?wa=wsignin1.0
    And the .docx file should be Office Open XML Formats which do not support Windows Structured Storage APIs.
    If you want to manipulate .docx documents using Visual C++, please think about MS Office OLE Automation APIs.
    http://www.codeproject.com/Articles/34998/MS-Office-OLE-Automation-Using-C
    Also please check this : Sample code for creating a DOCX file. But these sample is written by C#.
    http://blogs.msdn.com/b/brian_jones/archive/2006/06/29/651190.aspx
    http://blogs.msdn.com/b/dmahugh/archive/2006/06/26/647859.aspx
    Best regards,
    Shu Hu
    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.

  • Not able to to save keywords

    I am using RoboHelp 5.0.1 and intermittently while working
    with help topics I get the message. "The window is small,"
    displayed by Microsoft Word. Why do I get this message?
    I am also unable to add keywords to topics, why I try to add
    keywords and save them in the Topic Properties window (Keywords), I
    get error messages:
    RoboHelp is Unable to Save These Changes.
    I am unable to save the keywords for the topics. Any help
    appreciated. Thank you very much!

    Hi Abdullah,
    Attaching screenshots, please let me know if you want any more screenshots.
    Please let me know if you want any more details.

  • Not able to properly install "Tools for Apache Cordova for Visual Studio 2013"

    Hi,
    I am using visual studio 2013 ultimate running on a 64-bit windows 7 home premium.
    When I tried to install the "Tools for Apache Cordova for Visual Studio 2013", the installation completed but showed the following error in the end. This is what the error says:
    "  Joyent Node.js
        Invalid command line argument. Consult the Windows Installer SDK for detailed command line help.  "
    I thought maybe windows phone SDK 8 is not installed on my pc.( as mentioned in the requirements here: https://msdn.microsoft.com/en-in/library/dn757054.aspx). I tried to install the SDK, by choosing modify from the control panel (as
    mentioned in the same link above), but it didn't show "Windows Phone SDK" on the list. And Microsoft says that you cannot install the SDK v8.0 on windows 7. Please help me with this.

    OK...
    1)  So, how do I write JavaScript code? There is only one option when I select JavaScript form the "New Project" window and that says "Blank App (Apache Cordova)". when I try to create one it shows all these errors:
    " We've detected issues with your system's environment configuration
       Apple iTunes - software is missing from your computer.
       WebSocket4Net - software is missing from you computer. You may also have to configure it after installation."
    2)  I don't have iTunes on my computer. So, Is there a way to do it without installing iTunes?
    3)  And I've already installed the "WebSocket4Net", using both the "vs2013_mda0.3" setup and manually. But nothing worked. So what to do about it.?

  • Not able to view the XML Output, after Output format changed to XML

    Hello Everybody...
    After running the concurrent program having output type of XML. Output is not getting generated.
    But getting generated when output type is changed to Text.
    Please find the below log file info. :
    BioReliance Receivables: Version : UNKNOWN - Development
    Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
    XXBRAXINVNEW module: XXBio Print Selected Invoices New
    Current system time is 28-MAY-2009 05:31:28
    +-----------------------------
    | Starting concurrent program execution...
    +-----------------------------
    Arguments
    p_order_by='TRX_NUMBER'
    p_trx_number_low='9859529'
    p_trx_number_high='9859529'
    p_installment_number='1'
    p_open_invoice='N'
    p_check_for_taxyn='N'
    p_choice='SEL'
    p_header_pages='0'
    p_debug_flag='N'
    p_message_level='10'
    p_userid='9092'
    XML_REPORTS_XENVIRONMENT is :
    /oraapps2/devukora/8.0.6/guicommon6/tk60/admin/Tk2Motif_UTF8.rgb
    XENVIRONMENT is set to /oraapps2/devukora/8.0.6/guicommon6/tk60/admin/Tk2Motif_UTF8.rgb
    Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
    American_America.UTF8
    Spawned Process 14380
    REP-3000: Internal error starting Oracle Toolkit.
    MSG-00100: DEBUG: AfterPForm_Trigger +
    MSG-00100: DEBUG: Multi Org established.
    MSG-00100: DEBUG: AfterParam_Procs.Get_Country_Details
    MSG-00100: DEBUG: AfterParam_Procs.Switch_On_Debug
    MSG-00100: DEBUG: AfterParam_Procs.Get_Trx_Number_Low
    MSG-00100: DEBUG: AfterParam_Procs.Get_Trx_Number_High
    MSG-00100: DEBUG: AfterParam_Procs.Get_Tax_Option
    MSG-00100: DEBUG: AfterPForm_Trigger -
    MSG-00100: DEBUG: BeforeReport_Trigger +
    MSG-00100: DEBUG: BeforeReport_Procs.Populate_Printing_Option
    MSG-00100: DEBUG: BeforeReport_Procs.Populate_Tax_Printing_Option
    MSG-00100: DEBUG: BeforeReport_Trigger.Get_Message_Details
    MSG-00100: DEBUG: BeforeReport_Trigger.Get_Org_Profile.
    MSG-00100: DEBUG: Organization Id: 102
    MSG-00100: DEBUG: BeforeReport_Trigger.Build_Where_Clause
    MSG-00100: DEBUG: P_Choice: SEL
    MSG-00100: DEBUG: Choice is other than ADJ, setting ORDER BY.
    MSG-00100: DEBUG: BeforeReport_Trigger -
    MSG-05000: DEBUG: Trx No... 9859529
    MSG-00010: 05:31 1 Transaction: 9859529
    Report Builder: Release 6.0.8.25.0 - Production on Thu May 28 05:31:28 2009
    (c) Copyright 1999 Oracle Corporation. All rights reserved.
    Enter Username:
    Start of log messages from FND_FILE
    End of log messages from FND_FILE
    Executing request completion options...
    ------------- 1) PUBLISH -------------
    Beginning post-processing of request 14767798 on node RCKBLADE05 at 28-MAY-2009 05:31:36.
    Post-processing of request 14767798 failed at 28-MAY-2009 05:31:36 with the error message:
    One or more post-processing actions failed. Consult the OPP service log for details.
    ------------- 2) PRINT   -------------
    Finished executing request completion options.
    Concurrent request completed
    Current system time is 28-MAY-2009 05:31:36
    Please do the needful in resolving the issue.
    Thans in Advance.
    Abdul.

    Hello Hussein,
    Thanks.
    Before I could ask the DBA to chage the DIPLAY parameter, I could see error in FNDOPP*.txt file, as some issue with tag "split-by-page-break".
    Accordingly I removed the tag from the template file ( RFT File). Now the request is getting Completed with Normal status. And generating the PDF output.
    I found a hit in the metalink for this issue, which suggests a PATCH 4206181 (XDO.5.5) to get this functionality.
    Accordingly the PATCH is applied.
    Now when trying to query the template name from the XML Publisher Administrator Responsiblity, page is getting errored with the below message.
    ====================================================================
    oracle.apps.fnd.framework.OAException: Message not found. Application: FND, Message Name: FND_VIEWOBJECT_NOT_FOUND. Tokens: VONAME = TemplateFilesForViewVO2; APPLICATION_MODULE = oracle.apps.xdo.oa.template.server.TemplatesAM;
         at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1223)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1960)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:497)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:418)
         at oa_html._OA._jspService(_OA.java:86)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
         at oracle.jsp.JspServlet.service(JspServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
         at org.apache.jserv.JServConnection.run(JServConnection.java:294)
         at java.lang.Thread.run(Thread.java:534)
    ====================================================================
    Please do the needful in resolving the issue.
    Thanks,
    Abdul.

  • Why the time and date is not correct when I save a waveform in txt format, using Labview 6.1?

    I am using Labview 6.1 and my operation system is Windows 98. The date/time properties is configured in the Windows (time and date in the control panel is correct). I generated a waveform using Basic Function Generator.vi and saved this using the Export Waveforms to Spreadsheet File.vi. When I opened this file the date and time was wrong. Only the delta t was correct and it did not show the date neither the time, only a float number. How can I adjust the correct time?

    Actually, the date/time is correct, it is expressed as seconds since January 01, 1904.
    In order to print the string version of the date/time from your file, you will need to write a utility that converts the date/time to a string or series of strings in whatever format you wish. This can be done by reading the first line (I assume that is the line with the time on it), formatting the date/time into a string, and writing over this information in the file.
    The waveform VIs were meant to be used internally to read and write waveform data. Any use beyond that should require you to add formatting and other information/data as necessary.

  • In My Noikia 5800XM, I am not able to change my Me...

    Hello,
    I am using Nokia 5800 XM.
    I have enough space(arround 4GB) in my memory card but I am not able to change my messge storage location to "Memory card".  and I think there no issue of my memory card, its working fine.
    When I am trying to change my Message Memory Location, it shows alert "copy all messages to the new message memory" with "Yes" and "No" options. When I press "No" option then no effect take place and it does not change my storage device. And when I press on "Yes" option, then it will show another alert "Save Original Messages?" with "Yes" and "No" options. But when I click on wether "Yes" or "No" option it displays error message "Unable to move Message storage" and closes the messaging application and moves me on main menu.
    Is there any solution without "Resating my Phone" or "Reinstalling OS"?
    Need Your Help
    -Viraj Vyas
    Viraj Vyas

    I am also facing the EXACT PROBLEM,,,
    Whats the solution?
    Please any body help..
    viraj_vyas wrote:
    Hello,
    I am using Nokia 5800 XM.
    I have enough space(arround 4GB) in my memory card but I am not able to change my messge storage location to "Memory card".  and I think there no issue of my memory card, its working fine.
    When I am trying to change my Message Memory Location, it shows alert "copy all messages to the new message memory" with "Yes" and "No" options. When I press "No" option then no effect take place and it does not change my storage device. And when I press on "Yes" option, then it will show another alert "Save Original Messages?" with "Yes" and "No" options. But when I click on wether "Yes" or "No" option it displays error message "Unable to move Message storage" and closes the messaging application and moves me on main menu.
    Is there any solution without "Resating my Phone" or "Reinstalling OS"?
    Need Your Help
    -Viraj Vyas

  • SECATT - Not able to see the screen shots

    Hi All,
    I am trying to execute the SECATT for one of the testing of HR, but I am not able to see any of the screen shots in downloaded folder.
    While executing the test script I had selected the check boxes
    1) Save Screen shots
    2) Before User Inputs
    3) After user Inputs
    I am able to see the folder created after each executiion of the test script, but not able to see the screen shots in any format (like some of the blogs mention that screen shots will be in JPEG or in BMP format).
    We are on ECC6.0 EHP7 and we are using the sap GUI 730.
    Kindly Suggest.
    Regards,
    Umesh Chaudhari.

    Hi Umesh,
    I suspect that one of the below mentioned option is the reason for not getting the screen shots.
    1. It could be something to do with the SP level that you have.
    2. It could be because of a different path mentioned in Screenshot Path (default or user specific).
    3. The default path for the file containing the external variants is specified in the user-specific settings. 
    Procedure
      1.  From the menu in eCATT or the ABAP Workbench (transaction SE80), choose Utilities → Settings.
      2.  On the eCATT tab, choose the relevant tab and make the required changes.
    Path for Screenshots
    You can specify the default path for screenshots taken during the replay of SAPGUI commands.
    Regards,
    PB

  • Can not refresh page after save properly(When not saving master record)

    I am using jdeveloper 11g R2 (11.1.2.3) JSF Facelet
    In some use case I have Address as master table and Person as detail table
    For some business reason I need to don't save same addresses
    eg:
    If +1 Test St+ is in database already and new user coming and adding this address with new person
    I need to use the row in database not creating a new address
    I do saving in doDML method of Address with some hashing algorithm and it is fine
    My problem is that I can not refresh page after save properly
    User coming to page think Adding a new address and a new person but in fact no new
    address added because of business I describe above
    Any ideas how I can implement this?
    Appreciate that
    Regards
    Mohsen

    Hi,
    from your description it is not clear why the page doesn't refresh. It could be a problem in your implementation code - who knows. What if you perform the address check on a command button that actually submits the new address? If the check returns true (address exists) you would call row.refresh(forget new row); and re-query the view object so the address coming from the database is displayed. If you wanted to use the doDML then yuou need to be aware that doDML doesn't help removing the row the user created. It just ignores the database update but the entity is still around, which in my suggested solution wont be the case.
    Frank

  • Not able to save data in pa30 action infotype in production

    Hi,
    In my organization users are not able to save data in SAP HR  pa30 action info type in production.
    It is gets hanged and throws run time error after run long time .
    in ST22 it will give below error:
    Runtime Errors   TSV_TNEW_PAGE_ALLOC_FAILED
    Information on where terminated
        Termination occurred in the ABAP program  "SAPLRHAS"   in "FILL_STRU_TURBO"
        The main program was "MP000000 ".
        In the source code you have the terminated point in line 759
        of the (Include) program "LRHASF00".
    Thanks and regards,
    Tarun

    Hi,
         Pls check your relationship of reporting postions and set up relationship A002 and also check organization relationship
        otherwise take help form ABPERs and debug and partiuclar prorgram and where and witch object its throwing
        error found out.
    Regrads,
    Tarun

  • Not able to save bindings when calling bindings.getOperationBinding("update") in customized method.

    Hi All,
    I'm new to ADF and trying to learn it.
    I'm using JDev version 11.1.1.6.0.
    My use case is mention below :
    1. I've created 2 Bounded task flows and calling one task flow from another task flow using task flow call activity.
    2. In child task flow, i've created view activities with Train component. View activities have text fields, radios buttons, tables etc which can be filled by user.
    3. I want to save the page data to payload if I move to next view activity using Next button or by train bar.
    To accomplish this scenario, I'm calling a customized actionListener on click of Next button/Train Stop Bar in which I'm using below mention code :
    BindingContext bindingContext = BindingContext.getCurrent();
    BindingContainer bindings = bindingContext.getCurrentBindingsEntry();
    OperationBinding obj = bindings.getOperationBinding("update");
    if(obj != null){
         obj.execute();
         if(!obj.getErrors().isEmpty()){
              System.out.println("Not able to save data......");
         else{
              System.out.println("able to save data......");
    But I'm not able to save page data to payload/bindings. If i close the window using browser close button and move back to previous train stop in which i've filled the data, the data get lost and all the text fields/Radio button become empty.
    If I use Save button provided by Oracle BPM, then I'm able to save it. and data reflected even after if i close the window using browser close button.
    So I also try to use the below acode but did not get any success :
    FacesContext fctx = FacesContext.getCurrentInstance();
    Application app = fctx.getApplication();
    ELContext elContext = FacesContext.getCurrentInstance().getELContext();
    InvokeActionBean invokeActionBean = (InvokeActionBean)app.getELResolver().getValue(elContext, null,  "invokeActionBean");
    invokeActionBean.setAction(actionEvent);
    invokeActionBean.action();
    Can somebody please let me know, what am I doing wrong here or if I'm missing anything.
    Any pointers/suggestions for its resolution are welcome.
    Thanks in advance.

    Hi Timo,
    Yes, it is the same binding which is called from BPM Save button.
    I did not use the debugger but i tried to print the OperationBinding object which was showing me proper binding for update.
    Even when i tried to print the return value of invokeActionBean.action(); method, it print the proper string "closeTaskFlow".
    So if I see it logically, then I'm just trying to call the methods of InvokeActionBean from my customized method.
    If methods of InvokeActionBean not being accessed, or if it was not getting called, then it should not print the "closeTaskFlow" as return value.
    I only want to save page data into bindings once I'll move away from page precisely on moving next.
    If there is any other work around for this issue, please let me know.
    I've also tried to use Explicit/Implicit save points provided by ADF but that did not work too.

  • Not able to save a newly created Data Model in BI Publisher.

    Hello everyone,
    I was trying to create a new Report (my very first report) in BI Publisher. I created a new Data Model and a Data Set. But I am not able to save the Data Model and thus not able to proceed to the report. There's no error shown. Same happens with reports too.
    Kindly provide me with a solution.
    Regards
    Ash
    Edited by: 902739 on 28-Dec-2011 01:02

    You should have a group called 'XMLP_ADMIN' in your repository and administrator or the user you are using should be part of that group. Look into paint.rpd for all these.

  • Not able to save report output in a text file and RTF file

    I am using Oracle Developer6.0 . I am facing problem with reports. I am invoking reports from form using run_product.
    1. I could not able to save the report in text file . Whenever i try to save the report output in a text file.It gives dump and application get closed.
    2. In RTF format , it execute the query which i have given at the design time while creating a report . But while running i am passing query either through lexical parameter or passing value of where criteria user parameters. It display the output for the specified value. But when i save this report output in rtf file . It execute design time query and save that in a rtf file.
    If any body is having any idea about it . Please let me ASAP . It is very urgent for me.
    Thanks in advance

    Try the following:
    Do not generate the report to .rep file, but rename/copy the .rdf file to .rep file and execute it.

Maybe you are looking for

  • GL account in ds 0FI_AA_11

    Hello Can somebody tell me how GL account is linked with ds 0FI_AA_11? I need to add GL account to this ds but dont know how to derive it. I know that thee is GL line item ds but these two ds have differant granularity.

  • How can I reach someone in Verizon Customer Service that can get my account corrected?

    I have been trying to get my account corrected since January the 12th.  I have called dozens of times each time I am promised a return call as an IPR must be completed and then nothing happens.  I call back and told a different excuse every time. I h

  • Why is importing raw as dng so very slow? 3 min a frame

    I have a canon 5d mark II, 4Gb compactflash card ultra II en extreme III Importing them by usb 2,0 reader to lightroom 2.6 on apple G5, 2,3 Ghz,  2,5 Gb DDR2 SDRAM. At the same time converting them to DNG and making a back-up to a other computer in t

  • Settings manager help please

    Since updating to Flash version 10 I no longer can change settings, ie set permissions, chose camera, microphone, etc from the settings manager; I am am also unable to close the settings manager box after opening it unless I refresh the page.  I can

  • Moving data

    We need to move schema from one tablespace to another tablespace. we are going to use following method: alter table <tab> move tablespace <new_tbsp>;my question is do we need to disbale primary keys and foreign keys before move and enable them at end