Style Rendering with a DW Template

QUESTION: What must one include with the window.print( )
method in order to invoke a cascading style sheet for printing?
BACKGROUND: I have an <a> that includes an onclick
attribute. When the <a> tag is clicked, a function is called
that triggers the window.print( ) method. This event opens the
print menu for my computer's operating system. I want the style
sheet set for online viewing to be dropped and the style sheet set
for printing to be invoked when this event is triggered.
CAUTION: All of the above must occur within the context of a
template document that will eventually be used to produce the XHTML
document to be viewed and printed.
Roddy

> Why do you feel, however, that JavaScript is an
unreliable method for
> printing
> a web page?
Won't work on some Macs (older OS).
> I would like to include a print option in each of my
HTML pages, so as to
> make
> it easy for people to print. Moreover, by using
JavaScript I am likely to
> have
> better control of what happens when the document is
printed.
No you aren't. Like what control?
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
==================
"kiusau" <[email protected]> wrote in
message
news:gmghqb$lno$[email protected]..
> Thank you for responding. The link was very helpful, as
I now know how to
> set
> up separate CSS documents for online viewing and
printing in the same
> document.
>
> Why do you feel, however, that JavaScript is an
unreliable method for
> printing
> a web page?
>
> I would like to include a print option in each of my
HTML pages, so as to
> make
> it easy for people to print. Moreover, by using
JavaScript I am likely to
> have
> better control of what happens when the document is
printed.
>
> Roddy
>
>
>
>

Similar Messages

  • Style Rendering - PRINT Mode

    QUESTION: How does one suppress relative links with CSS in
    print-style rendering mode?
    BACKGROUND
    The following is a quotation taken from a webpage hosted by
    Communication MX (see source page below).
    quote:
    In the following example, the rule ( a[href^="/"]:after )
    selects a link whose href attribute begins with a slash (making it
    root relative).
    What seems odd, or at least incomplete, about this statement
    is that many document relevant links are preceded not only by a
    forward slash, but also by two dots. By way of illustration
    ../folderName/fileName.html is very different from
    /folderName/fileName.html.
    Does the compiler simply ignore the two dots, or must one add
    an additional rule to cover them, say a[href^="../"]:after?
    As everything contained in quotations is commonly treated as
    a String, it would appear that an additional rule is necessary.
    Have I got it right?
    A truly useful answer might provide a reference that could
    explain the rule construction a[xxx]:yyy. This is completely new to
    me.
    SOURCE
    http://www.communitymx.com/content/article.cfm?page=6&cid=9F31F
    Roddy

    So you say "How does one suppress relative links " Do you not
    want links to
    show in your print doc? Or from what I just read in the
    source doc you want
    to put your link [inside here] ??
    Dave
    "kiusau" <[email protected]> wrote in
    message
    news:go286v$84s$[email protected]..
    >
    quote:
    Back to your question "How does one suppress relative links
    with CSS in
    > print-style rendering mode?
    > Can you expand more on what you want to do? I think now
    that this has
    > continued to this point I'm confused?
    >
    > Did you miss the SOURCE link in my original post? If you
    scroll all the
    way
    > to the bottom, you will find the following remark:
    >
    quote:
    In the following example, the rule ( a[href^="/"]:after )
    selects a
    link
    > whose href attribute begins with a slash (making it root
    relative). When
    it
    > finds such a link, it overrides the previous selector
    that displayed the
    URL by
    > using the property/value pair content:"". The empty
    value in the quotation
    > marks causes nothing to render after the URL at all.
    Thus, root-relative
    links
    > within your own site won't generate content.
    > Hopefully this clarifies things for you.
    >
    > Roddy
    >
    >
    CODE OF CONDUCT: My entries in this forum are provided free
    of
    any and
    > all commercial gain related to webpage production. I
    will neither lure,
    > conceal, nor defame in an effort to obtain commercial
    gain from those whom
    I
    > assist. Moreover, my motivation for participation in
    this forum is to
    exchange
    > knowledge and experience in an open environment free of
    false pretension
    with
    > regard to commercial gain.
    >
    >
    WARNING: Let forum participants, especially junior members,
    beware of
    > other forum participants that do not abide by this same
    principle of good
    > conduct.
    >
    >
    >

  • Unable to refer to custom resource bundle in WPC content rendered with xslt

    Hi,
    I need to use the resource bundle messages inside WPC content.
    When rendered by standard xsl templates the  call to XSLTHelper class is done to retrieve message from the standard SAP resource bundle com.sap.nw.wpc.bundles.core.properties, like this:
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                         xmlns:wpc="com.sap.nw.wpc.km.service.editor.hslt.XsltHelperCore">
    <xsl:value-of select="wpc:getString([key defined in sap bundle], string(/document/@locale))"/>
    The problem is that helper class doesn't provide any API to use custom bundles.
    I tried to create xslt helper (including config in KM), but that didn't succeed neither. It would return with error NoClassDefFound.
    Could you please help on configuring xslt helper and registering it with xslt rendering engine for Web Page Composer? I could not find any how-to guides on xslt helpers for WPC.
    Thanks in advance.
    Ruslan

    Hi
    Did you find a solution?
    Christof

  • Lost CSS style rendering

    Help!
    I've read the FAQ regarding toggling CSS styles as I've lost/inadvertanly switched off the detail in the design pane leaving me only with the code. This was the advice:
    Sometimes, though, your CSS looks completely wrong or isn't displayed at all. Usually, this happens if you have accidentally turned off the display of styles, or if you have selected an option other than Screen Media Type in the View > Style Rendering submenu or the Style Rendering toolbar. Make sure Display Styles and Screen Media Type are selected (they should have checkmarks against them like this:
    However, I'm running an old version - DreamWeaver MX 2004 v 7.0.1 - and it doesn't have Style Rendering etc. under the View tag. Please tell me what I must do. (Don't say upgrade!)
    Thanks
    Les

    in a couple of pages I cannot see any text or image items in the Design View
    Use the validation tools below and fix reported errors.
    CSS - http://jigsaw.w3.org/css-validator/
    HTML - http://validator.w3.org/
    Nancy O.

  • PA_CONTRACT_XSLFO: How to invoke a RTF-template with related data template

    Dear Reader,
    actually I want to extend the standard Document Type Layout for a Purchase Agreement Contract with additional data from approved supplier list (ASL).
    Therefor I have created a RTF-template and a data template with the needed sql-statement. For testing I put this in a standalone concurrent programm and it works fine (result was a blue table with all data rows).
    Next step for me was to invoke the RTF-template into the PA_CONTRACT_XSLFO template for extending the Document Type Layout for my Purchase Agreement Contract. So I put the neede invoke-statements
    <xsl:import href="xdo://XXOC.XX_RTF_TEMPLATE.de.00/"/>
    and
    <xsl:call-template name="XX_RTF_TEMPLATE"/>
    into the XSLFO-template. Also I extend the RTF-template with the define template statement
    <?template:XX_RTF_TEMPLATE?>
    So all seems to be fine.
    As result I get the standard document for Purchase Agreement Contract with the additional blue table from RTF-template BUT WITHOUT DATA !
    From my point of view there is no execution of the sql-statement in data template. But I dont know why.
    Do Oracle support a combination of XSLFO-template with data template?
    [XSLFO-template] with related [XSD-data definition]
    calls [RTF-template] with related [data template (with included sql-statement)]
    Thanks for your help.
    Best regards
    Mario.

    How to call a rtf template from another rtf template by passing a value try in main template create hyperlink of url with parameters for another template
    http://bipconsulting.blogspot.ru/2010/02/drill-down-to-detail-or-another-report.html
    When user pull a quote report from siebel this new rtf template should attach to the quote at the end.it'll be only another report
    IMHO you can not attach it to main. it'll be second independent report
    you can try subtemplate but it's not about rtf from rtf by click
    it's about call automatically rtf subtemplate from main rtf based on some conditions
    for example, main template contain some data and if some condition is true then call subtemplate and place it instead of its condition

  • Steps in converting a xml file with an rtf template to a pdf

    Hey all,
    What are the steps in converting a xml file with an rtf template to a pdf using XML Publisher from command line.
    Thanks
    Ravi

    I don't have any code to do exactly what you wish, but it shouldn't be too difficult and http://www.dadhi.com/2007/06/generate-and-store-pdf-file-in-same.html is a good starting point.
    Paul

  • We r using os 10.6.8 and 7.0.3 fcp,in that rendering with unlimited option out of memory warning is displayed Final Cut Pro 7, Mac OS X (10.6.8), 10gb RAM.no stills are there.there are hd standard

    we r using os 10.6.8 and 7.0.3 fcp,in that rendering with unlimited option out of memory warning is displayed, 10gb RAM.no stills are there.there are hd standard videos

    What format are your sources and what are your sequence settings?  I'd guess that you're working with h.264 material which is not fcp friendly.  If so, use compressor to conver to prores422

  • How do I make a facebook page with a premade template? [was:help]

    how do I make a facebook page with a premade template i bought on etsy? I have asked this 10 times now In all diffrent section here. I guess I dont even know how to ask a question in photo shop?? I am very glad I am only on the trial. This is soooo NOT user friendly!

    Tip for a forum newbie: please use a descriptive subject header to post your query so we have some idea of what your question relates to.
    "Help" tells us nothing. Try "how do I make a facebook page with a premade template?"
    You've posted this question 3 times in 3 different forums but we've no idea which Adobe software you're using or where your template is from. There is a reply in the Photoshop forum asking for more information.
    http://forums.adobe.com/thread/1447416
    Please continue the discussion there.

  • Using htmlmarkup.xsl with a data template

    Has anyone used a file called htmlmarkup.xsl, http://blogs.oracle.com/xmlpublisher/2007/01/formatting_html_with_templates.html, with a data template?
    If I create my BI Publisher report using a data query in my data model, htmlmarkup.xsl works fine in converting the html text to bold or underline, or whatever I want it to be. But if am using a data template in my data model, the tags don't get converted and I still see the tags.
    Any thoughts would be appreciated!
    Thanks!!
    Kris Henning
    www.piocon.com

    I was hoping you would help me with this!
    Here is the data template:
    <dataTemplate dataSourceRef="oltpdev" name="html" defaultPackage="html">
         <properties>
              <property name="xml_tag_case" value="upper"/>
         </properties>
         <parameters>
         </parameters>
         <lexicals>
         </lexicals>
         <dataQuery>
              <sqlStatement name="Q_1">
    select manager_product_id,notes
    from manager_product_note
    where trunc(note_timestamp,'mm')='01-jun-2008'
                             </sqlStatement></dataQuery>
         <dataStructure>
              <group name="G_notes" dataType="varchar2" source="Q_1">
                   <element name="notes" dataType="clob" value="NOTES"/>
                   <element name="manager_product_id" dataType="number" value="MANAGER_PRODUCT_ID"/>
              </group>
         </dataStructure>
    </dataTemplate>
    I just want to see the NOTES column correctly. Instead I get:
    <p><strong>New Note</strong></p>
    <ol>
    <li>numbered list - normal font</li>
    <li><strong>bold font</strong></li>
    <li><strong><em>bold and italic</em></strong></li>
    <li><u>underlined</u></li>
    <li><em>italic only</em></li>
    <li><strike>strike out</strike></li>
    </ol>
    <ul>
    <li>bulleted list</li>
    <li>next item</li>
    <li><strong><i><u><strike>Bold, Italics, Underlined and Strikeout</strike></u></i></strong></li>
    </ul>
    You can tell this is a test case.
    Thanks for your help!
    Kris Henning
    www.piocon.com

  • Document/literal style wsdl with more than one port

    Recently I have changed wsdl style from rpc/encoded to document/literal as BPEL does not handle soapenc:arrayType. The wsdl contains 2 operations and few complex type definitions.
    In BPEL Designer I have created a process that invokes all operations defined in the wsdl, but only one of them will have some data in the response message and the other one will have an empty message. On the other hand, when I use stub generation to invoke Web Service everything is working fine.
    If I provide separate wsdl for each operation (in BPEL process I would have two partnerLinks instead of one) than it works fine.
    Does this mean that BPEL does not handle document/literal style endpoints with more than one port (operation)?
    I have tested this with the orabpel_2.0_J1_win32.exe and orabpel_2.0rc9_win32.exe. Web Services, used for this test, are deployed in Jboss 3.2.3 and axis-1_2beta3.
    WSDL used as partnerLink:
    <?xml version="1.0" encoding="UTF-8" ?>
    <wsdl:definitions targetNamespace="http://test" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://test" xmlns:intf="http://test" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <wsdl:types>
    <schema elementFormDefault="qualified" targetNamespace="http://test" xmlns="http://www.w3.org/2001/XMLSchema">
    <complexType name="CardId">
    <sequence>
    <element name="cardType" nillable="true" type="xsd:string" />
    <element name="number" nillable="true" type="xsd:string" />
    </sequence>
    </complexType>
    <complexType name="CardIdArray">
    <sequence>
    <element maxOccurs="unbounded" name="item" nillable="true" type="impl:CardId" />
    </sequence>
    </complexType>
    <element name="getCardsReturn" type="impl:CardIdArray" />
    <complexType name="CardholderCards">
    <sequence>
    <element maxOccurs="unbounded" name="cards" nillable="true" type="impl:CardId" />
    <element name="serialNumber" nillable="true" type="xsd:string" />
    </sequence>
    </complexType>
    <element name="retrieveChReturn" type="impl:CardholderCards" />
    </schema>
    </wsdl:types>
    <wsdl:message name="retrieveChRequest" />
    <wsdl:message name="getCardsRequest" />
    <wsdl:message name="retrieveChResponse">
    <wsdl:part element="impl:retrieveChReturn" name="retrieveChReturn" />
    </wsdl:message>
    <wsdl:message name="getCardsResponse">
    <wsdl:part element="impl:getCardsReturn" name="getCardsReturn" />
    </wsdl:message>
    <wsdl:portType name="TestService">
    <wsdl:operation name="getCards">
    <wsdl:input message="impl:getCardsRequest" name="getCardsRequest" />
    <wsdl:output message="impl:getCardsResponse" name="getCardsResponse" />
    </wsdl:operation>
    <wsdl:operation name="retrieveCh">
    <wsdl:input message="impl:retrieveChRequest" name="retrieveChRequest" />
    <wsdl:output message="impl:retrieveChResponse" name="retrieveChResponse" />
    </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="TestServiceSoapBinding" type="impl:TestService">
    <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
    <wsdl:operation name="getCards">
    <wsdlsoap:operation soapAction="" />
    <wsdl:input name="getCardsRequest">
    <wsdlsoap:body use="literal" />
    </wsdl:input>
    <wsdl:output name="getCardsResponse">
    <wsdlsoap:body use="literal" />
    </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="retrieveCh">
    <wsdlsoap:operation soapAction="" />
    <wsdl:input name="retrieveChRequest">
    <wsdlsoap:body use="literal" />
    </wsdl:input>
    <wsdl:output name="retrieveChResponse">
    <wsdlsoap:body use="literal" />
    </wsdl:output>
    </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="TestServiceService">
    <wsdl:port binding="impl:TestServiceSoapBinding" name="TestService">
    <wsdlsoap:address location="http://localhost:8080/axis/services/TestService" />
    </wsdl:port>
    </wsdl:service>
    </wsdl:definitions>

    Hi Dragana,
    We definitely support the ability to call a web service that exposes two operations (document/literal or not).
    Glancing through your WSDL, it looks good.
    Could you please try to tunnel the second request and see 1) what data is sent to the service and 2) what data is returned by the service?
    Can you please email us a reproduceable case so that we can help troubleshoot in parallel?
    Thank you,
    Edwin
    [email protected]
    please rename .zip to .zap

  • Error with universalis responsive template. Prices appear with 163; code before them instead of £ sign. Does anyone know how to fix this problem?

    Error with universalis responsive template. Prices appear with 163; code before them instead of £ sign. Does anyone know how to fix this problem?

    Error with universalis responsive template. Prices appear with 163; code before them instead of £ sign. Does anyone know how to fix this problem?

  • Problems with customising menu template backgrounds

    Hi.
    I am experiencing problems with changing the background of the included disc menu templates in PE9. I can change the background image to anything i like on the computer and all seems to work OK but when i burn the project to disc (PAL_Dolby DVD) the custom background image has gone and been replace with the default template imagine.
    Anyone got any ideas whats going on!
    Thanks

    This issue showed up with PrE 9. I do not recall reading of it with earlier versions.
    I do not know if the PSD files have some corruption, or if some change in PrE 9's code "did the deed," but many have filed a Bug Report, and I ask that you please do, as well. It should be an easy fix for Adobe (but I am not a coder, or software engineer, and could be wrong).
    Good luck to us all,
    Hunt

  • HPDM 4.6 - _Enroll Certificate with SCEP Task Template missing

    I recently upgraded our HP DM to v 4.6 as I was searching for a better way to deploy CA certificates to our t510 thin clients, and this version supports SCEP.
    I also downloaded the Client Kit ThinPro-4.4-SCEP-0.0.3 software (via the Template > Import > HP FTP Software Component Browser) and this is visible in the list of Task Templates.
    The problem I have is that the HP DM User Guide for this version outlines Enrolling Certificates using SCEP by double clicking on the _Enroll Certificate with SCEP task template, which I don't seem to have?
    How do I obtain this particular task template?

    I have already downloaded that add-on. It extracts to a .xar file, which I placed in the HP Smart Client Service\auto-update path. This is the add-on that gets pushed out to the clients at power-on.
    What I need is the _Enroll Certificate with SCEP Task Template for HPDM. I've tried the template import function but I don't seem to have the necessary .jar file?
    Am I missing something? I'm a bit of a noob with the HPDM software...

  • Oversize documents being rendered with parts of the document cut off due to the large size

    We are invoking web services on LiveCycle Server ES 8.2 to convert non pdf documents to pdf. We noticed that oversized documents are rendered with parts of it cut off when submitted for conversion.
    Has anyone seen this before and how we can resolve this?
    Thanks in advance.

    The oversized file issue happens when we try to convert legal size documents. Part of the document is cut off.
    Any documents wider than 8 and 1/2 by 11 has this issues.

  • Some Problems Rendering With Maya

    Hi there! I had submitted a Maya job with my Qmaster and it worked fine with my sime animation sequence and putting up basic materials. Now, I have a quite complex scene and it includes materials and textures. Qmaster renders the animation sequence but it only gives me black and white outputs... the textures were not included!
    What seems to be the problem?

    Hi there! I had submitted a Maya job with my Qmaster
    and it worked fine with my sime animation sequence
    and putting up basic materials. Now, I have a quite
    complex scene and it includes materials and textures.
    Qmaster renders the animation sequence but it only
    gives me black and white outputs... the textures were
    not included!
    What seems to be the problem?
    Hi,
    I haven't used qmaster, but i have extensive experience network rendering with maya, so here goes.
    Most likely, your problem is that you are rendering across multiple machines, but the volume names are different. Your file paths must match exactly. For example, on my pc's, all of them have a y: drive. Whenever I need to network render a project, I will just use the y drive and make an exact copy of the directory on each computer. this is also the same format that the renderfarm I use. Unless you have a SAN, you will need to do something similar to this on the mac.
    If you poke around, you should be able to find a log file that will show you that textures could'nt be found (missing), and in that case, the renderer render's black.
    I am interested in qMaster since I have switched my studio over to mac's and need a good network renderer. If you can post your experience when you get a chance i would like to know how it works for you.
    g5 Mac OS X (10.4.6)

Maybe you are looking for

  • Who can share some Adobe Reader plug-in development documentation besides SDK documentation?

    Hi, I want to develop a Adobe Reader plug-in to realize a function that I can delete/insert the pdf file's content when open a PDF file, but the SDK documentation is too indistinct to me, for example: which callback method I should to call? I read th

  • Error with dbms_redefinition package?

    Hi everybody! I have a table 'object_log'(it is partioned) . I used dbms_redefinition to change its partion , and evrythink was ok. When I tried to redefine this table for the second time it failed! I run this script BEGIN DBMS_REDEFINITION.start_red

  • How do u restore a ipod

    How do u restore an iPod touch 5. I have been trying to restore my ipod and i cant tell how. It has been disabled for a week and i really want to restore it sooner rather then later.

  • Apply Policy On a Dynamic PDF

    Hi, I want to apply a policy on a pdf document. I have created a policy through admin ui. When i am invoking the process following exception occurs:-- ALC-DSC-003-000: com.adobe.idp.dsc.DSCInvocationException: Invocation error. at com.adobe.idp.dsc.c

  • Two problems : navigating the timeline and know where your shot matching originates

    Hello, - I wonder how you can navigate the timeline freely (I'm on PC in direct link mode) to be able to use, for example, the C shortcut easily when you edit a one hour film. In a word, I can't find how I can zoom on the secondary playhead instead o