Print thru XSL or XML

Hi all
i am struggling to take the print in webdynpro SO for,
i have tried the following code using your valuable help
Pls Guide me futher more.Nobody giving correct solution so for i.e Step by Step from the beginning itself
pls help us in this regarding
****The following code is the XSL Template
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
<xsl:template match="/">
<html>
<head>
<title></title>
<script language ="javascript">
function prin()
            document.frm.jd.src="C:/emp.jpg";
            javascript:print();
</script>
</head>
<body>
<form name="frm">
*********************Header Part Start
<table bgcolor="" cellpadding="10">
<tr><th align="left"><font color="#A52A2A">Name</font></th>
<th align="left"><font color="#A52A2A">Address1</font></th>
<th align="left"><font color="#A52A2A">Address2</font></th>
<th align="left"><font color="#A52A2A">State</font></th>
<th align="left"><font color="#A52A2A">Phone</font></th></tr>
<hr/>
********Header Part End
<xsl:for-each select="Dhina/Customer-Details">
***************Details Part Start
<tr>
   <td><font color="blue"><xsl:value-of select="CusName"/></font></td>
   <td><font color="blue"><xsl:value-of select="CusAdd1"/></font></td>
   <td><font color="blue"><xsl:value-of select="CusAdd2"/></font></td>
   <td><font color="blue"><xsl:value-of select="CusState"/></font></td>
   <td><font color="blue"><xsl:value-of select="phoneno"/></font></td>
</tr>
***************Details Part End
</xsl:for-each >
</table>
<img src="C:/PRINT13.ICO" name="jd" onclick="prin)"></img>
</form>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
First Page as usual Header part will print
I want to print the Header part details in the next page when the no of pages goes to more than one when we click the print button from The IFRAME UI Element.
Under the Header part, Details part should print like in MSword or Crystal report
************The following part in XML
<?xml version='1.0' ?><?xml-stylesheet type='text/xsl' href='Sample.xsl' ?><Dhina><Customer-Details><CusName>Dhina</CusName><CusAdd1>Add1</CusAdd1><CusAdd2>Add2</CusAdd2><CusState>TamilNadu</CusState><phoneno>99999</phoneno></Customer-Details><Customer-Details><CusName>Karan</CusName><CusAdd1>Add3</CusAdd1><CusAdd2>Add4</CusAdd2><CusState>TamilNadu</CusState><phoneno>11111</phoneno></Customer-Details><Customer-Details><CusName>Karthi Keyan</CusName><CusAdd1>Add5</CusAdd1><CusAdd2>Add6</CusAdd2><CusState>Karnataka</CusState><phoneno>22222</phoneno></Customer-Details></Dhina>
*************End
Pls Guide us how to control the Header and footer part in the IFrame and also can we control the
Page skip thru XSL
We have attached the Report Screen also
Pls reply as soon as possible
Regards
Dhinakar

Dear Satyajit
*********************My Xml Start
<?xml version='1.0' ?><?xml-stylesheet type='text/xsl' href='Sample.xsl' ?><Dhina><Customer-Details><CusName>Dhina</CusName><CusAdd1>Add1</CusAdd1><CusAdd2>Add2</CusAdd2><CusState>TamilNadu</CusState><phoneno>99999</phoneno></Customer-Details><Customer-Details><CusName>Karan</CusName><CusAdd1>Add3</CusAdd1><CusAdd2>Add4</CusAdd2><CusState>TamilNadu</CusState><phoneno>11111</phoneno></Customer-Details><Customer-Details><CusName>Karthi Keyan</CusName><CusAdd1>Add5</CusAdd1><CusAdd2>Add6</CusAdd2><CusState>Karnataka</CusState><phoneno>22222</phoneno></Customer-Details><Customer-Details><CusName>Karthi Keyan</CusName><CusAdd1>Add5</CusAdd1><CusAdd2>Add6</CusAdd2><CusState>Karnataka</CusState><phoneno>22222</phoneno></Customer-Details><Customer-Details><CusName>Karthi Keyan</CusName><CusAdd1>Add5</CusAdd1><CusAdd2>Add6</CusAdd2><CusState>Karnataka</CusState><phoneno>22222</phoneno></Customer-Details><Customer-Details><CusName>Karthi Keyan</CusName><CusAdd1>Add5</CusAdd1><CusAdd2>Add6</CusAdd2><CusState>Karnataka</CusState><phoneno>22222</phoneno></Customer-Details><Customer-Details><CusName>Karthi Keyan</CusName><CusAdd1>Add5</CusAdd1><CusAdd2>Add6</CusAdd2><CusState>Karnataka</CusState><phoneno>22222</phoneno></Customer-Details><Customer-Details><CusName>Karthi Keyan</CusName><CusAdd1>Add5</CusAdd1><CusAdd2>Add6</CusAdd2><CusState>Karnataka</CusState><phoneno>22222</phoneno></Customer-Details><Customer-Details><CusName>Karthi Keyan</CusName><CusAdd1>Add5</CusAdd1><CusAdd2>Add6</CusAdd2><CusState>Karnataka</CusState><phoneno>22222</phoneno></Customer-Details><Customer-Details><CusName>Karthi Keyan</CusName><CusAdd1>Add5</CusAdd1><CusAdd2>Add6</CusAdd2><CusState>Karnataka</CusState><phoneno>22222</phoneno></Customer-Details><Customer-Details><CusName>Karthi Keyan</CusName><CusAdd1>Add5</CusAdd1><CusAdd2>Add6</CusAdd2><CusState>Karnataka</CusState><phoneno>22222</phoneno></Customer-Details><Customer-Details><CusName>Karthi Keyan</CusName><CusAdd1>Add5</CusAdd1><CusAdd2>Add6</CusAdd2><CusState>Karnataka</CusState><phoneno>22222</phoneno></Customer-Details><Customer-Details><CusName>Karthi Keyan</CusName><CusAdd1>Add5</CusAdd1><CusAdd2>Add6</CusAdd2><CusState>Karnataka</CusState><phoneno>22222</phoneno></Customer-Details><Customer-Details><CusName>Karthi Keyan</CusName><CusAdd1>Add5</CusAdd1><CusAdd2>Add6</CusAdd2><CusState>Karnataka</CusState><phoneno>22222</phoneno></Customer-Details><Customer-Details><CusName>Karthi Keyan</CusName><CusAdd1>Add5</CusAdd1><CusAdd2>Add6</CusAdd2><CusState>Karnataka</CusState><phoneno>22222</phoneno></Customer-Details><Customer-Details><CusName>Karthi Keyan</CusName><CusAdd1>Add5</CusAdd1><CusAdd2>Add6</CusAdd2><CusState>Karnataka</CusState><phoneno>22222</phoneno></Customer-Details><Customer-Details><CusName>Karthi Keyan</CusName><CusAdd1>Add5</CusAdd1><CusAdd2>Add6</CusAdd2><CusState>Karnataka</CusState><phoneno>22222</phoneno></Customer-Details><Customer-Details><CusName>Karthi Keyan</CusName><CusAdd1>Add5</CusAdd1><CusAdd2>Add6</CusAdd2><CusState>Karnataka</CusState><phoneno>22222</phoneno></Customer-Details><Customer-Details><CusName>Karthi Keyan</CusName><CusAdd1>Add5</CusAdd1><CusAdd2>Add6</CusAdd2><CusState>Karnataka</CusState><phoneno>22222</phoneno></Customer-Details><Customer-Details><CusName>Karthi Keyan</CusName><CusAdd1>Add5</CusAdd1><CusAdd2>Add6</CusAdd2><CusState>Karnataka</CusState><phoneno>22222</phoneno></Customer-Details><Customer-Details><CusName>Karthi Keyan</CusName><CusAdd1>Add5</CusAdd1><CusAdd2>Add6</CusAdd2><CusState>Karnataka</CusState><phoneno>22222</phoneno></Customer-Details><Customer-Details><CusName>Karthi Keyan</CusName><CusAdd1>Add5</CusAdd1><CusAdd2>Add6</CusAdd2><CusState>Karnataka</CusState><phoneno>22222</phoneno></Customer-Details></Dhina>
*********************End
i have send already XSL part
This xml source is created from webdynpro,
Depending on Select Query(SQL) the source may vary.
why and where we need to repeat the <div> in my HTML part
Regards
Dhinakar

Similar Messages

  • PDF printing thru IPP?

    Hello,
    I have gone thru the below document on PDF printing options and could not find a way to print thru IPP printing. Is it possible to do it APEX? Are there any config/setup documents available?
    http://www.oracle.com/technology/products/database/application_express/html/configure_printing.html
    By the way, I am using APEX 3.1.2. For some reasons, I could not use "Apache FOP" and only have XML Publisher for E-Business Suite -- reason on checking whether IPP printing would work.
    Thanks in advance for any ideas.
    Regards,
    Rownald

    There is nothing in APEX to allow you to print through IPP. I believe you are talking about sending print output programmatically to a "print server" (best guess at a generic term). You are NOT referring to the user going to File > Print in their browser and printing to a printer defined on their local PC, correct?
    If those assumptions are correct, there is nothing built-into APEX to do this. Actually, there's nothing built into APEX to handle print output at all. For interactive printing, APEX is integrated with Oracle BI Publisher and Apache FOP in which it sends the data + a template to one of the servers and gets back a PDF. More details here. BI Publisher can also be configured to send output to pre-defined network printers without requiring the user to select or have any knowledge of the printer. I think that is what you are asking for.
    Tyler Muth
    http://tylermuth.wordpress.com
    [Applied Oracle Security: Developing Secure Database and Middleware Environments|http://sn.im/aos.book]

  • How to print system-time in XML?

    Hi,
       Please help me how to print system-time in XML. Like we use sy-uzeit in ABAP.
    Can we use anything in XML too..
    Thanks & Regards,
    Sai

    hi movilogo
    Please try this.
    Create hidden item P1_DATE
    Create On load process in page 1 and put this code
    begin
    :P1_DATE:=TO_CHAR(SYSDATE,'DD-MON-YYYY HH:MM:SS');
    end;
    Open your region in Page 1 put this code in Footer area
    *&P1_DATE.*
    Refresh your page.
    you will get the output like this.
    16-SEP-2009 11:09:17
    thanks
    Mark Wyatt

  • Using resourceDescription in SUBSCRIPTIONBUNDLED_Email.xsl and xml's.

    Hello all,
    We are trying to use the Primitive Template "resourceDescription" (as described in "Customizing Notifications"-pdf) in the SUBSCRIPTIONBUNDLED_EMAIL.xsl and SUBSCRIPTIONBUNDLED_en.xml.
    Could anyone urgently let me know if it's possible to use this Primitive Template in the xsl and xml mentioned?
    It looks like the "resourceDescription" is not being passed on to the bundlednotificationdata-section in the xml?
    Any other suggestion in how to get the "resourceDescription" available in Daily Summary Subscription emails?
    Thanks in advance,
    Tim.

    Hello Alan,
    Yes; as far as I know the only way to get your changes to any of the email notification xml files visible is by restarting the server
    The notification email xsl I'm working on is the one for the daily notifications (subscriptionbundled_email.xsl).
    My problem is that it seems that the resourceDescription is not being passed on by the java code that is populating the section in the xml file containg the resource information...
    Unfortunately no confirmation about this yet (raised OSS with SAP as well).
    I'm expecting this resourceDescription to contain the text that you can fill in using standard KM in the Description field of a resource.
    I do wonder how/where your users populate the subject and description fields? Standard SAP KM or custom app?
    Cheers,
    Tim.

  • Ability to print thru RIP (ImagePrint)

    Enhancement request;
    I use ImagePrint (RIP) to print, and the only possibility for me today is to print thru the sRGB color space - which obviously is a waste of color. The reason for this is Lightroom only allows printer color profiles for printing (in the Profile setting), it's not possible to choose ProPhoto or Adobe RGB for printing. To be able to print to a RIP I have to chose 'Managed by printer' which then outputs pictures in the sRGB.
    What I (and other ImagePrint / RIP users) want, is;
    a) a way to choose ProPhoto or Adobe RGB as color space when printing, or
    b) some cooperation between Adobe and ColorByte (others?) to remedy this
    Pål

    Just started having the same problem this week after a year without any difficulties. Any help, please?

  • Problem for XSL copying  XML file with Error in expression '*|/'.

    Hi,
    I am trying to convert xml file to another xml through command-line interface but failed.
    java oracle.xml.parser.v2.oraxsl data.xml data.xsl data_new.xml
    My sample xml and xsl files are:
    1. XML file
    <employee_data>
    <employee_row>
    <employee_number>7950</employee_number>
    <employee_name>ABC</employee_name>
    <employee_title>PRESIDENT</employee_title>
    <manager>1111</manager>
    <date_of_hire>20-JAN-93</date_of_hire>
    <salary>65000</salary>
    <commission>1000</commission>
    <department_number>10</department_number>
    </employee_row>
    </employee_data>
    2. XSL file
    <?xml version="1.0" ?>
    <xsl:stylesheet xsl:version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="xml"/>
    <xsl:template match="*">
    <xsl:copy>
    <xsl:apply-templates>
    <xsl:sort select=".//employee_name"/>
    </xsl:apply-templates>
    </xsl:copy>
    </xsl:template>
    </xsl:stylesheet>
    The error message:
    Error occurred while processing data.xsl: Error in expression: '*|/'.
    I used a sample XSL files copying from a XML book to do the convert but got the same error.
    Does anyone know how to fix this problem? I'll appreciate it very much for your help.
    Thanks.
    Yiguang Zhong

    Hi swanelvis ,
    I have the same issue. Were you able to resolve this ?
    Thanks

  • Configure dj 2540 printer for wireless print thru samsung grand (without router)

    how to configure  dj 2540 printer for wireless print thru samsung glaxy grand mobile (without router)

    Hi patede,
    Welcome to the HP Support forums.  I see that you would like to learn how to set up your Deskjet 2540 printer to be able to print wirelessly from your Android mobile device when you don’t have a router.
    I have included the document titled Printing from an Apple or Android Mobile Device with HP Wireless Direct.  The document will walk you through setting up the printer and  how to print from your Android mobile device.  Please note that when you are connected to the printer’s network you will not have access to the internet.
    Regards,
    Happytohelp01
    Please click on the Thumbs Up on the right to say “Thanks” for helping!
    Please click “Accept as Solution ” on the post that solves your issue to help others find the solution.
    I work on behalf of HP

  • Can I print report to a printer thru report server?

    If I use a report server and run the application thru browser, can I print the report to a print thru report server? and How?

    hello,
    use DESTYPE=PRINTER to print directly to a printer. you have to set DESNAME to the name of the printer
    regards,
    the oracle reports team

  • How to create a Layout Template of XSL Stylesheet (XML) type

    Hello,
    I am new to OBIEE. I need to generate layout template to be of XSL Stylesheet (XML) format. ( output report to be in XML format )
    Please share if anybody know How to create a Layout Template of XSL Stylesheet (XML) type for BI Publisher.
    Waiting for your reply

    Look at this, for example.
    http://xlspe.com/news.php?item.15.1

  • Brother printer won't print thru labview

    I have looked at the two big threads about printing via USB printers, but they don't address my issue. I recently upgraded to Windows 7, and now my report generation code will not work.  Anytime i attempt to print thru LV, the LED on my Brother printer begins flashing red and the print doesn't happen. The troubleshooting section of the manual for this label printer mentions a loss of communication, and connecting to the wrong USB ports. Since the Brother software for printing labels works fine on its own, I figure the loss of communication isn't the issue. I have tried the basic Report Express VI, rather than using the Set Margin VI and others, and that won't print either. I even uninstalled and reinstalled the software, and do not achieve different results.

    Hi jdezman,
    I've got a few questions about the set up.  Are you getting any errors in LabVIEW when this happens?  It might also be helpful in this situation to post the code that's being used here so that we can check if anything needs to be changed programatically. 
    I'd also like to check which USB port you're using.  Have you tried using a different port?  I've heard about Windows 7 sometimes handling USB ports awkwardly.  The fact that the Brother software works makes me doubtful that this would change things, but I'd think it would be a pretty quick change to make to see if it makes any changes.  
    I also want to verify that this issue has been present since upgrading to Windows 7.  Stated another way, has this code ever worked since the switch to Windows 7?  I'm curious if the dll that LabVIEW is calling to handle it's print has changed in Windows 7 and is causing a problem.
    Thanks,
    -Dave C
    Applications Engineer
    National Instruments

  • Check print thru F110

    Hi all
    i copied the check print script F110_PRENUM_CHCK....and made changes as per required...
    i did no change in the driver program ie RFFOUS_C....
    now i m using  two tcodes F110 & FBZ5...for printing...check....
    its printing properly from FBZ5 ....but while printing thru F110 it is printing two checks.....
    i removed( commented the text in scripts and deleted the next page )  the advice note ,summary ,i  m printing only the check....
    F110 is printing two check e.g.000320,000321.........
    is it a problem of configuration...plz let me knw....
    i also changed the script name from FBZP....
    so plz let me knw...
    Thnx
    Rohit

    HI
    You have to deactivate sample print out from the variant that is being used in F110.
    You can get into the variant from F110.
    Good Luck
    Hari

  • Java XSLSample foo.xsl foo.xml yielded unexpected result

    Hi,
    Our company is trying to find a xml parser to use for a
    company wide project. I'm having problems running the oracle
    xml parser.
    I'm using parser for Java v2. I just want to test the samples on
    a very simple xml file.
    steps i used:
    1. set classpath=c:\xml\oracle\lib\xmlparserv2.jar
    2. javac XSLSample.java
    3. java XSLSample foo.xsl foo.xml
    foo.xsl
    <?xml version="1.0"?>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/XSL/Transform/1.0">
    <xsl:template match="/">
    <html>
    <xsl:apply-templates/>
    </html>
    </xsl:template>
    <xsl:template match="doc">
    <body>
    <xsl:value-of select="."/>
    </body>
    </xsl:template>
    </xsl:stylesheet>
    foo.xml
    <?xml version="1.0"?>
    <doc>Hello</doc>
    the result I got
    <root>
    <xsl:stylesheet
    xmlns:xsl="http://www.w3.org/XSL/Transform/1.0">
    <xsl:template match="/">
    <html>
    <xsl:apply-templates></xsl:apply-templates>
    </html>
    </xsl:template>
    <xsl:template match="doc">
    <body>
    <xsl:value-of select="."></xsl:value-of>
    </body>
    </xsl:template>
    </xsl:stylesheet>
    </root>
    my expected result should be
    <html><body>Hello</body></html>
    Can anyone tell me how I can get my expected result?
    thanks.
    Jack
    null

    H.Ozawa (guest) wrote:
    : I think I found the problem. It's the namespace.
    : Use:
    : http://www/w3.org/1999/XSL/Transform
    : without the "1.0".
    : It still comes out as:
    : <root>
    : <html>
    : <body>
    : Hello
    : </body>
    : </html>
    : </root>
    : You could just edit the java source so it'll just use the top
    : node instead of "root"
    : and loop through the child nodes.
    : jack (guest) wrote:
    : : Hi,
    : : Our company is trying to find a xml parser to use for a
    : : company wide project. I'm having problems running the oracle
    : : xml parser.
    : : I'm using parser for Java v2. I just want to test the samples
    : on
    : : a very simple xml file.
    : : steps i used:
    : : 1. set classpath=c:\xml\oracle\lib\xmlparserv2.jar
    : : 2. javac XSLSample.java
    : : 3. java XSLSample foo.xsl foo.xml
    : : foo.xsl
    : : <?xml version="1.0"?>
    : : <xsl:stylesheet
    xmlns:xsl="http://www.w3.org/XSL/Transform/1.0">
    : : <xsl:template match="/">
    : : <html>
    : : <xsl:apply-templates/>
    : : </html>
    : : </xsl:template>
    : : <xsl:template match="doc">
    : : <body>
    : : <xsl:value-of select="."/>
    : : </body>
    : : </xsl:template>
    : : </xsl:stylesheet>
    : : foo.xml
    : : <?xml version="1.0"?>
    : : <doc>Hello</doc>
    : : the result I got
    : : <root>
    : : <xsl:stylesheet
    : : xmlns:xsl="http://www.w3.org/XSL/Transform/1.0">
    : : <xsl:template match="/">
    : : <html>
    : : <xsl:apply-templates></xsl:apply-templates>
    : : </html>
    : : </xsl:template>
    : : <xsl:template match="doc">
    : : <body>
    : : <xsl:value-of select="."></xsl:value-of>
    : : </body>
    : : </xsl:template>
    : : </xsl:stylesheet>
    : : </root>
    : : my expected result should be
    : : <html><body>Hello</body></html>
    : : Can anyone tell me how I can get my expected result?
    : : thanks.
    : : Jack
    Yes that is the problem and is called out in the readme. The
    sample xsl file has been fixed in the current release.
    Oracle XML Team
    http://technet.oracle.com
    Oracle Technology Network
    null

  • Upgraded to OS X 10.6.4, now lexmark E232 will not print thru airport

    Upgraded to 10.6.4. Updated airport software 7.4.2. Lexmark will not print thru Airport. Will print direct via USB.
    Airport utility suggests/shows that it's set up properly, Printer shows up in print & fax preferences. Only differences since yesterday are the software updates.

    Welcome to the discussion area, bseidenstat!
    This has worked for me in the same situation, but with a different printer. Can't say if it will work for you, but might be worth a try to reset the printing system if all else has failed (and you haven't already tried this)
    Make sure the printer is powered on and connected to the USB port on the AirPort Extreme
    Open System Preferences, then open Print & Fax
    Control-click or right-click in the printers box on the left, choose "Reset printing system" and click OK
    Click the + (plus) button to add your printer again
    Try to print

  • Can't print thru wireless network on HP 1350.

    Have Toshiba windows 7 laptop, HP 1350 printer. Can't set up to print thru network. Was able to do it on my other laptop, but have no clue how or what I did. Please please help!!!
    Theresa

    Get the latest software for your printer from the "Support & Drivers" link at the top of this page.
    Say thanks by clicking "Kudos" "thumbs up" in the post that helped you.
    I am employed by HP

  • Print value of a XML tag

    Hi
    We have a requirement where we need print a value from XML tag. The tag is ike this
    <Order ordernumb=22><Order>
    how can i access the value 22, print it in logs.
    Any functions avaialble for this?
    Thanks
    Kedar

    thanks

Maybe you are looking for

  • How can i use two list screens in  Classical report.

    Dear Sir, In My Report in First screen i am taking the GR details and Display In it_final By Check Box Wise. Based On The Check Box selection in First screen In Second Screen i want The Challan Details Based On Some In Puts In First Field. so how can

  • How to pass parameter to 1 method in adf 11g

    Hi, <af:panelAccordion id="id25" clientComponent="true" visible="true" inlineStyle="height:90%;"> MyBean.leftKey=list <af:iterator id="keyId" value="#{MyBean.leftKey}" var="bean"> <af:showDetailItem text="#{bean.text}" id="arraylistValues"> (bean.tex

  • How Can I set Specific RingTone for one person and general ringtone for all?

    Hello All, I have a problem with ringtone. I want to set specific ringtone for manager in my 99 series ip phone. Customer needs to know when manager calls him, that is why he told me that he wants to set specific ringtone for Manager. Thanks a lot Ba

  • Mountain Lion installation problem?

    Hi, so I have a mid-2012 MacBook Pro and im installing Mountain Lion. I've gotten to the part where the screen shows that it's installing on Macintosh HD with the estimated time. The problem being that it says I am at "About -15 minutes" and it conti

  • Qosmio G15-AV501: Where to find the Vista graphic driver

    Hi, I have searched the world, looking for VISTA drivers especially NVIDIA drivers for my G15 AV501 - Toshiba says the G10 is the same, but that doesn't heelp either, I am running vista and it seems to be a little slow with a couple of small glitches