Bookmark through CLIENT_OLE2

Hello Seniors/Guru/experts
we have custom built oralce application (forms 11g).
Here is the detail:
we have word template(employee record.dot) store in database through blob. And each template have bookmark .i.e. "Emp name". We are able to call that stored .dot file which is stored in blob column/table via WEBUTIL . And we want to pass value in that template ((employee record.dot) for boommark name "Emp Name" through forms 11g.
We are able to open word and pass value through forms 11g but not in that template where bookmark is stored . so issue is :
1.how to pass value in that bookmark which is template (And template is in table blob column).
********"We are able to call that stored .dot file which is stored in blob column/table via WEBUTIL ." Here the code.
PROCEDURE Open_Doc
IS
-- Open a stored document --
LC$Cmd Varchar2(128) ; -- command to be run in Windows
LC$Nom Varchar2(100) ;
LC$Fic Varchar2(128);
LC$Path Varchar2(128);
LC$Sep Varchar2(1) ;
LN$But Pls_Integer ;
LB$Ok Boolean ;
FType VARCHAR2(20); -- File Type (Extension)
CType VARCHAR2(128); -- Command Type (in Windows)
-- Current Process ID --
ret WEBUTIL_HOST.PROCESS_ID ;
V_EMPID number(10);
cursor c1 is select emp_name from employee where emp_id=:emp.emp_id
Begin
     -- Local temporary file name --
     LC$Sep := '\'; -- you can use WEBUTIL_FILE.Get_File_Separator ;
--     LC$Nom := Substr( :BIN_DOCS.Name, instr( :BIN_DOCS.Name, LC$Sep, -1 ) + 1, 100 ) ;
     LC$Nom :=:EMP.EMP_NAME;
--message(LC$Nom);
     LC$Path := 'C:\Temp'; -- use standard DOS dir -- can use CLIENT_WIN_API_ENVIRONMENT.Get_Temp_Directory ;
     -- File Path with File name in Windows
     LC$Fic := LC$Path || LC$Sep || LC$Nom ;
--message('File info '||LC$Fic);
-- File extension
FType := SUBSTR(:EMP.DETAIL,INSTR(:EMP.DETAIL,'.') + 1, 4);
-- Based on File extension will assign Windows Command
CType := NULL; -- by default command in Windows is NULL - taken Windows default
-- Default Command is NOT working for WINWORD
IF UPPER(FType) IN ('DOC','DOTM','DOTX') THEN
CType := 'WINWORD /W';
END IF;
     -- File extraction --
OPEN c1;
FETCH c1 into V_EMPID;
IF NOT PKG_TRANSFERTS.DB_To_Client
LC$Fic ,
'EMPLOYEE',
'NAME',
'EMP_ID = ' || To_Char( :EMP.EMP_ID)
) THEN
Set_Alert_Property( 'AL_ERROR', TITLE, 'DB to Client' ) ;
Set_Alert_Property( 'AL_ERROR', ALERT_MESSAGE_TEXT, 'Error transfering local file' ) ;
LN$But := Show_Alert( 'AL_ERROR' ) ;
Raise Form_trigger_Failure ;
ELSE
Message('Transferred to Client');
END IF ;
close c1;
-- this command will be run from Windows
LC$Cmd := 'cmd /c start "My script" /WAIT '|| CType||' "'||LC$Fic ||'" ';
--message ('Host command: '||LC$Cmd);
     Ret := WEBUTIL_HOST.blocking( LC$Cmd ) ;
     LN$But := WEBUTIL_HOST.Get_return_Code( Ret ) ;
     IF LN$But <> 0 Then
          Set_Alert_Property( 'AL_ERROR', TITLE, 'Host() command' ) ;
Set_Alert_Property( 'AL_ERROR', ALERT_MESSAGE_TEXT, 'Host() command error : ' || To_Char( LN$But ) ) ;
LN$But := Show_Alert( 'AL_ERROR' ) ;
LB$Ok := WEBUTIL_FILE.DELETE_FILE( LC$Fic ) ;
Raise Form_Trigger_Failure ;
     END IF;
     -- Re-store the modified file in the database --
     LC$Fic :=LC$Fic||CAN;
IF NOT PKG_TRANSFERTS.Client_To_DB
LC$Fic ,
'EMPLOYEE',
'NAME',
'EMP_ID = ' || To_Char( :EMP.EMP_ID)
) Then
Set_Alert_Property( 'AL_ERROR', TITLE, 'Client to DB' ) ;
Set_Alert_Property( 'AL_ERROR', ALERT_MESSAGE_TEXT, 'Error on storing file' ) ;
LN$But := Show_Alert( 'AL_ERROR' ) ;
Raise Form_trigger_Failure ;
ELSE
     -- The changes are commited to Database --> Build better interface
     COMMIT;
     Clear_Message ;
     Message('File re-stored in the database /Commited', no_acknowledge ) ;      
END IF ;     
-- Remove the temporary local file --
     LB$Ok := WEBUTIL_FILE.DELETE_FILE( LC$Fic ) ;
     IF LB$Ok = FALSE Then
          Bell ;
          Message( 'Error removing local file ', no_acknowledge ) ;
     END IF;
     Clear_Message ;
Exception
          When Form_Trigger_Failure Then
          Raise ;
End Open_Doc ;
and as i said throgh CLIENT_OLE2 ,we are able to pass value in new winword but not in stored template ..Here is the code for only new winword...
DECLARE
app CLIENT_OLE2.OBJ_TYPE;
docs CLIENT_OLE2.OBJ_TYPE;
doc CLIENT_OLE2.OBJ_TYPE;
selection CLIENT_OLE2.OBJ_TYPE;
args CLIENT_OLE2.LIST_TYPE;
BEGIN
-- create a new document
app := CLIENT_OLE2.CREATE_OBJ('Word.Application');
CLIENT_OLE2.SET_PROPERTY(app,'Visible',1);
docs := CLIENT_OLE2.GET_OBJ_PROPERTY(app, 'Documents');
doc := CLIENT_OLE2.INVOKE_OBJ(docs, 'add');
selection := CLIENT_OLE2.GET_OBJ_PROPERTY(app, 'Selection');
message('1');
--doc := CLIENT_OLE2.GET_OBJ_PROPERTY(doc,'ActiveDocument');
-- insert data into new document from long item
CLIENT_OLE2.SET_PROPERTY(selection, 'Text',:emp.emp_no);
-- save document as example.doc
args := CLIENT_OLE2.CREATE_ARGLIST;
CLIENT_OLE2.ADD_ARG(args, 'c:\temp\Employee.doc');
CLIENT_OLE2.INVOKE(doc, 'SaveAs', args);
CLIENT_OLE2.DESTROY_ARGLIST(args);
-- close example.doc
args := CLIENT_OLE2.CREATE_ARGLIST;
CLIENT_OLE2.ADD_ARG(args, 0);
CLIENT_OLE2.INVOKE(doc, 'Close', args);
CLIENT_OLE2.DESTROY_ARGLIST(args);
CLIENT_OLE2.RELEASE_OBJ(selection);
CLIENT_OLE2.RELEASE_OBJ(doc);
CLIENT_OLE2.RELEASE_OBJ(docs);
-- exit MSWord
--CLIENT_OLE2.INVOKE(app,'Quit');
END;
so please help ,how to pass value in that stored template which has bookmark. Seniors/guru/experts please help ,its kind urgent.Thanks

Hi Seniors,guru,experts please help.Thanks in advance.

Similar Messages

  • Can't connect to websites with any browser. Bookmarks do not work but bookmarks  through bookmarks edit works just fine.

    Can't connect to websites with any browser. Bookmarks do not work but bookmarks  through bookmarks edit works just fine.

    Please read this whole message before doing anything.
    This procedure is a test, not a solution. Don’t be disappointed when you find that nothing has changed after you complete it.
    Step 1
    The purpose of this step is to determine whether the problem is localized to your user account.
    Enable guest logins* and log in as Guest. Don't use the Safari-only “Guest User” login created by “Find My Mac.”
    While logged in as Guest, you won’t have access to any of your documents or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this behavior; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.
    Test while logged in as Guest. Same problem?
    After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.
    *Note: If you’ve activated “Find My Mac” or FileVault, then you can’t enable the Guest account. The “Guest User” login created by “Find My Mac” is not the same. Create a new account in which to test, and delete it, including its home folder, after testing.
    Step 2
    The purpose of this step is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.
    Please take this step regardless of the results of Step 1.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you turn on the computer, and again when you log in.
    Note: If FileVault is enabled in OS X 10.9 or earlier, or if a firmware password is set, or if the startup volume is a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to start up and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal startup may also be somewhat slow.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem?
    After testing, restart as usual (not in safe mode) and verify that you still have the problem. Post the results of Steps 1 and 2.

  • OPENING AND GETTING MS WORD ACTIVE DOCUMENT THROUGH CLIENT_OLE2

    I am opening a word document through webutil host command. Now I need to get the active document of the opened word file.
    How it is possible?. Since I need to fire Callback trigger 'MY_TRIGGER' I can not define 'Word.Application' and get the
    'ACTIVEDOCUMENT'.
    DECLARE
    PID WEBUTIL_HOST.PROCESS_ID;
    app CLIENT_ole2.OBJ_TYPE;
    ADOC CLIENT_ole2.OBJ_TYPE;
    BEGIN
    PID := WEBUTIL_HOST.NonBlocking_With_Callback('D:\Program Files\Microsoft Office\OFFICE11\WINWORD.EXE C:\MYWORD.DOC','MY_TRIGGER');
    --APP := CLIENT_OLE2.CREATE_OBJ('WORD.APPLICATION');     
    --ADOC := CLIENT_OLE2.INVOKE_OBJ(APP,'ACTIVEDOCUMENT');          
    END;

    hi
    i did not get u very well but i am trying to help u.what do u want to achieve?
    check this code.
    DECLARE
    app CLIENT_OLE2.OBJ_TYPE;
    docs CLIENT_OLE2.OBJ_TYPE;
    doc CLIENT_OLE2.OBJ_TYPE;
    selection CLIENT_OLE2.OBJ_TYPE;
    args CLIENT_OLE2.LIST_TYPE;
    BEGIN
    -- create a new document
    app := CLIENT_OLE2.CREATE_OBJ('Word.Application');
    CLIENT_OLE2.SET_PROPERTY(app,'Visible',1);
    docs := CLIENT_OLE2.GET_OBJ_PROPERTY(app, 'Documents');
    doc := CLIENT_OLE2.INVOKE_OBJ(docs, 'add');
    selection := CLIENT_OLE2.GET_OBJ_PROPERTY(app, 'Selection');
    -- insert data into new document from long item
    CLIENT_OLE2.SET_PROPERTY(selection, 'Text', :long_item);
    -- save document as example.doc
    args := CLIENT_OLE2.CREATE_ARGLIST;
    CLIENT_OLE2.ADD_ARG(args, 'c:\temp\example.doc');
    CLIENT_OLE2.INVOKE(doc, 'SaveAs', args);
    CLIENT_OLE2.DESTROY_ARGLIST(args);
    -- close example.doc
    args := CLIENT_OLE2.CREATE_ARGLIST;
    CLIENT_OLE2.ADD_ARG(args, 0);
    CLIENT_OLE2.INVOKE(doc, 'Close', args);
    CLIENT_OLE2.DESTROY_ARGLIST(args);
    CLIENT_OLE2.RELEASE_OBJ(selection);
    CLIENT_OLE2.RELEASE_OBJ(doc);
    CLIENT_OLE2.RELEASE_OBJ(docs);
    -- exit MSWord
    CLIENT_OLE2.INVOKE(app,'Quit');
    END;sarah

  • My old computer crashed and the hard drive is non recoverable. Is there a way to recover my saved bookmarks through the Firefox website?

    My old computer crashed. I took hard drive to specialist to see if it could be recovered but it can't. I now have a new computer and will be running Firefox. is there a way to recover my Firefox bookmarks and files to my new computer through the Firefox website?

    I did sync my old PC but later the hard drive crashed. I do have the recovery key. How do I get all of my saved (synced) stuff onto my new PC? I am now running Windows 8 and Firefox 20.

  • People claim to loose bookmark after apgrade to FF4, what should I do to pull my bookmark through upgrade?

    Firefox 4 had been downloaded for few millions, but seems at least hundreds experienced a lost of old Bookmark.
    What they did wrong and how I can avoid those poor peoples fate?
    Second question: Once and again my current Firefox would not completely hang, but sort of -- it will get totally pale and would not react on my attempts to switch tabs. Yet I can continue to listen to voices from one of those tabs. I am wandering if it Firefox, or my computer infected, or may be even it is my novel antivirus (which is Trend Micro Titanium)?

    Was the device officially unlocked at some point or hacked to be unlocked?
    Is the SIM from a supported carrier?
    Sounds like the device was hacked to be unlocked and you're now trying to activate it with a SIM from a different carrier.  If it was hacked to be unlocked, upgrading has relocked the device to the original carrier.
    Have you tried a different SIM from the carrier the device is locked to.

  • After successfully importing my bookmarks through Firefox Sync from my old to new computer, can I purge the old computer and still have the bookmarks on the new

    I want to upgrade my computer and did a Windows Easy Transfer to my new one. My Firefox bookmarks did not show up on my new computer so I used Firefox Sync-which worked fine. Now that I have the bookmarks on the new computer, can I erase the old computer and still have the bookmarks on the new one.

    First, disconnect your old computer from Firefox Sync so you don't accidentally delete the data from sync, but then yes you should be good to go.

  • I need to access bookmarks through Google but have too new a firefox version. Can I get an older firefox version downloaded?

    I have been having problems with internet explorer, so have now switched to firefox. I have lots and lots of bookmarks stored under google bookmarks but can't access the google toolbar with the new versions of firefox. I need version 4 as the latest to enable me to access google. Can I download this older version instead of the newer version of firefox so i can access google toolbar?

    You can use this extension to be able to access your Google Bookmarks from within Firefox : <br />
    https://addons.mozilla.org/en-US/firefox/addon/gbookmarks-google-bookmarks-fo/

  • Managing bookmarks through PC Suite or Ovi Suite

    Hi all of you,
    Is there a way to manage - create, delete, move, ect. - bookmarks by using PC Suite or Ovi Suite
    and not the phone itself?
    Many thanx,
    Dodo

    Hello,
    Try http://www.bloove.com it allows to edit bookmarks and folders on the phone using desktop browser (ff, ie etc)

  • Problems with BookMarks Synchronization through iTunes

    Hello,
    I would like to synchronize Safari Bookmarks with iTunes.
    I have no problem with my iPad and my iPhone 4S, as soon as I unactivate Safari iCloud Synchronization, I can choose in iTunes to synchronize bookmarks.
    But with my iPhone 4, when I unactivate iCloud Synchronization, in iTune, it's written that My bookmarks are synchonized in OTA mode on my iPhone from MobileMe ....
    I don't know why we are talking about MobileMe ...
    I suspect that the iphone have still some information about an old MobileMe account (before iCloud ...) and I don't know at all how I can delete that ...
    I have receive my new iPhone 5 to replace the 4, I was hoping that this problem would be solved, but as I have restored an iPhone 4 backup on my iPhone 5 in order not to hav to define all parameters again, I now have the same problem on my iPhone 5.
    If someone know haw I can delete these old MobileMe information in order me to be able to simply synchronize bookmarks through iTunes, it would be wonderful.
    Thanks in advance.
    Regards
    Thierry

    1.Make sure that the files that you are trying to sync are of the .Mp4 formatt.
    2.If so, skip to step '4' If not, go to download.com and search for "free ipod video converter"
    3.Follow the steps provided by the program to convert the files
    4.Drag and drop the .mp4 files into the ipod icon in itunes like you would for a song.
    Hope I helped

  • Export a report though the URL as a PDF with BOOKMARKS

    Hi. I would like to export a report though the URL as a PDF with BOOKMARKS.
    As recommended in other posts, I updated Crystal Reports XI to Release 2 and I am able to export my report as a PDF with the bookmarks within the Crystal Reports tool.
    Is there a way to export my report as a PDF with the bookmarks through the URL ?
    Specifically, I would like to know the syntax of the URL to include the bookmarks.
    Thanks.
    KP

    You need to use OpenDocument feature.
    .NET:
    [http://<ServerName>businessobjects/enterprise115/infoview/scripts/openDocument.aspx?iDocID=<idocid>&sOutputFormat=P]
    JSP:
    [http://<ServerName>:<port No.>/businessobjects/enterprise115/desktoplaunch/opendoc/openDocument.jsp?iDocID=<idcoid>&sOutputFormat=P]

  • Sync a tasks or To-Do list - a basic workaround using Safari Bookmarks

    I resisted the iPhone when it came out but, being free with 02 in the UK, my resistance crumbled. I love it but am still flabbergasted by the lack of Tasks synchronisation. I had downloaded a simple 3rd party app, but this deleted all my tasks when it updated - of course, I didn't have a backup on my Mac.
    Before you get excited, this has nothing to do with Tasks in iCal. Sorry. This is a fix, of sorts, which will allow you to have a rudimentary tasks list which can be edited on either iPhone or Mac; most importantly, they can be synced.
    I don't have Windows so can't say whether this works with it or not - I imagine it should work using Safari for Windows.
    1) On the Mac, go to 'Show all Bookmarks' in Safari.
    2) Make a new Bookmarks folder anywhere. I put mine in the Bookmarks Bar, and called it 'To-Do'.
    3) Populate it with bookmarks. I did this by dragging the current Safari URL into it, about 10 times.
    4) Edit the names of the bookmarks, so as to leave it essentially - but not totally - blank. I renamed all the Bookmarks "." (period/full stop).
    5) After the period on each bookmark, enter the task item. It will look like e.g. ". Car service before 14/8". Repeat as necessary. You now will have a list of bookmarks, each renamed as tasks.
    6) Ensure that in iTunes, the iPhone is set to sync Safari bookmarks.
    7) Sync.
    8) You can now access your tasks on the iPhone, relatively simply, by accessing the bookmarks through Safari. Connectivity is unimportant as you will not be selecting the tasks/bookmarks/URL, merely looking at the list.
    9) The tasks/bookmarks can be edited or deleted using the Edit function. (There's a surprise). You can of course delete the entire task when completed but this will necessitate re-populating the new folder with more bookmarks. I just delete the name of the task up to, but not including, the period. Using the Edit function, you can also re-arrange the order of your tasks/bookmarks.
    That's it. Obviously it's not great and has limited functionality and no ability to archive. But, if like me, you just want a basic task list, easily accessible on either platform, editable and 'syncable', then it works surprisingly well.

    Thanks! If you will allow, I have a follow up question: do you have any experience with any particular app? If not, is it fairly easy to find an app like this?

  • How do I tie icon files to properties of bookmarks?

    When I was using the IE browser, I created icons (****.ico) for my files and bookmarks through properties.
    When I migrated to Firefox browser, the bookmarks and files were restored, but without the .ico properties. I went to Firefox tools/properties but the only option seems to be a "description". Can I restore the .ico properties?

    after installing the addon you have to initiate the scan for favicons once: press the alt-key to show the menu bar, go to the bookmarks and select the option to reload the favicons.

  • Unable to rename individual bookmarks

    For a month or longer now, I have been unable to rename individual bookmarks. I used to be able to do this so that I could shorten long website titles. But I have not been able to do so recently. Any help would be very much appreciated!

    Thank you both for the suggestions. My apologies for not explaining the process. I have tried renaming individual bookmarks both by opening "Show All Bookmarks," locating the specific bookmark, and entering the desired name under "Name" (which is located right above "Location"). I have also, as suggested above, sought to rename the bookmark through the window that opens when the Bookmark star is clicked.
    I just added a new folder to my bookmarks, and the problem applies to the folder as well. In fact, Firefox seemed to freeze after I added the folder when I tried to assign it a name. I restarted Firefox, the new folder was still there, and I still was unable to rename it from "New Folder."
    Thank you for trying to help!

  • Black lines through .pdf images

    I'm using Word 2007 and Adobe Pro X.  The figures I insert into my Word file are .pdf's that have been converted to .tiff or .png files.  When I create a .pdf directly from my Word file, my figures end up with thick black lines running through them.  If I just go to file > print > Adobe pdf, then my images print fine.  The only problem with that though is my Table of Contents isn't automatically bookmarked.  Any ideas why my figures are messed up when creating my .pdf directly from Word?  Any solutions?

    Hi ,
    Bookmarking is not a feature for Printing a file by Adobe printer , it  just produces a flat PDF ,so you wont get bookmarks through that route.
    I didn't quite get your issue . Are the images inserted into your word file .tiff and .png or any other format ?  Can you please share a word file which contains such images ?
    Thanks,
    Apoorv

  • Firefox 27.1 silent install and configuration(homepage, proxys and bookmark)

    Hello,
    I am trying to perform a silent install and configuration for Firefox 27.1 but I am not able to get the same results I got with versions 26 and below. For these previous versions I used the method described in this link:
    http://www.mockbox.net/configmgr-sccm/174-install-and-configure-firefox-silently
    But for Firefox 27 creating the Mozilla.cfg and the other files doesn't seem to work. Could you please tell me how to silently configure the proxys and homepage on Firefox 27.1 during the install. I also need to add a bookmark during the installation. Could you please tell me how to do that as well? I found some methods saying I had to edit a bookmark.html file but I don't think this file is present on firefox 26 on.
    thank you in advance.
    regards.

    thank you for your reply guigs2, unfortunately none of those links were helpful for me. As I mentioned in my question I already tried the silent install method using the Mozilla.cfg file. It worked for the previous versions but it doesn’t work for version 27 anymore. As for the INI file, that doesn’t help me either since I need to configure the homepage, proxies and bookmarks all during the installation, for the INI all I’ve seen is that you can configure INSTALLDIR, shortcuts etc. Configuring proxies, homepage and bookmarks through group policies as one of the solutions said is not an option for me, I need to do that during the silent install of Firefox 27.

Maybe you are looking for