Apex_util.download_print_document with clob file

Has anybody had success using apex_util.download_print_document with a clob data file (instead of Report Query)? I'm trying this with an XML dataset and rtf. document that works if I try in Word BI -Plugin. If I try code below from APEX page I get an error saying there is something wrong with the document.
apex_util.download_print_document(
p_file_name => 'test',
p_content_disposition => 'attachment',
p_report_data => test_clob('',''),
p_report_layout => 'ID_LST',
p_report_layout_type => 'rtf',
p_document_format => 'pdf',
p_print_server => null);
CREATE OR REPLACE FUNCTION test_clob (p_username in varchar2,
p_password in varchar2) return CLOB IS
v_clob CLOB;
BEGIN
v_clob := dbms_xslprocessor.read2clob('INTERFACES','id_lst.xml');
return(v_clob);
END test_clob;

FOP : [http://www.oracle.com/technology/products/database/application_express/html/configure_printing.html]
Cocoon: [http://carlback.blogspot.com/2007/03/apex-cocoon-pdf-and-more.html]
Jasperreports: [http://blog.dunull.org/?page_id=70]
Thank you,
Tony Miller
Webster, TX

Similar Messages

  • Apex_util.download_print_document with Oracle XE?

    Hi!
    Can anyone tell me whether it is possible to use apex_util.download_print_document with Oracle XE?
    And can I do so without BI Publisher?
    If not, please point me to some solution that allows me to print PDF from my apps.
    Thanks!
    Remco

    FOP : [http://www.oracle.com/technology/products/database/application_express/html/configure_printing.html]
    Cocoon: [http://carlback.blogspot.com/2007/03/apex-cocoon-pdf-and-more.html]
    Jasperreports: [http://blog.dunull.org/?page_id=70]
    Thank you,
    Tony Miller
    Webster, TX

  • Creating PDF with XML and APEX_UTIL.DOWNLOAD_PRINT_DOCUMENT

    I am trying to generate a PDF report with an existing BLOB stored in a table being applied to a report template. Here is my procedure.
    declare
    doc blob;
    begin
    select img into doc from table where id = :P1_SEL_ID;
    APEX_UTIL.DOWNLOAD_PRINT_DOCUMENT (
    p_file_name => 'Document',
    p_content_disposition => 'attachment',
    p_report_data => doc,
    p_report_layout => 'TEMPLATE1',
    p_report_layout_type => 'rtf',
    p_document_format => 'pdf'
    end;
    When I run the procedure adobe acrobat opens but gives me an error message saying "The file cannot be opened because it has no pages".
    I am storing the blob through APEX_UTIL.GET_PRINT_DOCUMENT and a report query with the document format 'XML' here.
    declare
    idoc blob;
    begin
    doc := APEX_UTIL.GET_PRINT_DOCUMENT (
    p_application_id => 103,
    p_report_query_name => 'SAVE_XML',
    p_document_format => 'xml');
    update table set
    img = doc
    where id = :P1_SEL_ID;
    end;
    I am pretty sure that the stored files have data in them as I tried downloading and opening them after stored. Any ideas as to why this is? Is it the way I am storing/calling the blob file?
    Edited by: BLum on Feb 1, 2010 4:13 PM

    Nope sorry. I have no idea really of what could be the problem. I cannot even find a valid example of how to use that process in that way. I posted here as a last resort. As sort of a patch I just read the xml file and inserted the data into a temp table then called a report query on the temp table.

  • Handling Special characters in call to apex_util.download_print_document

    I am developing some custom reports that I need as PDFs. My client does not have BI Publisher so I am doing some custom xsl to generate the reports. I test as I develop by using a simple web page that POSTs to the apex_fop.jsp. Then I also test by saving the XML and XSL to the database and then query them and using apex_util.download_print_document, passing the XML and XSL as a blob and clob respectively.
    The issue I have is an ampersand. The following line
    <td>this &amp; that</td>works great when sent via the web page post to apex_fop.jsp. However when the exact same file is saved to the database and run through apex_util.download_print_document and opened with Adobe Reader, it says the file has been damaged and the oc4j error log for the fop application says
    oracle.xml.parser.v2.XMLParseException: Unexpected EOF
    What's the difference between the two calling methods, and how do I get ampersands in the data using apex_util.download_print_document.
    Thanks.

    Larry,
    When you submit your request to apex_fop.jsp through a simple web page, and include escaped characters such as "&amp;", then your web browser takes care of encoding the & in your string. In APEX, you have a number of different ways to generate your PDF documents. You can use report queries, classic reports, interactive reports, or call the print API directly. When using any of the built-in reports (classic, interactive, report queries), the APEX engine generates the XML document holding your data for you. The APEX engine also takes care of escaping your data, so when you have a value like "this & that" in any of your queries columns, the engine escapes this to "this &amp; that". The engine additionally encodes characters such as &, which gets encoded into %26. And after that, processing is handed of to an interface between APEX and the print rendering engine. This interface simply takes the incoming XML data and stylesheet / template and makes an HTTP request to the rendering engine (e.g. BI Publisher, apex_fop.jsp, etc). It does not do any encoding, since that had been done in a previous step. The APEX print API is calling this interface directly, which means, that the incoming XML data already needs to be encoded prior to calling the APE. So if you change your string "this &amp; that" to "this %26amp; that", it should work as expected. We will have to look into whether we need to enhance the print API to allow for encoding the XML data supplied by the developer.
    Hope this helps,
    Regards,
    Marc

  • APEX_UTIL.DOWNLOAD_PRINT_DOCUMENT

    My system is Apex 4.0.1+oc4j+Apex Listener+BI publisher. I need generate user-defined report layout with custom padding-left,*padding-top* values for each printing element (it is like Edit Print Attributes page in the application builder, but more complex), so the standart Report Queries and Report Layouts is not an option. DOWNLOAD_PRINT_DOCUMENT Procedure Signature 3 working fine with the pre-defined report query and pre-defined report layout. But I get 0-Byte pdf-file when trying to print document using custom XML based report data (as a CLOB) and XSL-FO based report layout (as a CLOB). Can anyone provide working example? Here is mine:
    declare
    f_layout clob;
    f_data clob;
    begin
    f_data:='
    <?xml version="1.0" encoding="UTF-8"?>
    <DOCUMENT>
    <DATE>05/17/2011</DATE>
    <USER_NAME>NIN</USER_NAME>
    <APP_ID>103</APP_ID>
    <APP_NAME>Oracle APEX AppBuilder</APP_NAME>
    <TITLE>TEST</TITLE>
    <P32_VAL2></P32_VAL2>
    <REGION ID="0">
    <ROWSET>
    <ROW>
    <LANG>RUS</LANG>
    </ROW>
    <ROW>
    <LANG>ENG</LANG>
    </ROW>
    </ROWSET>
    </REGION>
    </DOCUMENT>
    f_layout:='
    <?xml version="1.0" encoding="UTF-8"?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:element name="DOCUMENT">
    <xs:complexType>
    <xs:sequence>
    <xs:element ref="DATE"/>
    <xs:element ref="USER_NAME"/>
    <xs:element ref="APP_ID"/>
    <xs:element ref="APP_NAME"/>
    <xs:element ref="TITLE"/>
    <xs:element ref="P32_VAL2"/>
    <xs:element ref="REGION"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <xs:element name="DATE">
    <xs:simpleType>
    <xs:restriction base="xs:string"/>
    </xs:simpleType>
    </xs:element>
    <xs:element name="USER_NAME">
    <xs:simpleType>
    <xs:restriction base="xs:string"/>
    </xs:simpleType>
    </xs:element>
    <xs:element name="APP_ID">
    <xs:simpleType>
    <xs:restriction base="xs:string"/>
    </xs:simpleType>
    </xs:element>
    <xs:element name="APP_NAME">
    <xs:simpleType>
    <xs:restriction base="xs:string"/>
    </xs:simpleType>
    </xs:element>
    <xs:element name="TITLE">
    <xs:simpleType>
    <xs:restriction base="xs:string"/>
    </xs:simpleType>
    </xs:element>
    <xs:element name="P32_VAL2">
    <xs:simpleType>
    <xs:restriction base="xs:string"/>
    </xs:simpleType>
    </xs:element>
    <xs:element name="REGION">
    <xs:complexType>
    <xs:sequence>
    <xs:element ref="ROWSET"/>
    </xs:sequence>
    <xs:attribute name="ID" use="required">
    <xs:simpleType>
    <xs:restriction base="xs:byte">
    <xs:enumeration value="0"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:attribute>
    </xs:complexType>
    </xs:element>
    <xs:element name="ROWSET">
    <xs:complexType>
    <xs:sequence>
    <xs:element ref="ROW"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <xs:element name="ROW">
    <xs:complexType>
    <xs:sequence>
    <xs:element name="LANG">
    <xs:simpleType>
    <xs:restriction base="xs:string"/>
    </xs:simpleType>
    </xs:element>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    </xs:schema>
    APEX_UTIL.DOWNLOAD_PRINT_DOCUMENT (
    p_file_name => 'mydocument',
    p_content_disposition => 'attachment',
    p_report_data => f_data,
    p_report_layout => f_layout,
    p_report_layout_type => 'xsl-fo',
    p_document_format => 'pdf');
    end;

    Hello,
    If you use a branch you don't see the download as the branch is bringing you to another/the same page.
    You probably want a before header process and make that conditional with a request. On your button you define the same request for ex PRINT. In your process, you set a condition Request = Value and type in PRINT.
    That should do it for you.
    Regards,
    Dimitri
    http://dgielis.blogspot.com/
    http://www.apex-evangelists.com/
    http://www.apexblogs.info/
    REWARDS: Please remember to mark helpful or correct posts on the forum

  • Bug in APEX_UTIL.DOWNLOAD_PRINT_DOCUMENT for special characters?

    Hi,
    I am using APEX_UTIL.DOWNLOAD_PRINT_DOCUMENT to download reports from BI-Publisher. But with special characters, and only if the filename is to long, the filename is in Firefox 10.0.2 not correct. In IE9 its running fine. I am not sure if its only a browser-problem or a problem with APEX.
    Here is the code:
    declare
        v_filename varchar2(1000);
    begin
        v_filename := 'Umlaut ü 123456789012345678901234567890123';
        APEX_UTIL.DOWNLOAD_PRINT_DOCUMENT (p_file_name => v_filename,
                                           p_content_disposition => 'attachment',
                                           p_application_id      => :APP_ID,
                                           p_report_query_name   => 'Checkliste',
                                           p_report_layout_name  => 'Checkliste',
                                           p_report_layout_type  => 'rtf',
                                           p_document_format     => 'pdf');
    end;With
    Umlaut ü 123456789012345678901234567890123its working and I get a file named "Umlaut ü 123456789012345678901234567890123.pdf".
    But with
    Umlaut ü 1234567890123456789012345678901234(one character longer) its not working and I get a file named "=_utf-8_B_VW1sYXV0IMO8IDEyMzQ1Njc4OTAxMjM0NTY3ODkwMTIzNDU2Nzg5MDEyMzQucGRm".
    If I change the ü to ue I have no problems, even with much longer filenames.
    Very strange, isnt it?
    Any ideas for this?
    Kind Regadrs,
    Mark

    Hi,
    it does not work all fine with the IE. The following is not working both browser (firefox and IE):
        APEX_UTIL.DOWNLOAD_PRINT_DOCUMENT (p_file_name => 'Objektpruefung 02.08.2010 1000.pdf',
                                           p_content_disposition => 'attachment',
                                           p_application_id      => :APP_ID,
                                           p_report_query_name   => 'AnlagenCheckliste',
                                           p_report_layout_name  => 'AnlagenCheckliste',
                                           p_report_layout_type  => 'rtf',
                                           p_document_format     => 'pdf');The filename is then "Objektpruefung 02..pdf".
    Can anybody help me?
    Regards,
    Mark

  • Using download_print_document with dynamic procedure

    I am using the version of download_print_document that calls a function (returning clob) for my reports (see below). I need to dynamicaly change the procedure being called in p_report_data line based on what report they run. Is it possible to store that in a DB column and pass that to the API or possibly use dynamic SQL etc?
    apex_util.download_print_document(
    p_file_name => l_form,
    p_content_disposition => 'attachment',
    p_report_data => sis_express_nj02.transcript (:P1,:P2,:P3),
    p_report_layout => l_layout,
    p_report_layout_type => 'rtf',
    p_document_format => 'pdf',
    p_print_server => null);*/

    Hi,
    Try something like:
    FUNCTION transcript (l_user in varchar2,
    l_owner in varchar2,
    l_report_order1 in varchar2,
    l_report_order2 in varchar2,
    l_report_order3 in varchar2,
    l_report_order4 in varchar2,
    l_start_yy in varchar2,
    l_resides_only in varchar2) return CLOB IS
    declare v_clob CLOB;
    l_p_report_data varchar2(30000) := 'sis_express_va23b.transcrip(
      v(''P507_APP_USER''),
    v(''P507_OWNER''),
    v(''P507_REPORT_ORDER''),
    v(''P507_REPORT_ORDER2''),
    v(''P507_REPORT_ORDER3''),
    v(''P507_REPORT_ORDER4''),
    v(''P507_YEAR''),
    v(''P507_RESIDES_ONLY'')
    begin
    execute immediate 'begin '|| ':1 := ' || l_p_report_data ||'; end;' using out v_clob;
    apex_util.download_print_document(
    p_file_name => l_form,
    p_content_disposition => 'attachment',
    p_report_data => v_clob,
    p_report_layout => l_layout,
    p_report_layout_type => 'rtf',
    p_document_format => 'pdf',
    p_print_server => null);
    end;The previous suggestion should work too but I think you don't you don't need *'* around l_p_report_data
    and you need OUT before v_clob parameter
    execute immediate l_p_report_data
    using OUT v_clob,l_user,lowner,l_report_order1,l_report_order2, ...Regards,
    Lev
    Edited by: le on Jan 12, 2011 1:09 PM
    Edited by: le on Jan 12, 2011 1:14 PM
    Edited by: le on Jan 12, 2011 1:17 PM

  • Exporting Table with CLOB Columns

    Hello All,
    I am trying to export table with clob columns with no luck. It errors saying EXP-00011TABLE do not exist.
    I can query the table and the owner is same as what i am exporting it from.
    Please let me know.

    An 8.0.6 client definitely changes things. Other posters have already posted links to information on what versions of exp and imp can be used to move data between versions.
    I will just add that if you were using a client to do the export then if the client version is less than the target database version you can upgrade the client or better yet if possilbe use the target database export utility to perform the export.
    I will not criticize the existance of an 8.0.6 system as we had a parent company dump a brand new 8.0.3 application on us less than two years ago. We have since been allowed to update the database and pro*c modules to 9.2.0.6.
    If the target database is really 8.0.3 then I suggest you consider using dbms_metadata to generate the DDL, if needed, and SQLPlus to extact the data into delimited files that you can then reload via sqlldr. This would allow you to move the data with some potential adjustments for any 10g only features in the code.
    HTH -- Mark D Powell --

  • How to Show Clob File in Report 6I ?

    Hi i want to know how to show clob file in report 6i
    Regards
    Shahzaib ismail

    In this situation I do not use headers at all. Insted of that I use union in a query :
    select 'Firstname','Salary'
    from dual
    union all
    select firstname, to_char(salary)
    from employee;
    The first record will work as header
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Suneel Vishwakarma ([email protected]):
    Hello,
    I want to generate excel format of my report. I did it using Delimited option but it was not same as it appears in my browser if I choose html format.all the labels repeat with each instance of the row .
    Can you please give me the proper Solution.How should I proceed?
    Thanks & Regds.
    Suneel<HR></BLOCKQUOTE>
    null

  • Wpg_docload fails with "large" files

    Hi people,
    I have an application that allows the user to query and download files stored in an external application server that exposes its functionality via webservices. There's a lot of overhead involved:
    1. The user queries the file from the application and gets a link that allows her to download the file. She clicks on it.
    2. Oracle submits a request to the webservice and gets a XML response back. One of the elements of the XML response is an embedded XML document itself, and one of its elements is the file, encoded in base64.
    3. The embedded XML document is extracted from the response, and the contents of the file are stored into a CLOB.
    4. The CLOB is converted into a BLOB.
    5. The BLOB is pushed to the client.
    Problem is, it only works with "small" files, less than 50 KB. With "large" files (more than 50 KB), the user clicks on the download link and about one second later, gets a
    The requested URL /apex/SCHEMA.GET_FILE was not found on this serverWhen I run the webservice outside Oracle, it works fine. I suppose it has to do with PGA/SGA tuning.
    It looks a lot like the problem described at this Ask Tom question.
    Here's my slightly modified code (XMLRPC_API is based on Jason Straub's excellent [Flexible Web Service API|http://jastraub.blogspot.com/2008/06/flexible-web-service-api.html]):
    CREATE OR REPLACE PROCEDURE get_file ( p_file_id IN NUMBER )
    IS
        l_url                  VARCHAR2( 255 );
        l_envelope             CLOB;
        l_xml                  XMLTYPE;
        l_xml_cooked           XMLTYPE;
        l_val                  CLOB;
        l_length               NUMBER;
        l_filename             VARCHAR2( 2000 );
        l_filename_with_path   VARCHAR2( 2000 );
        l_file_blob            BLOB;
    BEGIN
        SELECT FILENAME, FILENAME_WITH_PATH
          INTO l_filename, l_filename_with_path
          FROM MY_FILES
         WHERE FILE_ID = p_file_id;
        l_envelope := q'!<?xml version="1.0"?>!';
        l_envelope := l_envelope || '<methodCall>';
        l_envelope := l_envelope || '<methodName>getfile</methodName>';
        l_envelope := l_envelope || '<params>';
        l_envelope := l_envelope || '<param>';
        l_envelope := l_envelope || '<value><string>' || l_filename_with_path || '</string></value>';
        l_envelope := l_envelope || '</param>';
        l_envelope := l_envelope || '</params>';
        l_envelope := l_envelope || '</methodCall>';
        l_url := 'http://127.0.0.1/ws/xmlrpc_server.php';
        -- Download XML response from webservice. The file content is in an embedded XML document encoded in base64
        l_xml := XMLRPC_API.make_request( p_url      => l_url,
                                          p_envelope => l_envelope );
        -- Extract the embedded XML document from the XML response into a CLOB
        l_val := DBMS_XMLGEN.convert( l_xml.extract('/methodResponse/params/param/value/string/text()').getclobval(), 1 );
        -- Make a XML document out of the extracted CLOB
        l_xml := xmltype.createxml( l_val );
        -- Get the actual content of the file from the XML
        l_val := DBMS_XMLGEN.convert( l_xml.extract('/downloadResult/contents/text()').getclobval(), 1 );
        -- Convert from CLOB to BLOB
        l_file_blob := XMLRPC_API.clobbase642blob( l_val );
        -- Figure out how big the file is
        l_length    := DBMS_LOB.getlength( l_file_blob );
        -- Push the file to the client
        owa_util.mime_header( 'application/octet', FALSE );
        htp.p( 'Content-length: ' || l_length );
        htp.p( 'Content-Disposition: attachment;filename="' || l_filename || '"' );
        owa_util.http_header_close;
        wpg_docload.download_file( l_file_blob );
    END get_file;
    /I'm running XE, PGA is 200 MB, SGA is 800 MB. Any ideas?
    Regards,
    Georger

    Script: http://www.indesignsecrets.com/downloads/MultiPageImporter2.5JJB.jsx.zip
    It works great for files upto ~400 pages, when have more pages than that, is when I get the crash at around page 332 .
    Thanks

  • I just order 8 calendars from iPhoto and they came to me fine. Now I need to order two more but when I go thru the process I get a message  saying:unable to assemble calendar. There is a probleme with the photo with the file name"(Null)"   more........ .

    Would someone be able to explain to me the following issue with Iphoto?
    I ordered 8 same calendars for my soccer team and received them fine. Although a couple of pictures on it are a little off (out of focus). I need to order two more of the same calendars but when I go thru the process ireceive an error message saying:
    "Unable to to assemble  calendar" There is a problem with the photo with the file name "(Null)" The full resolution version of this photo either cannot be located or is corrupt. Please replace this photo or delete it from your calendar.
    How can  I fine this "corrupt" photo? How did it go thru with the first batch of calendars but won't go thru now?
    Thank you for your help.   

    Apply the two fixes below in order as needed:
    Fix #1
    Launch iPhoto with the Command+Option keys held down and rebuild the library.
    Since only one option can be run at a time start
    with Option #4 and then #1 as needed.
    Fix #2
    Using iPhoto Library Manager  to Rebuild Your iPhoto Library
    1 - download iPhoto Library Manager and launch.
    2 - click on the Add Library button, navigate to your Home/Pictures folder and select your iPhoto Library folder.
    3 - Now that the library is listed in the left hand pane of iPLM, click on your library and go to the File ➙ Rebuild Library menu option.
    4 - In the next  window name the new library and select the location you want it to be placed.
    5 - Click on the Create button.
    Note: This creates a new library based on the LIbraryData.xml file in the library and will recover Events, Albums, keywords, titles and comments.  However, books, calendars, cards and slideshows will be lost. The original library will be left untouched for further attempts at fixing the problem or in case the rebuilt library is not satisfactory.
    OT

  • Can some help with CR2 files ,Ican`t see CR2 files in adobe bridge

    can some help with CR2 files ,I can`t see CR2 files in adobe bridge when I open Adobe Photoshop cs5- help- about plugins- no camera raw plugins. When i go Edit- preference and click on camera raw  shows message that Adobe camera raw plugin cannot be found

    That's strage. Seems that the Camera Raw.8bi file has been moved to different location or has gone corrupt. By any chance did you try to move the camera raw plugin to a custom location?
    Go To "C:\Program Files (x86)\Common Files\Adobe\Plug-Ins\CS5\File Formats" and look for Camera Raw.8bi file.
    If you have that file there, try to download the updated camera raw plugin from the below location.
    http://www.adobe.com/support/downloads/thankyou.jsp?ftpID=5371&fileID=5001
    In case  you ae not able to locate the Camera Raw.8bi file on the above location, then i think you need to re-install PS CS5.
    [Moving the discussion to Photoshop General Discussions Forum]

  • Working with .phtml files in dreamweaver... a how to

    hope this helps those diving into magento, zend, and other goodies, but want the comfort of dreamweaver.  would be nice if it came this way, but it's an easy add for dreamweaver.
    By default, Dreamweaver cannot read PHTML files. You can add the file type to the “Open in Code View” section of the preferences if you wish to have fast access, however you cannot view the file in design view if you do that. So if you use Dreamweaver (versions 4, MX, MX2004, 8, or 9, aka CS3,CS4) to design your sites, and you wish to open Magento’s Template files (they have .phtml extensions) in Dreamweaver, you can follow these steps to add support for .phtml and make Dreamweaver render PHP code (with coloring, hinting, et al) as well as allow you to see the design in code view if desired. Below are three steps to follow.*
    IMPORTANT NOTES: This guide is for Dreamweaver on Windows (XP or Vista) or Mac OS X. Note: I have excluded version numbers from the file locations shown, and if you are using a version older than Dreamweaver 9 (CS3) replace “Adobe” with “Macromedia” in the file locations shown. Some spaces have also been removed to keep the references on one line.
    * Dreamweaver 4 users: if you are using the archaic Dreamweaver 4, you only need to follow step one. However, it’s highly recommended that you just upgrade to version 8, CS3 or newer for superb CSS and Web Standards support.
    * Vista may need to edit files by running notepad as Administrator, however this requirement is not common and if encountered, may be avoidable by following these steps after a fresh restart. However, if unavoidable, simply go to Start > All Programs > Accessories, and then right click on Notepad and select “Run as Administrator”. Once notepad is open, use File > Open to browse to the applicable file before making the necessary changes.
    Open the following extension configuration file in a notepad and change the lines as specified below:
    XP: Documents and Settings > [user] > Application Data > Adobe Dreamweaver > Configuration > extensions.txt
    NOTE: If you cannot see the Application Data Folder, go to Tools → Folder Options → View and make sure that Show Hidden Files and Folders is checked.
    Vista: Users > [user] > AppData > Roaming > Adobe > Dreamweaver 9 > Configuration > Extensions.txt
    Mac OS X: Users > [Home Folder] >Library > Application Support > Adobe > Dreamweaver [Your Version] > [en_US or other locale (only for version CS4)] > Configuration > Extensions.txt
    HTM,HTML,SHTM,SHTML, ... ,TXT,PHP,PHP3,PHP4,PHP5,PHTML,JSP,WML,TPL, ... ,MASTER:All Documents
    PHP,PHP3,PHP4,PHP5,TPL,PHTML:PHP Files
    This file is pretty much exactly like the extensions.txt file located in Dreamweaver’s Application Data folder, except it is in Dreamweaver’s Program Files folder, inside a configuration folder. Just as in Step One, find the file and change the lines as specified below.
    XP, Vista: Program Files > Adobe > Dreamweaver [Your Version] > configuration > Extensions.txt
    Mac OS X: Applications > Adobe Dreamweaver [Your Version] > configuration > Extensions.txt
    HTM,HTML,SHTM,SHTML, ... ,TXT,PHP,PHP3,PHP4,PHP5,PHTML,JSP,WML,TPL, ... ,MASTER:All Documents
    PHP,PHP3,PHP4,PHP5,TPL,PHTML:PHP Files
    This will apply your php code coloring settings to your phtml files This file is an XML file which should be located in:
    XP, Vista: Program Files > Adobe > Dreamweaver [Your Version] > configuration > DocumentTypes > MMDocumentTypes.xml
    Mac OS X: Applications > Adobe Dreamweaver [Your Version] > configuration > DocumentTypes > MMDocumentTypes.XML
    Note: Dreamweaver 8 users on Windows may also need to apply these changes to: C:Program Files > Macromedia > Dreamweaver 8 > Configuration > Document Types > MMDocumentTypes.xml
    Note: In Windows 7/Vista you may need to update the file permissions under Properties>Security tab in order to save your changes to the file.
    <documenttype id="PHP_MySQL" servermodel="PHP MySQL"
    internaltype="Dynamic" winfileextension="php,php3,php4,php5,phtml"
    macfileextension="php,php3,php4,php5,phtml" file="Default.php"
    writebyteordermark="false">;
    </documenttype>
    Restart or Open Dreamweaver and you shouldn’t have any problems with PHTML files any longer.

    I have seen a good solution at http://webdesignsolutions.co.in/add-phtml-extension-in-dreamweaver , this is very simple.

  • Problems with .ARW files and auto toning

    problems with .ARW files and auto toning
    let me try to explain this because this has happened in past and never found a way to resolve but i lived with it
    now that I have a Sony A7R the problem is more serious
    Firstly i take pride it making the picture happen all in camera, i use DRO lvl 5 to get enough light, like when i'm shooting at dusk. DRO its like doing HDR but in a single file, it lightens the darks. in my camera i'm happy with results
    but when I upload them to lightroom, they come out near black.
    allow me to explain
    lets say I import 100 images
    i double check my preferences and everything is UNCHECKED when it comes to importing options, there is no auto toning, nothing.
    as the images import i see a preview in the thumbnail which looks fine.
    i double click on one to enlarge it, hence leave grid view.
    for a brief 1 or 2 seconds, i see the full image in all its glory but than lightroom does something funny, it darkens the image
    one by one as it inspects each image, if it was a DRO image it makes it too dark.
    to make this clear, the image is perfect as it was in the beginning but after a few seconds lightroom for some reason thinks it needs to correct it.
    how to prevent lightroom from doing this, i want the image exactly as it is, why must lightroom apply a correction>?
    i think it has to do something with interpreting the raw file and lightroom applies its own algorithm.
    but here is what i dont get.....before lightroom makes the change i'm able to witness the picture exactly as it was taken and want it unchanged..
    now i have to tweak each file or find a profile for it which is added work.
    any ideas how to prevent lightroom from ruining my images and just leave them as they were when first detected...
    there are 2 phases...one is when it originally imports and they look fine
    second is scanning each image and applying some kind of toning which darkens it too much.
    thanks for the help

    sorry thats the auto reply message from yahoo email.
    i've disabled it now
    thing is, there is no DRO jpg to download from the camera
    its only ARW. so my understanding is when i use DRO setting, the camera makes changes to the ARW than lightroom somehow reads this from the ARW.
    but then sadly reverts it to no DRO settings.
    because i notice if i take normal picture in raw mode its dark but if i apply dro to it, it comes out brighter, yet when i d/l the image from camera to lightroom, which is an ARW - there are no jpgs. lightroom decides to mess it up
    so in reality there is no point in using DRO because when i upload it lightroom removes it.
    is there a way to tell lightroom to preserve the jpg preview as it first sees it.
    its just lame, picture appears perfect...than lightroom does something, than bam, its ruined,.
    what do i need to do to prevent lightroom from ruining the image? if it was good in the first place.

  • Problems with compressing  files with right hand click. it does not work.

    Problems with compressing files with right hand click.
    I am using the compress function in the Mac OS (File > Compress XX) from time to time. Today it does not work anymore. OS 10.5.6
    I get a message: The content list cannot be created for compressing.
    I tried it with files and folders and keep getting this message. Anybody any idea as to how to fix this

    Thanks I love my macbook!!!!
    I also got further problems such as copy-paste not working etc.
    so I fixed it just this morning by running Applejack 1.5 and am back up running noticing your post.
    thanks for helping though!

Maybe you are looking for