How to display dynamically generated SVG image

Hello, I need some help on this issue...
I need my page to display programmatically generated SVG image. but if i directly pass SVG string to the page like <h:outputText value="#{MyBean.SVGresult}"/> it will pop up a download dialog box. what should i do to properly include my svg into the page by using embed tag??

The h:graphicImage does not appear to handle svg; maybe it should be extended. I'm still looking for the best way to do it. I don't know if I have the right solution but here is what I have done so far. This will throw up a x, y polyline graph.
Put a panelGrid as place holder in the jsp
      <h:panelGrid  title="Report" style="color=black" border="0" id="dataReports" columns="1" binding="#{dataAnalysis.dataReport}">
      </h:panelGrid>Then take a 'template' svg and fill it in with the dynamic additions and changes in the backing bean. In a submit action
                generateSVGGraph(twothetaArray, intensityArray);
                UIColumn c=new UIColumn();
                HtmlOutputText op=new HtmlOutputText();
                op.getAttributes().put("style","color=black");
                op.setTitle("header text");
                op.setValue("header text");
                c.setHeader(op);
                //c.getFacets().put()
                //c.getChildren().add("<embed src=\"../phase.svg\" align=\"left\" width=\"500\" height=\"500\" type=\"image/svg+xml\"/>");
                //javax.faces.webapp.UIComponentBodyTag embed=new javax.faces.webapp.UIComponentBodyTag();
                //javax.servlet.jsp.tagext.TagAdapter;
                com.hypernex.jsf.ext.html.HtmlEmbedGraphic embedGraphic=new com.hypernex.jsf.ext.html.HtmlEmbedGraphic();
                //embedGraphic.
                embedGraphic.getAttributes().put("src","../session/phase"+phaseGraphCount+".svg");
                embedGraphic.getAttributes().put("align","left");
                embedGraphic.getAttributes().put("width","600");
                embedGraphic.getAttributes().put("height","500");
                embedGraphic.getAttributes().put("type","image/svg+xml");
                c.getChildren().add(embedGraphic);
                 dataReport.getChildren().add(c);
               c=new UIColumn();
                op=new HtmlOutputText();
                op.getAttributes().put("style","color=black");
                op.setTitle("header text");
                op.setValue("header text");
                c.setHeader(op);
                HtmlOutputText out=new HtmlOutputText();
                out.getAttributes().put("style","color=black");
                //out.setTitle("Figure 1.  Powder intensity as dependent on 2&theta;.");
                out.setValue("Figure "+phaseGraphCount+".  Powder intensity as dependent on 2Theta.");
                c.getChildren().add(out);
                dataReport.getChildren().add(c);
...generateSVGGraph
    protected void generateSVGGraph(double[] x, double[] y)
        //FacesContext context = FacesContext.getCurrentInstance();
        //context.
        //Create an svg graph of the equation.
        org.apache.batik.dom.svg.SAXSVGDocumentFactory svgFactory=new org.apache.batik.dom.svg.SAXSVGDocumentFactory("org.apache.xerces.parsers.SAXParser");
           org.apache.batik.dom.svg.SVGDOMImplementation svgDOMImplementation=new org.apache.batik.dom.svg.SVGDOMImplementation();
        org.w3c.dom.DocumentType dt=null;//svgDOMImplementation.createDocumentType("svg","-//W3C//DTD SVG 1.1//EN",f.toURI().toString());
        //System.out.println(dt);
     org.w3c.dom.svg.SVGDocument svgOMDocument=null;
        try
            System.out.println("dir "+(new java.io.File(".")).toURI().toString());
            svgOMDocument=(org.w3c.dom.svg.SVGDocument)svgFactory.createDocument((new java.io.File("../webapps/jsf-wita/siteadmin/templates/graph-template.svg")).toURI().toString(), new java.io.FileInputStream(new java.io.File("../webapps/jsf-wita/siteadmin/templates/graph-template.svg")));//new org.apache.batik.dom.svg.SVGOMDocument(dt, (org.w3c.dom.DOMImplementation)svgDOMImplementation);
            org.w3c.dom.svg.SVGSVGElement root=svgOMDocument.getRootElement();
                    org.apache.batik.dom.svg.SVGOMGElement primary_g=new org.apache.batik.dom.svg.SVGOMGElement("", (org.apache.batik.dom.AbstractDocument)svgOMDocument);
                    primary_g.setAttribute("style","stroke:black; fill:none; stroke-width:1");
                    root.appendChild(primary_g);
                    //double[] x=new double[4*90];
                    //double[] y=new double[x.length];
                    //x[0]=(double)(1)/4.0;
                        //methodArgs[0]=new Double(Math.toRadians(x[0]));
                    //y[0]=((Double)method.invoke(mathmlObject, methodArgs)).doubleValue();
                    double xMin=x[0];
                    double yMin=y[0];
                    double xMax=x[x.length-1];
                    double yMax=xMax;
                    double xOfyMax=yMin;
                    StringBuffer points=new StringBuffer();
                    for(int index=0;index<x.length-1;index++)
                        //System.out.println(x[index]+" "+y[index]);
                        //x[index]=(double)(index+1)/4.0;
                        //methodArgs[0]=new Double(Math.toRadians(x[index]));
                        //y[index]=((Double)method.invoke(mathmlObject, methodArgs)).doubleValue();
                        double cx=x[index];
                        double cy=y[index];
                        //if(xMin>cx)xMin=cx;
                        if(yMin>cy)yMin=cy;
                        //if(xMax<cx)xMax=cx;
                        if(yMax<cy)
                         xOfyMax=cx;
                         yMax=cy;
                    org.w3c.dom.svg.SVGTextElement xLabel=(org.w3c.dom.svg.SVGTextElement)svgOMDocument.getElementById("xLabel");
                    xLabel.getFirstChild().setNodeValue("2?");//?");
                    org.w3c.dom.svg.SVGTextElement xMinimumLabel=(org.w3c.dom.svg.SVGTextElement)svgOMDocument.getElementById("xMinimumLabel");
                    xMinimumLabel.getFirstChild().setNodeValue(ddf.format(xMin,4).toString());
                    org.w3c.dom.svg.SVGTextElement xMaximumLabel=(org.w3c.dom.svg.SVGTextElement)svgOMDocument.getElementById("xMaximumLabel");
                    xMaximumLabel.getFirstChild().setNodeValue(ddf.format(xMax,4).toString());
                    org.w3c.dom.svg.SVGTextElement yMinimumLabel=(org.w3c.dom.svg.SVGTextElement)svgOMDocument.getElementById("yMinimumLabel");
                    yMinimumLabel.getFirstChild().setNodeValue(ddf.format(yMin,4).toString());
                    org.w3c.dom.svg.SVGTextElement yMaximumLabel=(org.w3c.dom.svg.SVGTextElement)svgOMDocument.getElementById("yMaximumLabel");
                    yMaximumLabel.getFirstChild().setNodeValue(ddf.format(yMax,4).toString());
                    for(int index=0;index<x.length-1;index++)
                        points.append((x[index]-xMin)*500/(xMax-xMin));
                        points.append(",");
                        points.append((y[index]-yMin)*500/(yMax-yMin));
                        points.append(" ");
                    //System.out.println(points);
                    org.apache.batik.dom.svg.SVGOMGElement g=new org.apache.batik.dom.svg.SVGOMGElement("", (org.apache.batik.dom.AbstractDocument)svgOMDocument);
                    g.setAttribute("id",(String)"data");
                    g.setAttribute("transform", "translate(100, 550)");
                    g.setAttribute("style","stroke:black; fill:none; stroke-width:1");
                    org.apache.batik.dom.svg.SVGOMPolylineElement polyLine=new org.apache.batik.dom.svg.SVGOMPolylineElement("", (org.apache.batik.dom.AbstractDocument)svgOMDocument);
                    polyLine.setAttribute("fill", "none");
                    polyLine.setAttribute("stroke", "blue");
                    polyLine.setAttribute("transform", "scale(1, -1)");
                    polyLine.setAttribute("stroke-width", "1");
                    polyLine.setAttribute("points", points.toString());
                    g.appendChild(polyLine);
                    primary_g.appendChild(g);
                   javax.xml.transform.TransformerFactory tFactory = javax.xml.transform.TransformerFactory.newInstance();
                   javax.xml.transform.Transformer intermediateTransformer=tFactory.newTransformer(new javax.xml.transform.stream.StreamSource("../webapps/jsf-wita/stylesheets/identity.xsl"));
                                intermediateTransformer.setOutputProperty(OutputKeys.ENCODING, "iso-8859-1");
                                intermediateTransformer.setOutputProperty(OutputKeys.INDENT, "yes");
                     intermediateTransformer.transform(new javax.xml.transform.dom.DOMSource(svgOMDocument), new javax.xml.transform.stream.StreamResult(new java.io.FileOutputStream("../webapps/jsf-wita/session/phase"+phaseGraphCount+".svg")));
        catch(javax.xml.transform.TransformerConfigurationException tce)
            System.out.println("tce err: "+tce.getMessage());
        catch(javax.xml.transform.TransformerException te)
            System.out.println("te err: "+te.getMessage());
        catch(java.io.FileNotFoundException fnfe)
            System.out.println("fnfe:"+fnfe.getMessage());
        catch(java.io.IOException ioe)
            System.out.println("io:"+ioe.getMessage());
    HtmlEmbedGraphic.java
* HtmlEmbedGraphic.java
* Created on May 16, 2004, 8:12 AM
package com.hypernex.jsf.ext.html;
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.context.ResponseWriter;
* @author  hyperdev
public class HtmlEmbedGraphic extends javax.faces.component.UIComponentBase
    /** Creates a new instance of HtmlEmbedGraphic */
    public HtmlEmbedGraphic()
        super();
    public String getFamily()
        return "javax.faces.Data";
    public boolean isRendered()
        return true;
public void encodeBegin(FacesContext context,
  UIComponent component) throws java.io.IOException {
  if ((context == null) || (component == null)){
      System.out.println("encodeBegin NullPointerException "+context);
    throw new NullPointerException();
      System.out.println("encodeBegin "+context+" "+component);
  //MapComponent map=(MapComponent) component;
  ResponseWriter writer = context.getResponseWriter();
  writer.startElement("embed", this);
  writer.writeAttribute("src", getAttributes().get("src"),"id");
public void encodeEnd(FacesContext context) throws java.io.IOException {
  if ((context == null)){
    throw new NullPointerException();
  //MapComponent map = (MapComponent) component;
  ResponseWriter writer = context.getResponseWriter();
  writer.startElement("embed", this);
  writer.writeAttribute("src", getAttributes().get("src"),"id");
  writer.writeAttribute("align", getAttributes().get("align"),"id");
  writer.writeAttribute("width", getAttributes().get("width"),"id");
  writer.writeAttribute("height", getAttributes().get("height"),"id");
  writer.writeAttribute("type", getAttributes().get("type"),"id");
  writer.endElement("embed");
}graph-template.svg - More static parts of the graphic can be put in here.
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" contentScriptType="text/ecmascript" width="100%" zoomAndPan="magnify" contentStyleType="text/css" viewBox="0 0 600% 600%" height="100%" preserveAspectRatio="xMidYMid meet" version="1.0">
<g style="stroke:black; fill:none; stroke-width:1">
<g id="visuals" style="stroke:black; fill:none; stroke-width:1" transform="translate(100, 550)">
<rect id="box" transform="scale(1, -1)" x="1" y="1" width="500" height="500" fill="none" stroke="black" stroke-width="1.5"/>
<g id="labels" transform="scale(1, 1)">
<text id="xLabel" x="250" y="50" text-anchor="middle"
        font-family="Verdana" font-size="24" fill="blue" >x label</text>
<text id="xMinimumLabel" x="0" y="20" text-anchor="middle"
        font-family="Verdana" font-size="18" fill="blue" >0.0</text>
<text id="xMaximumLabel" x="500" y="20" text-anchor="middle"
        font-family="Verdana" font-size="18" fill="blue" >100.0</text>
<text id="yMinimumLabel" x="-3" y="-3" text-anchor="end"
        font-family="Verdana" font-size="18" fill="blue" >0.0</text>
<text id="yMaximumLabel" x="-3" y="-500" text-anchor="end"
        font-family="Verdana" font-size="18" fill="blue" >100.0</text>
</g>
</g>
<g id="data" style="stroke:black; fill:none; stroke-width:1" transform="translate(10, 550)">
</g>
</g>
</svg>

Similar Messages

  • How to display or generate PDF417 barcode dynamically in PDF form? I am using Acrobat XI Professional and there is a Bar Code Field in the same through which I generated the same. But I want to generate the same dynamically.

    How to display or generate PDF417 barcode dynamically in PDF form? I am using Acrobat XI Professional and there is a Bar Code Field in the same through which I generated the same. But I want to generate the same dynamically.

    What do you mean by dynamically? When yo set up a 2D bar code field you specify which field name/value pairs you want to include, along with other parameters. But be aware that they won't work with Reader unless you Reader-enable the document with LiveCycle Reader Extensions and include the bar code usage right. It will work with Acrobat Standard/Pro.

  • How to display dynamic signature in Smartforms?

    Hi,
    Someone could help me in displaying dynamic signatures in SmartForms?. The signature is an attached file to the document. I already have the binary file but I don't know how to display this as an image in the Smartforms.
    Thanks in advance,
    Oliver
    Message was edited by: Oliver Vera
    Message was edited by: Oliver Vera

    Please give me the reply.
    I have an image content in one internal table.I want to display that image in the smartforms.
    plaese please.

  • Displaying dynamically generated HTML

    Hi!
    Is it possible to display dynamically generated HTML-page by means of ITS?
    I want to write report in ABAP and generate HTML-page with report data, then display it on client side.
    Is it possible?
    Thanks!

    Hello,
    As long as it has a transaction code then probably yes.  Just use the webgui service.
    Edgar

  • How to display dynamic column added by vo.addDynamicAttribute in jspx?

    Hi,
    I met problem when programmatically add cloumn and display it on screen. Here are my steps:
    0. define a ViewObject using xml. Define a transient column Addtion2. later will add a dynamic column Addtion3, but not defined here.
    1. Implement Application Module, adding a method init() and expose it to client.
    2. In init() method, get target VO and use vo.addDynamicAttribute("Addition3"). Then iterate it use row.setAttribute("Addition3", Math.random()). Add init() to page binding and invoke it.( it's invoked )
    3. In jspx, use dynamic table. But Addition3 never shows up.
    This is my last question: Re: How to display dynamic column added by vo.addDynamicAttribute in jspx? People say I should use dynamic table.
    please have a look at my code:
    Application Module: when it runs, it will print 6 coulmns. vo.getAttributeCount() is <font color="red">6</font>.
    <pre>
    public void init() {
    ViewObject vo = this.getCountryView1();
    if (vo.getAttributeIndexOf("Addition3") == -1) {
    vo.addDynamicAttribute("Addition3");
    vo.executeQuery();
    for (AttributeDef deft : vo.getAttributeDefs()) {
    System.out.println(deft.getColumnName() + ": " + deft.getName());
    RowSetIterator it = vo.createRowSetIterator("i1");
    while (it.hasNext()) {
    Row r = it.next();
    r.setAttribute("Addition2", Math.random());
    r.setAttribute("Addition3", Math.random());
    it.closeRowSetIterator();
    for (AttributeDef deft : vo.getAttributeDefs()) {
    System.out.println(deft.getColumnName() + ": " + deft.getName());
    System.out.println(vo.getAttributeCount()); //vo.getAttributeCount() is 6
    </pre>
    jspx: when it runs, only 5 columns are shown. Column Addition2's values are set as expected. but Column Addition3 never shows up. And #{bindings.CountryView1.attributeCount} shows <font color="red">5</font>.
    <pre>
    <af:table rows="#{bindings.CountryView1.rangeSize}"
    fetchSize="#{bindings.CountryView1.rangeSize}"
    emptyText="#{bindings.CountryView1.viewable ? 'No data to display.' : 'Access Denied.'}"
    var="row" rowBandingInterval="0"
    value="#{bindings.CountryView1.collectionModel}"
    selectedRowKeys="#{bindings.CountryView1.collectionModel.selectedRow}"
    selectionListener="#{bindings.CountryView1.collectionModel.makeCurrent}"
    rowSelection="single" id="t1">
    <af:forEach items="#{bindings.CountryView1.attributeDefs}" var="def">
    <af:column headerText="#{def.name}"
    sortable="true" sortProperty="#{def.name}" id="c1">
    <af:outputText value="#{row[def.name]}" id="ot1"/>
    </af:column>
    </af:forEach>
    </af:table>
    <af:forEach items="#{bindings.CountryView1.attributeDefs}" var="def">
    <af:outputText value="#{def.name}" id="ot2"/>
    </af:forEach>
    <af:outputText value="#{bindings.CountryView1.attributeCount}" id="ot3"/>
    </pre>
    it's quite weird for me. The vo.getAttributeCount() is 6, but #{bindings.CountryView1.attributeCount} shows 5. And column Addtion3 never shows up.
    what's the matter? How can I show the dynamic added column Addtion3?
    Edited by: simon li on 2012-9-10 下午7:31
    Edited by: simon li on 2012-9-10 下午8:00

    Hi,
    Can you check the tree binding (CountryView1 - in the pagedef) and see it has the 5 attributes hardcoded in it. If yes, try removing everything and then run the page to see if it works fine.
    -Arun

  • How do i dynamically generate checkboxes in BSP?

    How do i dynamically generate checkboxes in BSP? Each checkbox should have a different name and the checkbox values should be captured at the event oninput processing.

    HI Asha,
    Post here for BSP related queries.
    Business Server Pages (BSP)
    Regards,
    Ravi

  • How to display html content with image in Adobe Flash and Flex mobile project?

    Hi,
      I have a html content with image in it. How to display it in Adobe Flash Builder and Flex mobile project? Which control needs to be used for this?

    Hello,
    The only current way is to use an iFrame, or if you only need some html tags you could use the Text Layout Framework.
    Here this is the iFrame approach:
    http://code.google.com/p/flex-iframe/
    If the swc do not work in Flex4 just use its ource code which works...
    ...it is basically based on this:
    http://www.deitte.com/archives/2008/07/dont_use_iframe.htm
    see also and vote, please:
    http://bugs.adobe.com/jira/browse/SDK-12291
    http://bugs.adobe.com/jira/browse/SDK-13740
    Regards
    Marc

  • How to pass dynamically generated string value as array name in TestStand?

    Hi All,
              I have a string variable which holds an array name as its value. The string value is a dynamically generated one. Now my problem is how to retrieve the values within the array where as the array name is stored in a string variable.
    for eg:
    fileglobals.InfoName = "Array_Name" --> fileglobals.InfoName is a string variable, Array_Name is the array name generated dynamically and it is known only at run-time.
    Array_Name[0] = "a";
    Array_Name[1] = "b";
    Array_Name[2] = "c";
    In the above case, I have to retrieve the values of a, b and c
    Any help is greatly appreciated
    Thanks
    Arun Prasath E G

    Hi,
    Looking at your sequencefile.
    You seem to be trying to save into FlieGlobals.InfoName a string with the values of "FileGlobals.Info_0".."FileGlobals.Info_n" where n is the value of Parameter.TestSocket.Index.
    Then you are setting the value into FileGlobals.TempName from "StationGlobals.FileGlobals.Info_0" assuming Parameter.TestSocket.Index is 0.
    Is this correct?
    I realise this is a cutdown sequence file but you must make sure These variable actually exist in either FileGlobals or StationGlobals. Also with FileGlobals each SequenceFile has its own FileGlobals unless you have set the properties of the SequencFile to use a common FileGlobals.
    What was the precise error you was seeing as it will properly telling you what variable of property it can't find.
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • How to display dynamic header title in the report?

    I have a req to display dynamic header title in the report.
    When a id is entered in the prompt text, it will display the user data based on that user_id.
    so similarly....the header title should vary each time when you select different user_id.
    How can we implement this?

    >
    Zack H wrote:
    > Lazaro,
    >
    > It depends on what you want displayed in the heading for each id.
    > Please elaborate.
    >
    > Thanks,
    > Zack H.
    Zack..I have several projects listed under several project id's...
    so when a user selects project id 00164 then it should display something like "Project document for Jon Doe"
    again when the user selects project id as 00192 then it should display something like "project document for Zimmerman"
    Did you get it??

  • How to display dynamic datas and double datas (chart)

    Hi all !
    I would like to display dynamic datas and double datas by using charts.
    However, it doesn't work and I don't understand why.
    Can you help me to fix that ?
    Best regards,
    - John
    Attachments:
    double_dynamics_data.vi ‏54 KB

    Hi John,
    the sine looks like it should look with your VI!
    You convert the DDT to a scalar DBL. That conversion will only use the first sample of the generated sine waveform - usually this is always the same (offset) value when you generate full periods… Or to put it in a mathematical expression: sin(0°)+4 = 4!
    When you want to display waveform you should work with waveforms!
    Actually, I have used Dynamic data type in order to simulate an signal.
    Well, I also simulated a signal in my example VI. I didn't use any ExpressVI to do so…
    In a few weeks, I will receive a sensor. I will use in LabView 'DAQ Assistant' whose the ouput is a Dynamic Data.
    Nobody forces you to use the DAQAssistent ExpressVI. There are nice DAQmx functions available and LabVIEW comes with a lot of ready-to-use example VIs…
    That's why, I used in first place, the 'Simulate signal'. So I think I should keep Dynamic Data Type
    I do think you don't need to use the DDT. I think it's better to understand what is going on in your VI. And I think the DDT will be no help for you…
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • How to display dynamic values in poplist at row level in advanced table

    I want to display dynamic values in poplist at row level based on a row value in advanced table, with lov i can achieve it, is there any way to achieve this in poplist
    Thanks
    Bbau

    Babu,
    You have been long enough in forum and still come out with these one liners. Problem statement is not clear.
    --Shiv                                                                                                                                                                                                                                                               

  • How to display XML generated dynamically, as TREE in cluster environment

    hai guys,
    we are generating a tree.xml file in server side as follows.
    path = getServletConfig().getServletContext().getRealPath("/QBE/jsp/tree.xml");
    BufferedWriter out1 = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(path),"UTF8"));
    out1.write(xmlString + "</tree>");
    out1.close();
    "xmlString" holds the data in xml tag format.
    in order to display the xml file in TREE structure, we are using a function like
    function createTree()
         var tree = new WebFXLoadTree("SMQ/AMQ List", "tree.xml");
         document.write(tree);
    ALL THIS MECHANISM IS WORKING FINE IN DEVELOPMENT ENVIRONMENT ANS AS WELL AS WHEN WE DEPLOY THE RELEASE IN LOCAL MACHINE. BUT IT IS NOT WORKING WHEN THE RELEASE IS DEPLOYED IN CLUSTER ENVIRONMENT.
    Please help me out how to solve this...
    thanks in advance,
    Ranga
    Edited by: Ranganatha on Jun 5, 2008 5:18 AM

    Hey if you want any more information regarding this problem, i can provide.

  • How to display dynamic images using Struts

    I am storing the image name in bean. I want to use the <html:img> tag to display my images. How can i do that using struts.
    Something or sort..
    <html:img src=bean:write name="pageEntry" property="pageImg"/>
    Thank You

    * In your web.xml file, add the struts-html-el.tld definition from the struts\contrib\struts-el\lib directory
    * Add this tag library to your JSP page; something like:
    <%@ taglib uri="WEB-INF/struts-html-el.tld" prefix="html-el" %>* Refer to the following example:
    <html-el:img src="${pageEntry.pagePic}" />* This assumes that pageEntry is a Bean, and pagePic is a bean variable accessed by the getPagePic() method.

  • How to display dynamic images

    Hi,
    I'm an amateur website developer an im trying to create a
    page where by clients can type in their name and a table of images
    show up depending on what their name is. How can i do this using
    Dreamweaver?
    Many Thanks
    Jason.

    No - they have used the least secure type of password entry
    possible -
    The form tag is this -
    <form name="f" onSubmit="submitPW(); return false">
    On submit the form sends its data to the submitPW() function,
    which is also
    defined in plaintext on that same page (in the head) -
    <script language="JavaScript">
    <!--
    function submitPW() {
    password = document.f.pw.value
    if(password != "")
    this.location.href = password + "/index.html"
    // -->
    </script>
    This function just loads a page that is in the folder named
    with the bride's
    surname, so if you entered "Smith", you would get the page at
    this link -
    <a href="Smith/index.html"....
    Could be quite a problem if you had more than one client
    named Smith....
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "koldjg2" <[email protected]> wrote in
    message
    news:g60car$9sm$[email protected]..
    > This is an example of it being implementated:
    >
    http://www.neilwalkerphotography.co.uk/shop/galleries/access.htm.
    Have
    > they done what you suggested?

  • How to display dynamic page content in an external application (MS Word)?

    I have a portal that generates a CV from info stored by various forms. The CV displays fine in a dynamic page, but when I add javascript to launch MS Word with a call to the dynamic page portlet, only the hard coded html displays - nothing between the <ORACLE> tags is loaded.
    I had the idea of updating the dynamic page with hard coded html prior to each export - but I can't find where the dynamic page definition is stored in the database.
    Any ideas/better solutions out there?

    dynamic page:
    <ORACLE>
    DECLARE
    theUser varchar2(30) := portal30.COE_GET_CV_PERSON;
    v_output varchar2(6) := portal30.COE_GET_CV_OUTPUT;
    v_no number;
    v_url varchar2(500):= 'http://oraclecoedb.asiapacific.cgey.com:7779/pls/portal30/PORTAL30.wwv_component_control.run_as_portlet?p_module_id=1934976747';
    BEGIN
    IF v_output = 'WORD' THEN htp.script('startWord('||''''||v_url||''''||');','Javascript');
    ELSE null;
    etc ...
    javascript:
    <script language="JavaScript">
    function startWord(strFile)
    var myApp = new ActiveXObject("Word.Application");
    if (myApp != null)
    myApp.Visible = true;
    myApp.Documents.Open(strFile);
    </script>

Maybe you are looking for