Trigger for wirting to file

Hello everyone!
What I need to do is:
Everytime there is a specific insert into a table of the database I have to retrieve the row inserted and write the the contents of the row into a file in xml format.
Can anyone help me how to do this?

I have prepared a Crude code. This might suite your needs. If it doesn't, you shall still have an idea of how to proceed to solve the problem.
create table test_table (pk_col number, col varchar2(10));
create table store_mod_xml (col clob);
insert into store_mod_xml values (empty_clob());
select * from store_mod_xml;
create or replace trigger trg_test_tab
after insert on test_table
for each row
declare
l_clob    store_mod_xml.col%type;
l_str     varchar2(4000);
begin
  begin
    select col
      into l_clob
      from store_mod_xml;
  exception
    when others then
      null;
  end;
  if l_clob = empty_clob() then
    dbms_lob.createtemporary(l_clob, true);
    l_str := '<?xml version="1.0"?>';
    dbms_lob.append(l_clob, l_str);
  end if;
  l_str := '<PK_COL>' || :new.pk_col || '</PK_COL>' || CHR(10) || '<COL>' || :new.col || '</COL>' || CHR(10);
  dbms_lob.append(l_clob, l_str);
  update store_mod_xml set col = l_clob;
end;
insert into test_table values (1, 'A');
insert into test_table values (2, 'B');
insert into test_table values (3, 'C');
insert into test_table values (4, 'D');
insert into test_table values (5, 'E');This is not a well-tested code so I would recommend to test before using it.
After you have the CLOB in table, you can export it to a file using UTL_FILE. This Link might help you in accomplishing it.
Regards,
P
Edited by: PurveshK on May 29, 2012 1:24 PM

Similar Messages

  • Is there a way to change the default icon for a sound file in KN2

    i have need to include dozens of sound files on each slide that will trigger as text builds. i can handle all the transitions fine but i cannot figure out how to change the standard icon for the sound file.
    i would prefer to have the text be the icon, if that is not possible to have a smaller icon for the file. as i build the page i am ending up with a huge mess, icons covering text, also there is not a intuitive way to tell which sound file is which with out click/playing each file.
    powerbook g4 Mac OS X (10.4.4)

    Did you try:
    OracleBI/web/app/res/s_.../popbin/
    EX:
    line.pcxml Look for <SeriesDefinition ...
    we modified the line width and a few other things. You'll have to modify all the pcxml files for all the chart types you want to customize.

  • What could be the reason for this error file

    Hi,
    What could be reason for this error file, the content of the error file is :
    Compiling INSERT-PROCEDURE trigger on IOTDISPUTE_FILES data block...
    No compilation errors.
    Compiling UPDATE-PROCEDURE trigger on IOTDISPUTE_FILES data block...
    No compilation errors.
    Compiling DELETE-PROCEDURE trigger on IOTDISPUTE_FILES data block...
    No compilation errors.
    Compiling LOCK-PROCEDURE trigger on IOTDISPUTE_FILES data block...
    No compilation errors.
    Compiling INSERT-PROCEDURE trigger on IOTDISPUTEDETAILS data block...
    No compilation errors.
    Compiling UPDATE-PROCEDURE trigger on IOTDISPUTEDETAILS data block...
    No compilation errors.
    Compiling DELETE-PROCEDURE trigger on IOTDISPUTEDETAILS data block...
    No compilation errors.
    Compiling LOCK-PROCEDURE trigger on IOTDISPUTEDETAILS data block...
    No compilation errors.
    Created form file X:\IOT\IOT_SupportingSystem\Forms\IOTRAP.fmx
    I am getting this error while compiling a form with DML sources are Database Procedure.
    Thanks in advance.
    Rizly

    Hi,
    Sorry for the delayed response. These informations are generated in the FormName.err file. If its not the error, then why its not generating for other forms. As I mentioned earlier, this fom has DML sources by the Database Procedures, that could be the reason ?, this is my first project in Forms.
    The content of the IOTRAP.err file:
    Compiling DELETE-PROCEDURE trigger on IOTDISPUTEDETAILS data block...
    No compilation errors.
    Compiling LOCK-PROCEDURE trigger on IOTDISPUTEDETAILS data block...
    No compilation errors.
    Created form file X:\IOT\IOT_SupportingSystem\Forms\IOTRAP.fmx
    Thanks in advance.
    Rizly

  • Photoshop Elements Organizer 11 crashes due to deadlock in the thread wait chain when creating thumbnails for *.mts (AVCHD) files

    Hi,
    the Elements Organizer 11 creates a deadlock in the wait chain when generating thumbnails for more than a handful of MTS (AVCHD) files.
    After importing AVCHD files from my Canon video camera, the organizer using default settings always crashes. I was able to narrow down the problem to be caused by thumbnail generating.
    After deactivating the automatic generation of thumbnails, the organizer does not crash any more upon launching .
    Of course, working without thumbnails is not very practical. The next resort is manual trigger of thumbnail generation by selecting "update thumbnail".
    If I manually trigger updating of thumbnails for files one by one, then it works for quite many files before crashing again.
    Selecting thumbnail update for multiple files at once has a much higher likelihood to crash.
    This does not seem to be related to particular file contents: a file that leads to crashing once may be flawlessly get a thumbnail created at the next attempt.
    The Windows event report looks as follows (German language Windows):
    Name der fehlerhaften Anwendung: PhotoshopElementsOrganizer.exe, Version: 11.0.0.0, Zeitstempel: 0x505e9f67
    Name des fehlerhaften Moduls: msvcrt.dll, Version: 7.0.9600.16384, Zeitstempel: 0x52158ff5
    Ausnahmecode: 0xc0000005
    Fehleroffset: 0x00009919
    ID des fehlerhaften Prozesses: 0x13c8
    Startzeit der fehlerhaften Anwendung: 0x01cfb676145d0c54
    Pfad der fehlerhaften Anwendung: C:\Program Files (x86)\Adobe\Elements 11 Organizer\PhotoshopElementsOrganizer.exe
    Pfad des fehlerhaften Moduls: C:\WINDOWS\SYSTEM32\msvcrt.dll
    Berichtskennung: b8817e29-2269-11e4-bf2d-10bf487f7b28
    Vollständiger Name des fehlerhaften Pakets:
    Anwendungs-ID, die relativ zum fehlerhaften Paket ist:
    Occasionally, a different module is listed as erroneous instead of msvcrt.dll.
    My questions:
    - has anyone experienced the same problem?
    - is this a known issue with Organizer 11?
    - is the issue solved with Organizer 12?
    I have Premiere Elements 11, Photoshop Elements 11 installed and not experienced any other issues with these applications.
    Playback of said AVCHD (*.mts) files works flawlessly, i.e. I do not have any codec or performance issue on my PC.
    Deactivation of anti-virus software has no significant effect. I have excluded video directories from scanning anyways.
    Have deactivated face recognition, visual search and smart tagging in the organizer.
    Have also disabled hyperthreading in the BIOS.
    Using Windows XP compatibility settings for PSE somewhat improved the stability, but did not completely eliminate crashes.
    Additionally, it signnificantly slows down thumbnail generation and a progress indication window becomes visible during thumbnail generation, which is barely noticable in native Win 8.1 mode.
    Officially, Elements 11 is compatible with Windows 8.1.
    There is a knowledgebase article related to Elements 6, which recommends to disable multi-threading and to enforce execution of Organizer on more than one core.
    This reduces the problem a little bit, but thumbnailing more than a handful of files still leads to crashing.
    By means of the task manager, I analyzed the wait chain of the process PhotoshopElementsOrganizer.exe:
    Every time the fault occurs, it is caused by a deadlock in the wait chain.
    For example:
    PhotoshopElementsOrganizer.exe (PID:6440) Thread: 6540
    -- PhotoshopElementsOrganizer.exe (PID:6440) Thread: 5932
    ---- PhotoshopElementsOrganizer.exe (PID:6440) Thread: 6540
    PhotoshopElementsOrganizer.exe (PID:6440) Thread: 5932
    -- PhotoshopElementsOrganizer.exe (PID:6440) Thread: 6540
    ---- PhotoshopElementsOrganizer.exe (PID:6440) Thread: 5932
    Regards
    Oliver
    Microsoft Windows 8.1 Pro, 64bit, 6.3.9600 Build 9600
    Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz,
    16 GB RAM
    AMD Radeon HD5450, 1GB
    256 GB SSD,  Crucial M4-CT256 (Windows, Application, Swap and Temp files), NTFS
    1.8 TB HDD, WesternDigital, WD2002FAEX-007BA0, NTFS  (media store)

    Hi,
    I'm experiencing the same problem after importing MTS files.
    When you said that you unisntall all other codec, what do you mean?
    Codec Inside element software?
    I have desable the automatic thumbnail and it still crash.
    I'M running the software and trying to import more video files and the program keep crashing during the process of selecting the files in the directory to be imported.
    i went in my windows 7 journal and here is the error.
    System
    Provider
    [ Name]
    Application Error
    EventID
    1000
    [ Qualifiers]
    0
    Level
    2
    Task
    100
    Keywords
    0x80000000000000
    TimeCreated
    [ SystemTime]
    2014-08-31T19:36:04.000000000Z
    EventRecordID
    244366
    Channel
    Application
    Computer
    Ordi-Denis
    Security
    EventData
    PhotoshopElementsOrganizer.exe
    11.0.0.0
    503fdd1d
    MSACM32.dll
    6.1.7600.16385
    4a5bda4e
    c0000005
    00004d91
    1634
    01cfc552c927dce5
    C:\Program Files (x86)\Adobe\Elements 11 Organizer\PhotoshopElementsOrganizer.exe
    C:\Windows\system32\MSACM32.dll
    0b097e53-3146-11e4-a14e-bcaec51a14f7
    Please i need help since Adobe is not helping us.

  • Searching for un-used files

    Our Marketing department is close to maxing out 5.5 TBs of disk on our Xraid. Is there a way to search on files that have not been read in "x" number of days (likely a search that would show files that have not read before a particular date)?
    I'm using the term "read" because we likely have many older files (image files) that have an older Created or Modified date, but are read for printing, PDF creation and collecting for print and will need to be retained. I just want to locate the files that have not been touched in 18 months, including read for creating a PDF or printing.

    If your volume is indexed via spotlight, you might be able to pull this off. I said might. You really must test this because you are asking for if the file is "Read." The challenge here is that I am not sure if Spotlight will update a file that is read as compared to a file that is opened. So test this first. But, in theory, this might point you in the right direction.
    First, create or collect a bunch of sample files. Then start investigating those files using the mdls command. For example, if I have files titled one.txt, two.mov, and three.doc, I might get a result similar to this when using mdls one.txt:
    kMDItemContentCreationDate = 2009-06-24 17:05:15 -0400
    kMDItemContentModificationDate = 2009-06-24 17:05:32 -0400
    kMDItemContentType = "dyn.ah62d4rv4ge80g55sq2"
    kMDItemContentTypeTree = (
    "public.data",
    "public.item"
    kMDItemDisplayName = "one.txt"
    kMDItemFSContentChangeDate = 2009-06-24 17:05:32 -0400
    kMDItemFSCreationDate = 2009-06-24 17:05:15 -0400
    kMDItemFSCreatorCode = ""
    kMDItemFSFinderFlags = 0
    kMDItemFSHasCustomIcon = 0
    kMDItemFSInvisible = 0
    kMDItemFSIsExtensionHidden = 0
    kMDItemFSIsStationery = 0
    kMDItemFSLabel = 0
    kMDItemFSName = "one.txt"
    kMDItemFSNodeCount = 0
    kMDItemFSOwnerGroupID = 20
    kMDItemFSOwnerUserID = 501
    kMDItemFSSize = 23
    kMDItemFSTypeCode = ""
    kMDItemKind = "Document"
    kMDItemLastUsedDate = 2009-06-27 08:39:44 -0400
    kMDItemUsedDates = (
    2009-06-24 00:00:00 -0400,
    2009-06-27 00:00:00 -0400
    Ok, so you have some attributes that are based on time displayed in the results (kMDItemContentCreationDate , kMDItemFSContentChangeDate, kMDItemContentModificationDate, kMDItemFSCreationDate, and kMDItemLastUsedDate). The one that may provide what you are looking for is kMDItemLastUsedDate. This attribute will update each time a file is opened. Here is where the "read" part of your question comes in. I am guessing you are supporting the creative industry, likely desktop publishing. You have documents that point to images. Many never change but are used all the time. That being the case, I did not test to see if kMDItemLastUsedDate updates on an InDesign place or collect. I will let you test that.
    If this works, then you can use mdfind to find files older than 7 days old. Here is how you do it:
    mdfind -onlyin /Path/to/data 'kMDItemLastUsedDate <= $time.today(-7)'
    The structure here is simple. Tell mdfind to look only in /Path/to/data (set this to your real path) and search for any file whose kMDItemLastUsedDate attribute is less than or equal to 7 days old (increase or decrease the number as needed).
    This will produce a list of files. With a little shell scripting you can take the list and then act on it. ie: move the files, archive them, etc.
    As mentioned, you need to test your specific condition. I am curious to know if a place or update links will trigger an update to kMDItemLastUsedDate.
    Hope this helps.
    Message was edited by: Strontium90

  • XML publisher report not generating output for huge XML files

    Changed Depreciation Projections Report output type to XML.
    Defined a Data Definition and a new Data Template (RTF) for this report.
    Ran the Depreciation Projection Report to generate the XML output.
    Ran the XML Report Publisher report to generate teh PDF/Excel output of the above report.
    Output generated for smaller XML files. When XML size is big, the program is running for hours without generating the output.
    Teh RTF template is basically a matrix report in which the number of columns in the report is based on the number of periods the report is run for.
    The same is not working in the Desktop version also. The system is hanging when i try to view the preview pdf.
    The XML file size is approximately 33 MB.
    Please let me know if there is any way we can increase the memory size to see the output.
    Thanks,
    Ram.

    for publisher use Category: E-Business Suite

  • Changing the order for printing portfolio files in adobe acrobat 9 pro

    Does anyone know how to change the order for printing pdf files that are part of a portfolio in adobe acrobat 9 pro?  The documentation seems to say that it prints files alphabetically by filename rather than by the internal sort order.  This won't work for me. Any ideas? Thanks.

    Question1: No.
    Question2: No.

  • Does the online function cater for a PDF file created in version 9 to be converted to version 6

    I am running Win98SE on one computer (A) and WindowsXP on another computer (B).
    On Computer A I am running Adobe Reader 6.06.
    On Computer B I am running Adobe Reader 9
    Is there a methodology (presumably outside of Adobe Reader) to convert a version 9 file to a version 6 file so that it can be opened in Computer A?
    Microsoft Office Word/Excel for example allows files created in current versions of Office to be opened in the current version and saved as an earlier version.
    Does one have to buy the full Adobe Acrobat package to get a similar function?

    No. Reader is just that a reader of pdf files. You would need Acrobat Standard or Pro to change a file to be read by an earlier version.

  • Problem with my program looking for the settings file in the wrong folder

    I have been writing a simple FTP file uploader, what I want to do is be able to select the files I want to upload in windows explorer and then right click and click the menu item and it launches the program and passes the files paths that I have selected to it.
    So I use this in the windows registry "C:\Program Files\Java\jre1.6.0_03\bin\java.exe -jar D:\BenFTP\BenFTP.jar %1"
    It launches fine and has no problem finding the files I want to upload. The problem is that it tries to look for the settings file in the same folder that the file I am try to upload is in. Which it's not suppose to do since the settings file is in the same folder that the .jar is in.
    Edited by: ColNewman on Feb 5, 2008 6:55 PM

    So, you're looking for your settings file in your current working directory. There's no way to set the CWD in your registry entry (is there?) so that isn't a practical thing to do. Presumably you're using a File object or a FileReader or something? Can't do that.
    One alternative is to look for the settings file in the classpath. You can get a URL to a file in the classpath like this:URL settings = this.getClass().getResource("/settings.xml");Or you can get an InputStream to read the file by using the getResourceAsStream method. You would have to make sure that your executable jar file contained a Class-Path entry that specified the right directory, because the directory the jar is contained in isn't automatically in an executable jar's classpath.
    Another alternative is to ask the user where the settings file is supposed to be, and put an entry in the Preferences (java.util.prefs) to remember that location.

  • Is there support for animated .gif files?

    Is there support for animated gif files using
    form builder? I can't get it to work.
    Thanks
    Sean
    I am using forms 6.0

    She used the Link Tool, specfied 'Image URL' as the Source File Format and the url of the animated GIF in the Source Filename. Hope that helps.
    Makes sense but the form is not for the web.
    I have looked at doing it with timers and switching canvases, but that is just too much
    for sloppy animation. It's just not tight enough.
    Thanks,
    Sean
    null

  • Writing a java program for generating .pdf file with the data of MS-Excel .

    Hi all,
    My object is write a java program so tht...it'll generate the .pdf file after retriving the data from MS-Excel file.
    I used POI HSSF to read the data from MS-Excel and used iText to generate .pdf file:
    My Program is:
    * Created on Apr 13, 2005
    * TODO To change the template for this generated file go to
    * Window - Preferences - Java - Code Style - Code Templates
    package forums;
    import java.io.*;
    import java.awt.Color;
    import com.lowagie.text.*;
    import com.lowagie.text.pdf.*;
    import com.lowagie.text.Font.*;
    import com.lowagie.text.pdf.MultiColumnText;
    import com.lowagie.text.Phrase.*;
    import net.sf.hibernate.mapping.Array;
    import org.apache.poi.hssf.*;
    import org.apache.poi.poifs.filesystem.*;
    import org.apache.poi.hssf.usermodel.*;
    import com.lowagie.text.Phrase.*;
    import java.util.Iterator;
    * Generates a simple 'Hello World' PDF file.
    * @author blowagie
    public class pdfgenerator {
         * Generates a PDF file with the text 'Hello World'
         * @param args no arguments needed here
         public static void main(String[] args) {
              System.out.println("Hello World");
              Rectangle pageSize = new Rectangle(916, 1592);
                        pageSize.setBackgroundColor(new java.awt.Color(0xFF, 0xFF, 0xDE));
              // step 1: creation of a document-object
              //Document document = new Document(pageSize);
              Document document = new Document(pageSize, 132, 164, 108, 108);
              try {
                   // step 2:
                   // we create a writer that listens to the document
                   // and directs a PDF-stream to a file
                   PdfWriter writer =PdfWriter.getInstance(document,new FileOutputStream("c:\\weeklystatus.pdf"));
                   writer.setEncryption(PdfWriter.STRENGTH128BITS, "Hello", "World", PdfWriter.AllowCopy | PdfWriter.AllowPrinting);
    //               step 3: we open the document
                             document.open();
                   Paragraph paragraph = new Paragraph("",new Font(Font.TIMES_ROMAN, 13, Font.BOLDITALIC, new Color(0, 0, 255)));
                   POIFSFileSystem pofilesystem=new POIFSFileSystem(new FileInputStream("D:\\ESM\\plans\\weekly report(31-01..04-02).xls"));
                   HSSFWorkbook hbook=new HSSFWorkbook(pofilesystem);
                   HSSFSheet hsheet=hbook.getSheetAt(0);//.createSheet();
                   Iterator rows = hsheet.rowIterator();
                                  while( rows.hasNext() ) {
                                       Phrase phrase=new Phrase();
                                       HSSFRow row = (HSSFRow) rows.next();
                                       //System.out.println( "Row #" + row.getRowNum());
                                       // Iterate over each cell in the row and print out the cell's content
                                       Iterator cells = row.cellIterator();
                                       while( cells.hasNext() ) {
                                            HSSFCell cell = (HSSFCell) cells.next();
                                            //System.out.println( "Cell #" + cell.getCellNum() );
                                            switch ( cell.getCellType() ) {
                                                 case HSSFCell.CELL_TYPE_STRING:
                                                 String stringcell=cell.getStringCellValue ()+" ";
                                                 writer.setSpaceCharRatio(PdfWriter.NO_SPACE_CHAR_RATIO);
                                                 phrase.add(stringcell);
                                            // document.add(new Phrase(string));
                                                      System.out.print( cell.getStringCellValue () );
                                                      break;
                                                 case HSSFCell.CELL_TYPE_FORMULA:
                                                           String stringdate=cell.getCellFormula()+" ";
                                                           writer.setSpaceCharRatio(PdfWriter.NO_SPACE_CHAR_RATIO);
                                                           phrase.add(stringdate);
                                                 System.out.print( cell.getCellFormula() );
                                                           break;
                                                 case HSSFCell.CELL_TYPE_NUMERIC:
                                                 String string=String.valueOf(cell.getNumericCellValue())+" ";
                                                      writer.setSpaceCharRatio(PdfWriter.NO_SPACE_CHAR_RATIO);
                                                      phrase.add(string);
                                                      System.out.print( cell.getNumericCellValue() );
                                                      break;
                                                 default:
                                                      //System.out.println( "unsuported sell type" );
                                                      break;
                                       document.add(new Paragraph(phrase));
                                       document.add(new Paragraph("\n \n \n"));
                   // step 4: we add a paragraph to the document
              } catch (DocumentException de) {
                   System.err.println(de.getMessage());
              } catch (IOException ioe) {
                   System.err.println(ioe.getMessage());
              // step 5: we close the document
              document.close();
    My Input from MS-Excel file is:
         Planning and Tracking Template for Interns                                                                 
         Name of the Intern     N.Kesavulu Reddy                                                            
         Project Name     Enterprise Sales and Marketing                                                            
         Description     Estimated Effort in Hrs     Planned/Replanned          Actual          Actual Effort in Hrs     Complexity     Priority     LOC written new & modified     % work completion     Status     Rework     Remarks
    S.No               Start Date     End Date     Start Date     End Date                                        
    1     setup the configuration          31/01/2005     1/2/2005     31/01/2005     1/2/2005                                        
    2     Deploying an application through Tapestry, Spring, Hibernate          2/2/2005     2/2/2005     2/2/2005     2/2/2005                                        
    3     Gone through Componentization and Cxprice application          3/2/2005     3/2/2005     3/2/2005     3/2/2005                                        
    4     Attend the sessions(tapestry,spring, hibernate), QBA          4/2/2005     4/2/2005     4/2/2005     4/2/2005                                        
         The o/p I'm gettint in .pdf file is:
    Planning and Tracking Template for Interns
    N.Kesavulu Reddy Name of the Intern
    Enterprise Sales and Marketing Project Name
    Remarks Rework Status % work completion LOC written new & modified Priority
    Complexity Actual Effort in Hrs Actual Planned/Replanned Estimated Effort in Hrs Description
    End Date Start Date End Date Start Date S.No
    38354.0 31/01/2005 38354.0 31/01/2005 setup the configuration 1.0
    38385.0 38385.0 38385.0 38385.0 Deploying an application through Tapestry, Spring, Hibernate
    2.0
    38413.0 38413.0 38413.0 38413.0 Gone through Componentization and Cxprice application
    3.0
    38444.0 38444.0 38444.0 38444.0 Attend the sessions(tapestry,spring, hibernate), QBA 4.0
                                       The issues i'm facing are:
    When it is reading a row from MS-Excel it is writing to the .pdf file from last cell to first cell.( 2 cell in 1 place, 1 cell in 2 place like if the row has two cells with data as : Name of the Intern: Kesavulu Reddy then it is writing to the .pdf file as Kesavulu Reddy Name of Intern)
    and the second issue is:
    It is not recognizing the date format..it is recognizing the date in first row only......
    Plz Tell me wht is the solution for this...
    Regards
    [email protected]

    Don't double post your question:
    http://forum.java.sun.com/thread.jspa?threadID=617605&messageID=3450899#3450899
    /Kaj

  • Open module for managing property file and environment variables

    Looking for an open module for managing property files and environment variables (like CLASSPATH) set in a shell script. For handeling properties (preserving comments, supporting includes, appending new entries, and more) I have looked at SuperProperties from openadaptor but find certain functionality lacking. As for interfacing with common shell scripts/files containing setting for CLASSPATH, JAVA_HOME, other system/application variables another type of object editor is needed. Maybe JFIG?
    Any ideas are greatly welcomed.

    You seem wright, you hit a brick wall here with Air to find the location
    of the command console on windows...
    So in fact I never build an exe tool, but this little problem was a nice
    case to test it and I tried it.:
    I downloaded monodevelop
    -GTK# for .NET 2.12.10*
    -MonoDevelop 2.4.2*
       from http://monodevelop.com/Download
    created a console project and had an exe in 5 minutes !
    You can download the findconsole tool and the projectfiles here:
       http://greencollective.nl/temp/dump/findconsole_monoproject.zip
    findconsole.exe will reveal the path/location of cmd.exe on a windows system.
    Cheers,
    Latcho

  • Crash on search function for HTML Help file (.chm) when connected to a Visual C++ application

    Crash on search function for HTML Help file (.chm) when
    connected to a Visual C++ application
    I use the RH_ShowHelp API command to connect a HTML Help file
    (.chm file generated by RoboHelp Word X 5) to my Visual C++
    application. My application is able to call up this HTML help file
    in context-sensitive mode and everything is working great in the
    Contents and Index panels EXCEPT when I click on List Topics (after
    I enter a KEYWORD for search) in the Search panel.
    I got an error that said “Unhandled exception in
    xxxx.exe.(HHCTRL.OCX):0xC00000FD: Stack overflow”
    I am able to execute this .chm file by itself and the search
    function works well in this case. I am using HHActiveX.dll that is
    created on 2/23/04. Is this the correct version?? Any advice what
    to do here??

    Hi agschin and welcome to the RH forums. The hhactivex.dll
    file is not used by the search function so you can rule that our.
    Have you tried recompiling and seeing if the problem still happens?
    You can also start the Bug Hunter feature in RH - View > Output
    View and then select the Bug Hunter button - and see if that throws
    up any clues.

  • How do I change or remove default apps for a given file extension (in Terminal?) without munging date modified on all my old files?

    When a program is installed, it seems to be able to do it (sometimes inappropriately if it hijacks file associations without asking) so why can't I?  This is for 10.4.
    Specifically:
    1. Since installing an HP wireless printer, HP not only tries to install a bunch of sales-ware on your machine that you have to carefully opt out of (annoying, but not a problem if forewarned), it changes the default file association for a number of basic file types, listing all sort of existing files as HP printer files. Using Get Info to change the default file type association globally causes it to mark ALL the files of that type as newly updated, munging the file metdata (which HP did NOT do). Most of the stuff on our computer is sorted by last modified, so if there is a way to fix this in Terminal (to simply fix or remove the HP default tag) without changing the date the file was modified, it would help. Note that uninstalling the program that created the default would do this, but I obviously can't do that (and reinstalling HP would have the same effect). So there has to be another way, right?
    2. Since updating iTunes to v.9 a while back, every mp3 is marked as an iTunes file even though iTunes has NO multiple library capability without a wonky reboot using the option key, meaning that if I click on an mp3 downloaded since last update of iTunes, it opens automatically in iTunes and gets added to the SOLE itunes library without asking. (There is no way to toggle between multiple libraries or archive media in separate folders; iPhoto has a similar problem. (Has this been fixed in the latest version of iTunes?) In comparison, Quicktime starts up immediately and does not attempt to create a playlist just because you opened a file and listened to it.
    (The iTunes playlists are simply subfolders of the single main library -- and you can't create a new library without doing a wonky procedure by clicking option during startup and telling iTunes to forget where its library is located (includin everything in it) and look up an entirely separate one by hand. So any mp3 file downloaded recently is uploaded to iTunes if you click on it. This wouldn't be problem if it didn't automatically add it to the sole iTunes library just because you clicked on it.)
    Besides, all my old mp3s are Quicktime files and they are all archived by date modified. To its credit, ITunes, unlike HP, does NOT hijack older files already on disk and remark them as iTunes files. It only marks newly downloaded files as such.  But if I try and change file association for FUTURE mp3 files using Get Info > "use this program for all files of this type", it munges the file metadata (date modified) for all existing files!
    Note that in HP case, it apparently does it at the file exchange preference level (or whatever it's called) since the OS then recognizes every file of those types as an HP file. In the iTunes case, it only does it if you download a new media file or open an existing file in iTunes, but again without changing the date it was last edited.
    Since these programs are able to change the default file association without changing the date the file was last edited, it should be reversible in Terminal, correct?  Why does it change "date modified" when you try and correct metadata using Get Info (or sometimes just by clicking an enclosing folder?) Date modified should be a record of when a file itself was edited, not when it was renamed, or other metadata. Otherwise stuff can't be sorted correctly.

    The unix commands you need are:
    GetFileInfo
    SetFileInfo
    and maybe find
    for cryptic details use the man command
    Macintosh-HD -> Applications -> Utilities -> Terminal
    man SetFileInfo
    You may use the SetFileInfo command to set the file type & the program which will open the file.
    # This little gem will do a get info on all files in a directory.
    mac $ ls  | xargs -I {} GetFileInfo "{}"
    file: "/Users/mac/playdoc/oddadocodd"
    type: ""
    creator: ""
    attributes: avbstclinmedz
    created: 05/01/2011 14:53:22
    modified: 05/01/2011 14:53:22
    file: "/Users/mac/playdoc/one.docx"
    type: ""
    creator: ""
    attributes: avbstclinmedz
    created: 05/01/2011 13:57:48
    modified: 05/01/2011 13:57:48
    file: "/Users/mac/playdoc/oneLineFile"
    type: "TEXT"
    creator: "!Rch"
    attributes: avbstclinmedz
    created: 05/07/2011 14:27:17
    modified: 05/07/2011 14:27:17
    file: "/Users/mac/playdoc/oneLineFile.txt"
    type: "TEXT"
    creator: "!Rch"
    attributes: avbstclinmedz
    created: 05/07/2011 14:27:49
    modified: 05/07/2011 14:27:49
    file: "/Users/mac/playdoc/three.docx"
    type: ""
    creator: ""
    attributes: avbstclinmedz
    created: 05/01/2011 13:58:03
    modified: 05/01/2011 13:58:03
    file: "/Users/mac/playdoc/two.docx"
    type: ""
    creator: ""
    attributes: avbstclinmedz
    created: 05/01/2011 13:57:56
    modified: 05/01/2011 13:57:56
    file: "/Users/mac/playdoc/weirder.doc.docx"
    type: ""
    creator: ""
    attributes: avbstclinmedz
    created: 05/01/2011 14:50:03
    modified: 05/01/2011 14:50:03
    # well, ! is a funnie character so we escape it.
    mac $ SetFile -t TEXT -c \!Rch two.docx
    mac $ GetFileInfo two.docx
    file: "/Users/mac/playdoc/two.docx"
    type: "TEXT"
    creator: "!Rch"
    attributes: avbstclinmedz
    created: 05/01/2011 13:57:56
    modified: 05/01/2011 13:57:56
    mac $
    mac $ date
    Sat May  7 14:40:56 EDT 2011
    mac $

  • Unable to open document. Please check to see if you have read permission for the above file.

    System:
    Adobe Acrobat X Pro, 10.1.2
    Windows 7 Enterprise, 32-bit
    Quad Core badass CPU
    4GB RAM
    MS Word 2010 (Office 2010)
    I installed the latest version as Administrator and am running as Administrator. I have all rights to all files on the PC.
    When I attempt to create a PDF from any Word document, whether .DOC or .DOCX, I get an error window every time:
    "Unable to open document:"
    "[document location]"
    "Please check to see if you have read permission for the above file."
    This happens after the little notice pops up "Starting the application which created the document...."
    If I open Word and create PDF from the ribbon, it works. It still won't allow me to create from Acrobat.
    It creates PDFs from Excel files but not DOC files. I've searched for solutions but found none. I did find this from July of 2011:
    "I have found out from Adobe technical support that this is a known issue with Office 2010 SP1 installed. This is an FYI for anyone else experiencing this issue, remove SP1 and it will work ok. They said an update to correct this issue will be coming within the next quarter."
    I have updated to the latest version 10.1.2 and still have this problem.
    This is a major issue, because it also fails on batch conversions, which is what I really need for the 100 or so documents that need to be PDFed. I'm not going to open each individual file and save each one from within Word.
    This is a KNOWN ISSUE at Adobe, and if you look through the forums you'll find many people having this problem, and so far, I have not seen any solution.
    If anyone has found the solution, please post it here.
    Thanks!
    B

    I think I found a solution. It seems to be relatet to normal.dotm.
    In our environment we have upgraded from XP & Office 2003 to Win7 and Office 2010. Normal.dot is stored on the users home share. When Office 2010 is started for the first time (for a user) it takes some of the old stuff from normal.dot and puts it in the new normal.dotm. When this happens, we get this error in Acrobat X.
    The solution is to rename both normal.dot and notmal.dot to e.g. normal.dot.old and normal.dotm.old. Office/Word 2010 will then create a new, "clean" normal.dotm.
    (By the way, if you are in a corporate environment, you might have changed the default path to normal.dot in Office group policies. You can see it here: HKEY_CURRENT_USER\Software\Policies\Microsoft\office\14.0\common\general\usertemplates)
    I would be interested in knowing exactly why/what in normal.dotm caused this error. I can provide you (Adobe) with a faulty normal.dot(m), if you're interested.

Maybe you are looking for

  • Macbook pro 2013 suddenly turn off and wheh charged its define only grren light and dont turn on.

    Hi Friends.. I have mac book pro 2013. Today when I started its got suddenly turn off and also not turn on. The mac does not charged also not turn on. charger define only green light. I reset SMC but its not work. Please If any one have Idea.

  • Cash Basis VAT Accounting.

    Hi, Experts advises are needed immediately. We have a scenario of Cash basis VAT Accounting means client would like to consider the VAT amount only after making payment by the customer.  It means the scenario will be like below 1. Raise Invoice to th

  • Adding Transaction SXMB_MONI and it automatically adds SU01?

    I am not in the area of Security but here is what I am getting told.  When they create a role to give an IT user transaction SXMB_MONI (which allows them to research/trace interfaces into the system) it is automatically adding other transactions to t

  • My alarm clock stopped working....why?

    My alarm function in my clock has stopped working. Any thoughts on how to fix tis?

  • What's the proper behavior of Standard ACLs?

    Hi, I have a question regarding the Standard ACL. If I have 1000 lines of ACEs in an standard ACL, and I remove one ACE from the standard ACL, should this ACL be completely gone? Or we should have the rest of 999 ACEs still there? Thanks!