Images in PDF reports

I have a report that indicates the health of a project by showing an image, like a stop light. The query looks like this:
select     "PM_PROJECTS"."ID" as "ID",
'<img src="#APP_IMAGES#'||lower(HEALTH)||'.gif">' health_image,
     "PM_PROJECTS"."OWNING_TEAM" as "OWNING_TEAM",
     "PM_PROJECTS"."PROJECT_NAME" as "PROJECT_NAME",
"PM_PROJECTS"."PHASE" as "PHASE",
     "PM_PROJECTS"."HEALTH" as "HEALTH"
from     "PM_PROJECTS" "PM_PROJECTS"
where "PM_PROJECTS"."ID" <> 144
The client likes paper reports, so I have a link to "print" the report to PDF. However, the image does not appear on the PDF version of the report, just an empty column. Is there a way to display the image in PDF output?
Thanks in advance!

Hi
I'm actually wondering about the same thing, however, I'd like to implement a BLOB-image in a PDF Report.
I found this link http://blogs.oracle.com/xmlpublisher/2006/05/05#a34 which makes it seem that BI Publisher supports base64encoded pictures. (There's a sample there aswell)
Now my question is; how can we get the blobdata presented as base64 in the XML from ApEx? Anyone with some experience on this?
Regards,
Vidar

Similar Messages

  • Dynamic Images in PDF Report

    Hi,
    I want to create Badges from employee table (ID, NAME, JOB_TITLE, PHOTO). I downloaded and installed a demo application "USING DYNAMIC IMAGES IN PDF REPORT". It works fine with smale images < 20K. I'm getting the following error for images > 20K :
    "ORA-06502: PL/SQL: numeric or value error: raw variable length too long"
    it seems like a buffer problem.
    could you pls help to solve this problem
    Thanks,
    Ribhi

    Hi Carsten
    That was exactly* I was looking for. Maybe I should Google more in German ;-)
    The main problem was that I defined my image outside the first repeating group (that doesn't repeat, it's always just one object) - the first group is followed by 7 more.
    Just like the "Name" (that's positioned outside the group in the document header), I positioned the image above the table representing the group.
    Doing that, the "Name" is filled correctly, the Image only when the Output Format is Excel or HTML - not Word or PDF ... makes no sense but that's tje way it is.
    After moving the image inside the group....it works great!
    (One more thing...the image size is fixed to the image you use as "dummy". Is there any way to make that more flexible, because now some scaling happens...)???
    @Trent: That was the way we initially did it, but when the size of the row exceeds 32K...you know what happens.. And even with a small image the 32K limit is hit easily
    The way I use it now (very similar to Carsten's description) there is no limit....
    Thank you all!
    Roel

  • Using Dynamic Images in PDF Reports

    There are a number of threads in the forum where we talked about dynamically including images in PDF reports before. In order to illustrate one technique you can use for doing this, I put together a sample application that illustrates how to dynamically include images that are stored in BLOB columns. I installed the application on apex.oracle.com and made it available for download and local install. You can find the link and login information for this application as well as the download link here:
    http://marcsewtz.blogspot.com/2008/06/one-question-about-pdf-printing-feature.html

    Based on a discussion we had today in another thread, I think it makes sense to add to this thread that the XSL-FO snipped used to get BI Publisher to render images is used when referencing images in a report column, e.g. you included them in your RTF layout using the BI Publisher Desktop Insert->Table option. In this case, the column is referenced with “value-of select”:
    <fo:instream-foreign-object content-type="image/jpg">
    <xsl:value-of select="LOGO"/>
    </fo:instream-foreign-object>
    On the other hand, if you want to dynamically include a company logo, or other data that’s not necessarily repeating, e.g. there’s only one value, then you would use the BI Publisher Desktop Insert->Field option . And you would reference your field as follows:
    <fo:instream-foreign-object content-type="image/jpg">
    <?LOGO?>
    </fo:instream-foreign-object>
    So in this case LOGO refers to either a single-value field, or a single-row report column value.
    Regards,
    Marc

  • How to embed images in PDF reports - help!

    i have gone through the demo at http://www.oracle.com/technology/obe/hol08/apexprnt/apexprnt2_otn.htm and this works fine UNLESS the image is bigger than say 8Kb.
    How do i accomplish embedding an image in a PDF report if these images are (substantially) bigger??
    I have tried asking this on this forum a number of times with no success. Is there ANYONE out there that can help me in this urgent matter?
    Any help would be venerated.
    regards,
    stafford

    Before entering into XSL-FO, I would strongly advise using XML-Spy or a similar product to check the validity of the XSL-FO code.
    Also, I found the process to be highly iterative, building up the XSL-FO piece by piece. For this purpose I created a test harness in which I could enter the XML data and the FO sheet and generate the PDF outside of Apex. This saved quite a lot of time as I did not have to delete the report query each time I wanted to apply a change.
    Anyway heres the XSL-FO for a letter generated by the system.
    I use a bit map for a logo, I checked the size of it and it is 56k.
    I'll submit a further post with the test harness.
    Also, let me know if you need help installing FOP.
    Cheers
    Paul
    <?xml version="1.0" encoding="utf-8"?>
    <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:ora="http://www.oracle.com/XSL/Transform/java/" xmlns:xdofo="http://xmlns.oracle.com/oxp/fo/extensions" xmlns:xdoxslt="http://www.oracle.com/XSL/Transform/java/oracle.apps.xdo.template.rtf.XSLTFunctions" xmlns:xdoxliff="urn:oasis:names:tc:xliff:document:1.1" xmlns:xlink="http://www.w3.org/1999/xlink">
    <xsl:template match="/">
    <fo:root>
    <fo:layout-master-set>
    <fo:simple-page-master master-name="master1" page-height="29.7cm" page-width="21cm" margin-top=".5cm" margin-bottom=".5cm" margin-left="1cm" margin-right="1cm">
    <fo:region-before region-name="region-header" extent="0cm"/>
    <fo:region-body region-name="region-body" margin-top="1cm" margin-bottom="1cm"/>
    <fo:region-after region-name="region-footer" extent="2cm" display-align="after"/>
    </fo:simple-page-master>
    </fo:layout-master-set>
    <fo:page-sequence master-reference="master1" font-family="sans-serif" font-size="10pt" text-indent="2pt" padding-top="2pt" padding-bottom="2pt" padding-left="5pt" padding-right="5pt">
    <fo:title>Hen House Summary Report</fo:title>
    <fo:static-content flow-name="region-header"/>
    <fo:static-content flow-name="region-footer"/>
    <fo:flow flow-name="region-body">
    <fo:block>
    <!-- border-width="1mm" border-top="0.5pt solid #000000" border-left="0.5pt solid #000000" border-right="0.5pt solid #000000" border-bottom="0.5pt solid #000000">
    padding-top="5pt" padding-bottom="5pt"> -->
    <fo:table>
    <fo:table-column column-width="400pt"/>
    <fo:table-column column-width="100pt"/>
    <fo:table-body>
    <fo:table-row>
    <fo:table-cell>
    <fo:block text-indent="5mm" font-family="sans-serif" font-size="12pt" padding-top="5pt">Gov Directorate</fo:block>
    <fo:block text-indent="5mm" font-family="sans-serif" font-size="12pt">A Unit</fo:block>
    <fo:block padding="15pt"></fo:block>
    <fo:block>
    <fo:block text-indent="20pt" font-size="12pt" text-align="left" space-after="4pt">
    <xsl:value-of select="//ROWSET6/ROWSET6_ROW/CONTACT_NAME" xdofo:field-name="CONTACT_NAME"/>
    </fo:block>
    <xsl:for-each select="//ROWSET4/ROWSET4_ROW">
    <fo:block text-indent="20pt" font-size="12pt" text-align="left" space-after="4pt">
    <xsl:value-of select="ADDRESS_LINE"/>
    </fo:block>
    </xsl:for-each>
    </fo:block>
    </fo:table-cell>
    <fo:table-cell>
    <fo:block>
    <fo:external-graphic space-after="4pt">
    <xsl:attribute name="src"><xsl:value-of select="//ROWSET3/ROWSET3_ROW/BASE_URL" />/i/ScotGov_Letter.bmp</xsl:attribute>
    </fo:external-graphic>
    </fo:block>
    <fo:block>
    <xsl:for-each select="//ROWSET1/ROWSET1_ROW">
    <fo:block font-size="10pt" text-align="left">
    <xsl:value-of select="ADDRESS_LINE"/>
    </fo:block>
    </xsl:for-each>
    </fo:block>
    <fo:block padding-top="15pt">
    </fo:block>
    <fo:block font-size="8pt" text-align="left" space-after="4pt">
    <xsl:for-each select="//ROWSET2/ROWSET2_ROW">
    <xsl:variable name="vContactTypeName">
    <xsl:value-of select="CONTACT_TYPE_NAME"/>
    </xsl:variable>
    <xsl:if test="$vContactTypeName = 'RPID_TELNO'">
    <fo:block>
    <xsl:value-of select="CONTACT_TYPE_VALUE"/>
    </fo:block>
    </xsl:if>
    </xsl:for-each>
    </fo:block>
    <fo:block font-size="8pt" text-align="left">
    <xsl:for-each select="//ROWSET2/ROWSET2_ROW">
    <xsl:variable name="vContactTypeName">
    <xsl:value-of select="CONTACT_TYPE_NAME"/>
    </xsl:variable>
    <xsl:if test="$vContactTypeName = 'RPID_EMAIL'">
    <fo:block>
    <xsl:value-of select="CONTACT_TYPE_VALUE"/>
    </fo:block>
    </xsl:if>
    </xsl:for-each>
    </fo:block>
    <fo:block font-size="8pt" text-align="left" space-after="4pt">
    <xsl:for-each select="//ROWSET2/ROWSET2_ROW">
    <xsl:variable name="vContactTypeName">
    <xsl:value-of select="CONTACT_TYPE_NAME"/>
    </xsl:variable>
    <xsl:if test="$vContactTypeName = 'URL'">
    <fo:block>
    <xsl:value-of select="CONTACT_TYPE_VALUE"/>
    </fo:block>
    </xsl:if>
    </xsl:for-each>
    </fo:block>
    </fo:table-cell>
    </fo:table-row>
    </fo:table-body>
    </fo:table>
    </fo:block>
    <fo:block padding-top="10pt">
    </fo:block>
    <fo:block>
    <fo:table>
    <fo:table-column column-width="400pt"/>
    <fo:table-column column-width="140pt"/>
    <fo:table-body>
    <fo:table-row>
    <fo:table-cell>
    <fo:block>Our ref: <xsl:value-of select="//ROWSET7/ROWSET7_ROW/SITE_ID" xdofo:field-name="SITE_ID"/></fo:block>
    </fo:table-cell>
    <fo:table-cell>
    <fo:block>Date: <xsl:value-of select="//ROWSET3/ROWSET3_ROW/TODAY" xdofo:field-name="TODAY"/></fo:block>
    </fo:table-cell>
    </fo:table-row>
    </fo:table-body>
    </fo:table>
    </fo:block>
    <!--
    -->
    <fo:block padding-top="20pt">
    </fo:block>
    <fo:block>
    <fo:table>
    <fo:table-column column-width="540pt"/>
    <fo:table-body>
    <fo:table-row>
    <fo:table-cell>
    <fo:block>Dear <xsl:value-of select="//ROWSET6/ROWSET6_ROW/CONTACT_NAME" xdofo:field-name="CONTACT_NAME"/></fo:block>
    </fo:table-cell>
    </fo:table-row>
    <fo:table-row padding-top="10pt">
    <fo:table-cell text-align="center">
    <fo:block>EGG MARKETING REGULATIONS - EGG PRODUCTION SITE ID APPROVAL - <xsl:value-of select="//ROWSET7/ROWSET7_ROW/SITE_ID" xdofo:field-name="SITE_ID"/></fo:block>
    </fo:table-cell>
    </fo:table-row>
    </fo:table-body>
    </fo:table>
    </fo:block>
    <fo:block padding-top="10pt">
    </fo:block>
    <fo:block>
    <fo:table>
    <fo:table-column column-width="540pt"/>
    <fo:table-body>
    <fo:table-row>
    <fo:table-cell>
    <fo:block>I am writing to inform you that your production facility at</fo:block>
    <fo:block padding-top="10pt">
    </fo:block>
    </fo:table-cell>
    </fo:table-row>
    <fo:table-row space-after="4pt">
    <fo:table-cell>
    <xsl:for-each select="//ROWSET5/ROWSET5_ROW">
    <fo:block font-size="10pt" text-align="left">
    <xsl:value-of select="ADDRESS_LINE"/>
    </fo:block>
    </xsl:for-each>
    </fo:table-cell>
    </fo:table-row>
    <fo:table-row>
    <fo:table-cell>
    <fo:block padding-top="10pt">
    </fo:block>
    <fo:block padding-after="5pt">has been accepted. Your production site has been allocated the following code(s)</fo:block>
    </fo:table-cell>
    </fo:table-row>
    </fo:table-body>
    </fo:table>
    </fo:block>
    <fo:block border-width="1mm" border-top="0.5pt solid #000000" border-left="0.5pt solid #000000" border-right="0.5pt solid #000000" border-bottom="0.5pt solid #000000">
    <fo:table>
    <fo:table-column column-width="540pt"/>
    <fo:table-body>
    <fo:table-row>
    <fo:table-cell>
    <fo:block padding="10pt" margin="10pt" >
    <xsl:for-each select="//ROWSET8/ROWSET8_ROW">
    <fo:table>
    <fo:table-column column-width="270pt"/>
    <fo:table-column column-width="270pt"/>
    <fo:table-body>
    <fo:table-row>
    <fo:table-cell>
    <fo:block><xsl:value-of select="EPS_SITE_ID_7"/></fo:block>
    </fo:table-cell>
    <fo:table-cell>
    <fo:block><xsl:value-of select="EPS_SITE_ID_SCO"/></fo:block>
    </fo:table-cell>
    </fo:table-row>
    </fo:table-body>
    </fo:table>
    </xsl:for-each>
    </fo:block>
    </fo:table-cell>
    </fo:table-row>
    </fo:table-body>
    </fo:table>
    </fo:block>
    <fo:block padding-top="10pt">
    </fo:block>
    <fo:block>What the numbers mean</fo:block>
    <fo:block padding-top="10pt">
    </fo:block>
    <fo:block>0UK - "Organic" production system permitted to use the marketing term "Organic Eggs".</fo:block>
    <fo:block>1UK - "Free Range" production system permitted to use the marketing term "Free Range Eggs".</fo:block>
    <fo:block>2UK - "Barn" production system permitted to use the marketing term "Barn Eggs".</fo:block>
    <fo:block>3UK - "Cage" production system permitted to use the marketing term "Eggs from Caged Hens".</fo:block>
    <fo:block padding-top="10pt">
    </fo:block>
    <fo:block>The number located between the UK and SCO is tyour unique production site code. The SCO and or 7 suffiix denotes that the production site is located in Scotland.</fo:block>
    </fo:flow>
    </fo:page-sequence>
    <fo:page-sequence master-reference="master1" font-family="sans-serif" font-size="10pt" text-indent="2pt" padding-top="2pt" padding-bottom="2pt" padding-left="5pt" padding-right="5pt">
    <fo:title>Hen House Summary Report</fo:title>
    <fo:static-content flow-name="region-header"/>
    <fo:static-content flow-name="region-footer"/>
    <fo:flow flow-name="region-body">
    <fo:block space-after="30pt">
    <!-- border-width="1mm" border-top="0.5pt solid #000000" border-left="0.5pt solid #000000" border-right="0.5pt solid #000000" border-bottom="0.5pt solid #000000">
    padding-top="5pt" padding-bottom="5pt"> -->
    <fo:table>
    <fo:table-column column-width="400pt"/>
    <fo:table-column column-width="100pt"/>
    <fo:table-body>
    <fo:table-row>
    <fo:table-cell>
    <fo:block text-indent="5mm" font-family="sans-serif" font-size="12pt" padding-top="5pt">Rural Payments and Inspections Directorate</fo:block>
    <fo:block text-indent="5mm" font-family="sans-serif" font-size="12pt">Eggs and Poultry Unit</fo:block>
    </fo:table-cell>
    <fo:table-cell>
    <fo:block>
    <fo:external-graphic space-after="4pt">
    <xsl:attribute name="src"><xsl:value-of select="//ROWSET3/ROWSET3_ROW/BASE_URL"/>/i/ScotGov_Letter.bmp</xsl:attribute>
    </fo:external-graphic>
    </fo:block>
    </fo:table-cell>
    </fo:table-row>
    </fo:table-body>
    </fo:table>
    </fo:block>
    <fo:block font-weight="bold" space-after="5pt">Stamping</fo:block>
    <fo:block space-after="10pt">All Grade A eggs must be stamped with the relevant producer code. Failure to do so would render the eggs unmarketable for human consumption.</fo:block>
    <fo:block font-weight="bold" space-after="5pt">Records</fo:block>
    <fo:block space-after="5pt">Records <fo:inline font-weight="bold">MUST</fo:inline> be kept for <fo:inline font-weight="bold" text-decoration="underline">EACH HOUSE</fo:inline> showing;</fo:block>
    <fo:list-block>
    <fo:list-item>
    <fo:list-item-label>
    <fo:block>1.</fo:block>
    </fo:list-item-label>
    <fo:list-item-body start-indent="1cm">
    <fo:block>The date(s) of housing and the number of birds placed</fo:block>
    </fo:list-item-body>
    </fo:list-item>
    <fo:list-item>
    <fo:list-item-label>
    <fo:block>2.</fo:block>
    </fo:list-item-label>
    <fo:list-item-body start-indent="1cm">
    <fo:block>The age of birds at the time of housing</fo:block>
    </fo:list-item-body>
    </fo:list-item>
    <fo:list-item>
    <fo:list-item-label>
    <fo:block>3.</fo:block>
    </fo:list-item-label>
    <fo:list-item-body start-indent="1cm">
    <fo:block>Mortality figures for the life of the flock</fo:block>
    </fo:list-item-body>
    </fo:list-item>
    <fo:list-item>
    <fo:list-item-label>
    <fo:block>4.</fo:block>
    </fo:list-item-label>
    <fo:list-item-body start-indent="1cm">
    <fo:block>The date(s) of the depletion and numbers depleted</fo:block>
    </fo:list-item-body>
    </fo:list-item>
    <fo:list-item>
    <fo:list-item-label>
    <fo:block>5.</fo:block>
    </fo:list-item-label>
    <fo:list-item-body start-indent="1cm">
    <fo:block>The number of eggs produced and forwarded to egg packing centres</fo:block>
    </fo:list-item-body>
    </fo:list-item>
    </fo:list-block>
    <fo:block padding-top="10pt">
    </fo:block>
    <fo:block space-after="5pt">Where feed claims are made records <fo:inline font-weight="bold">MUST</fo:inline> be kept showing;</fo:block>
    <fo:list-block>
    <fo:list-item>
    <fo:list-item-label>
    <fo:block>1.</fo:block>
    </fo:list-item-label>
    <fo:list-item-body start-indent="1cm">
    <fo:block>The use of the feed claim</fo:block>
    </fo:list-item-body>
    </fo:list-item>
    <fo:list-item>
    <fo:list-item-label>
    <fo:block>2.</fo:block>
    </fo:list-item-label>
    <fo:list-item-body start-indent="1cm">
    <fo:block>Quantities of feed used</fo:block>
    </fo:list-item-body>
    </fo:list-item>
    <fo:list-item>
    <fo:list-item-label>
    <fo:block>3.</fo:block>
    </fo:list-item-label>
    <fo:list-item-body start-indent="1cm">
    <fo:block>Type of feed supplied of mixed</fo:block>
    </fo:list-item-body>
    </fo:list-item>
    <fo:list-item>
    <fo:list-item-label>
    <fo:block>4.</fo:block>
    </fo:list-item-label>
    <fo:list-item-body start-indent="1cm">
    <fo:block>Source of the feed</fo:block>
    </fo:list-item-body>
    </fo:list-item>
    <fo:list-item>
    <fo:list-item-label>
    <fo:block>5.</fo:block>
    </fo:list-item-label>
    <fo:list-item-body start-indent="1cm">
    <fo:block>Date(s) of delivery</fo:block>
    </fo:list-item-body>
    </fo:list-item>
    </fo:list-block>
    <fo:block padding-top="10pt">
    </fo:block>
    <fo:block font-weight="bold" space-after="5pt">Notification of Changes</fo:block>
    <fo:block space-after="10pt">You are required to inform this Government Department, without delay, of any changes concerning registered data supplied in your original application, including additional housing and/or birds.</fo:block>
    <fo:block padding-top="30pt">
    </fo:block>
    <fo:block space-after="40pt">Yours sincerely</fo:block>
    <fo:block><xsl:value-of select="//ROWSET3/ROWSET3_ROW/RPID_OFFICER" xdofo:field-name="RPID_OFFICER"/></fo:block>
    <fo:block><xsl:value-of select="//ROWSET3/ROWSET3_ROW/RPID_JOB_TITLE" xdofo:field-name="RPID_JOB_TITLE"/></fo:block>
    </fo:flow>
    </fo:page-sequence>
    </fo:root>
    </xsl:template>
    </xsl:stylesheet>

  • Displaying images in pdf reports

    a question please..
    can one display only .gif type images or can they also be .jpgs?
    also, is there a limit to the size of the image one displays?
    also, can one control the size of these images in the reports.
    sorry about the above. I have looked around for answers with very little success.
    thanks in advance.

    Hi
    I'm actually wondering about the same thing, however, I'd like to implement a BLOB-image in a PDF Report.
    I found this link http://blogs.oracle.com/xmlpublisher/2006/05/05#a34 which makes it seem that BI Publisher supports base64encoded pictures. (There's a sample there aswell)
    Now my question is; how can we get the blobdata presented as base64 in the XML from ApEx? Anyone with some experience on this?
    Regards,
    Vidar

  • How to display the Image in PDF report by using iText Report

    Hi
    Im trying to display the image which is very big one.
    This is my code
    Document document=new Document();
    PdfWriter.getInstance(document,new FileOutputStream("imagePDF.pdf"));
    document.open();
    Image image = Image.getInstance ("1.bmp");
    document.add(new Paragraph("Images in PDF"));
    document.add(image);
    document.close();
    But the image "1.bmp" is displayed partially. Its not spanning to the next page.
    Can anyone help me to solve this one?
    Thanks in Advance
    dhilip

    Do you actually want the image to span multiple pages? I am not sure that will be possible without splitting the image; the itext mailing list would be the place to ask.
    You could make the the page size big enough for the image using Document.setPageSize()

  • Displaying JPG images in PDF report

    Hi
    We developed a report, wich generates modul documentation from designer repository. In the repository the JPG images are attached to modules. The images have different sizes. The report reads the modules description and displays the images attached to modules.
    The report resizes the images. Seems like the image wide is resized to fit perfectly in the containing frame.
    This behavior is god when we have a bigger image, than the containing frame. But if we have a smaller image than the frame, the reports enlarges the image.
    How can we prevent this behavior?
    Thanks

    I think for that particular image object in layout model, if you can set the vertical and horizontal elasticity to fix, the image will not resize.
    Thanks
    Rohit

  • How to make column headers in table in PDF report appear bold while datas in table appear regular from c# windows forms with sql server2008 using iTextSharp

    Hi my name is vishal
    For past 10 days i have been breaking my head on how to make column headers in table appear bold while datas in table appear regular from c# windows forms with sql server2008 using iTextSharp.
    Given below is my code in c# on how i export datas from different tables in sql server to PDF report using iTextSharp:
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using System.Windows.Forms;
    using System.Data.SqlClient;
    using iTextSharp.text;
    using iTextSharp.text.pdf;
    using System.Diagnostics;
    using System.IO;
    namespace DRRS_CSharp
    public partial class frmPDF : Form
    public frmPDF()
    InitializeComponent();
    private void button1_Click(object sender, EventArgs e)
    Document doc = new Document(PageSize.A4.Rotate());
    var writer = PdfWriter.GetInstance(doc, new FileStream("AssignedDialyzer.pdf", FileMode.Create));
    doc.SetMargins(50, 50, 50, 50);
    doc.SetPageSize(new iTextSharp.text.Rectangle(iTextSharp.text.PageSize.LETTER.Width, iTextSharp.text.PageSize.LETTER.Height));
    doc.Open();
    PdfPTable table = new PdfPTable(6);
    table.TotalWidth =530f;
    table.LockedWidth = true;
    PdfPCell cell = new PdfPCell(new Phrase("Institute/Hospital:AIIMS,NEW DELHI", FontFactory.GetFont("Arial", 14, iTextSharp.text.Font.BOLD, BaseColor.BLACK)));
    cell.Colspan = 6;
    cell.HorizontalAlignment = 0;
    table.AddCell(cell);
    Paragraph para=new Paragraph("DCS Clinical Record-Assigned Dialyzer",FontFactory.GetFont("Arial",16,iTextSharp.text.Font.BOLD,BaseColor.BLACK));
    para.Alignment = Element.ALIGN_CENTER;
    iTextSharp.text.Image png = iTextSharp.text.Image.GetInstance("logo5.png");
    png.ScaleToFit(105f, 105f);
    png.Alignment = Element.ALIGN_RIGHT;
    SqlConnection conn = new SqlConnection("Data Source=NPD-4\\SQLEXPRESS;Initial Catalog=DRRS;Integrated Security=true");
    SqlCommand cmd = new SqlCommand("Select d.dialyserID,r.errorCode,r.dialysis_date,pn.patient_first_name,pn.patient_last_name,d.manufacturer,d.dialyzer_size,r.start_date,r.end_date,d.packed_volume,r.bundle_vol,r.disinfectant,t.Technician_first_name,t.Technician_last_name from dialyser d,patient_name pn,reprocessor r,Techniciandetail t where pn.patient_id=d.patient_id and r.dialyzer_id=d.dialyserID and t.technician_id=r.technician_id and d.deleted_status=0 and d.closed_status=0 and pn.status=1 and r.errorCode<106 and r.reprocessor_id in (Select max(reprocessor_id) from reprocessor where dialyzer_id=d.dialyserID) order by pn.patient_first_name,pn.patient_last_name", conn);
    conn.Open();
    SqlDataReader dr;
    dr = cmd.ExecuteReader();
    table.AddCell("Reprocessing Date");
    table.AddCell("Patient Name");
    table.AddCell("Dialyzer(Manufacturer,Size)");
    table.AddCell("No.of Reuse");
    table.AddCell("Verification");
    table.AddCell("DialyzerID");
    while (dr.Read())
    table.AddCell(dr[2].ToString());
    table.AddCell(dr[3].ToString() +"_"+ dr[4].ToString());
    table.AddCell(dr[5].ToString() + "-" + dr[6].ToString());
    table.AddCell("@count".ToString());
    table.AddCell(dr[12].ToString() + "-" + dr[13].ToString());
    table.AddCell(dr[0].ToString());
    dr.Close();
    table.SpacingBefore = 15f;
    doc.Add(para);
    doc.Add(png);
    doc.Add(table);
    doc.Close();
    System.Diagnostics.Process.Start("AssignedDialyzer.pdf");
    if (MessageBox.Show("Do you want to save changes to AssignedDialyzer.pdf before closing?", "DRRS", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Exclamation) == DialogResult.Yes)
    var writer2 = PdfWriter.GetInstance(doc, new FileStream("AssignedDialyzer.pdf", FileMode.Create));
    else if (MessageBox.Show("Do you want to save changes to AssignedDialyzer.pdf before closing?", "DRRS", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Exclamation) == DialogResult.No)
    this.Close();
    The above code executes well with no problem at all!
    As you can see the file to which i create and save and open my pdf report is
    AssignedDialyzer.pdf.
    The column headers of table in pdf report from c# windows forms using iTextSharp are
    "Reprocessing Date","Patient Name","Dialyzer(Manufacturer,Size)","No.of Reuse","Verification" and
    "DialyzerID".
    However the problem i am facing is after execution and opening of document is my
    column headers in table in pdf report from
    c# and datas in it all appear in bold.
    I have browsed through net regarding to solve this problem but with no success.
    What i want is my pdf report from c# should be similar to following format which i was able to accomplish in vb6,adodb with MS access using iTextSharp.:
    Given below is report which i have achieved from vb6,adodb with MS access using iTextSharp
    I know that there has to be another way to solve my problem.I have browsed many articles in net regarding exporting sql datas to above format but with no success!
    Is there is any another way to solve to my problem on exporting sql datas from c# windows forms using iTextSharp to above format given in the picture/image above?!
    If so Then Can anyone tell me what modifications must i do in my c# code given above so that my pdf report from c# windows forms using iTextSharp will look similar to image/picture(pdf report) which i was able to accomplish from
    vb6,adodb with ms access using iTextSharp?
    I have approached Sound Forge.Net for help but with no success.
    I hope anyone/someone truly understands what i am trying to ask!
    I know i have to do lot of modifications in my c# code to achieve this level of perfection but i dont know how to do it.
    Can anyone help me please! Any help/guidance in solving this problem would be greatly appreciated.
    I hope i get a reply in terms of solving this problem.
    vishal

    Hi,
    About iTextSharp component issue , I think this case is off-topic in here.
    I suggest you consulting to compenent provider.
    http://sourceforge.net/projects/itextsharp/
    Regards,
    Marvin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Showing dynamic images in BI Publisher PDF report

    I defined a RTF report layout in BI Publisher. Almost done, but one requirement missing...
    I should be able to include a dynamic image (so every "object" on the report has it's own image).
    At first I embedded the base64 converted image in the XML output, but then I am running into the 32K limit. (Small pictures render fine).
    Although Marc Sewtz sort of promised in June 2008 (!) : "One issue, which we'll address in the next version of Application Express, is the 32k limit on report columns." on his blogpost http://marcsewtz.blogspot.com/2008/06/one-question-about-pdf-printing-feature.html , it still not addressed.
    So I tried to embed the image in the report using a trick described on the forum (and BIP documentation), by embedding a dummy picture and set the "Alt-text" of the picture to
    (as an example) : url:{'http://www.oracleimg.com/us/assets/oralogo-small.gif'}.
    The strange thing is, that works fine for HTML Output and Excel output, but not for Word and PDF (why it does work for Excel and not for Word is very mysterious....). And of course I need a PDF output.
    I also tried to embed a FO snippet:
    <fo:block>
    <fo:external-graphic src="url:{'http://www.oracleimg.com/us/assets/oralogo-small.gif'}" />
    </fo:block>
    But that doesn't (seem to) work on any output...
    But
    <fo:block>
    <fo:external-graphic src="D:\Users\rhartman\Documents\PrintScreen Files\Screenshot004.jpg" />
    </fo:block>
    does produce the image on the PDF output.
    So who has an idea how to solve this issue?? You'll be rewarded with a lot of pionts ;-)
    TIA
    Roel

    Hi Carsten
    That was exactly* I was looking for. Maybe I should Google more in German ;-)
    The main problem was that I defined my image outside the first repeating group (that doesn't repeat, it's always just one object) - the first group is followed by 7 more.
    Just like the "Name" (that's positioned outside the group in the document header), I positioned the image above the table representing the group.
    Doing that, the "Name" is filled correctly, the Image only when the Output Format is Excel or HTML - not Word or PDF ... makes no sense but that's tje way it is.
    After moving the image inside the group....it works great!
    (One more thing...the image size is fixed to the image you use as "dummy". Is there any way to make that more flexible, because now some scaling happens...)???
    @Trent: That was the way we initially did it, but when the size of the row exceeds 32K...you know what happens.. And even with a small image the 32K limit is hit easily
    The way I use it now (very similar to Carsten's description) there is no limit....
    Thank you all!
    Roel

  • How to print a BLOB (image) on a PDF report using Oracle APEX Listener as Print Server

    Hi,
    I use APEX 4.2.
    I have the following query as SQL text for a Report Queries in Shared Components:
    select
        customer_id,
        cust_first_name,
        cust_last_name,
        cust_street_address1,
        cust_street_address2,
        cust_city,
        cust_state,
        cust_postal_code,
        phone_number1,
        phone_number2,
        credit_limit,
        cust_email,
        filename,
        company_profile,
        -- customer_image,
        decode(nvl(dbms_lob.getlength(customer_image),0),0,null,
        '<img style="border: 4px solid #CCC; -moz-border-radius: 4px; -webkit-border-radius: 4px;" '||
        'src="' ||
        apex_util.get_blob_file_src('P22_CUSTOMER_IMAGE', customer_id) ||
        '" height="75" width="75" alt="Photo Customer" title="Photo Customer" />') customer_image,
        mimetype,
        image_last_update
    from
        demo_customers;
    I am unable to have the image printed on the PDF report. Even when the P22_CUSTOMER_IMAGE is defined as session state item.
    Does someone knows how to print such image/BLOB in a PDF report?
    Thanks by advance.
    Kind Regards.

    Hi,
    Indeed, I would need a custom layout.
    Unfortunately, it seems (according to this white paper) not possible with the APEX listener only. I would need a third pary tool. A pity...
    For me strange, that I cannot generate such a report having images or pictures in a pre-definied report layout... Maybe a future enahancement for Oracle.
    Kind Regards.

  • PDF Report with BLOB image

    I have a PDF report produced from APEX using BI Publisher. I also have up to 4 images stored in BLOB fields that I would like to include in the PDF report. I found a reference for how to do this with APEX 3.1 (using a blob2clobase64 function), however I am using APEX 3.0 and this does not seem to work with this version. Does anyone have an example of how I can achieve this with APEX 3.0 and BI Publisher? Thanks, Karen.

    Check this out
    http://blogs.oracle.com/xmlpublisher/2008/07/file_attachments.html
    Tim

  • Image not displaying properly in pdf report

    Hi,
    I have imported a jpg image on the layout using Reports builder 6i folowing File-Import-Image. Its just a static image. Once i move this report to the server in binary mode and open it from apps(Quote pdf report), the report pdf has the image displayed with half side pitch blank color and the other half side with the actual picture. Can you guide what should i do to display the mage properly.
    Thanks.

    Hi,
    Resolved this problem.
    I had 2 more images in the same report, one jpeg & another one in gif format. I removed the image in gif format, converted it into jpeg format & imported back in report layout. Thus, making all three images in the report in the same format(Jpeg).
    Once I have all images of the same format in a report. It works fine.
    Regards.

  • How to make a PDF embedded image append a report and send via fax electronically from MS SSRS 2012?

    How can I make a PDF embedded image append a SSRS 2012 report and send via fax all electronically?  Is this possible?
    Thanks in advance for your time!

    Hello,
    1. The report item Image can be used to display the image which  embedded in the report, stored in a database, stored on the report server, or stored elsewhere on the Web.
    For example, you can embedded the PDF image in the report and stored as text in the report definition.
    2.Reporting Services includes an e-mail delivery extension and a file share delivery extension which you can send report to user or group through e-mail or send the report to a shared location on your network.
    If you want to send the report to FAX, you may try to create a custom delivery extension depend on your faxing software.
    Reference:Implementing a Delivery Extension
    Regards,
    Fanny Liu
    Fanny Liu
    TechNet Community Support

  • Report Logo - Displays on HTML, not on PDF report

    Hello once again Gurus.
    We have a system environment setup where we have BI Publisher Enterprise and Apex 3.1.2 talking together to create PDF reports on a Oracle 10g database (R2 I think, I'm uncertain). As part of a business requirement, depending on what project you are looking at within our apex application, when printing a report you see a logo specific to the project. We have already developed this using a RTF template with a dummy image embedded, and +url:{concat(.//URL,.//PROJECT_ID)}+ in the Alternative Text field of the Web tab of the Format Picture dialogue.
    This worked fine when using the RTF templates as Report Layouts within Apex and as templates within a BI Publisher report.
    However, now logos aren't appearing.
    I am not sure if we have upgraded the version of BI Publisher, but we are running Apex 3.1.2.00.02 on Dev and Apex 3.1.1.00.09 on test and prod, however none of these environments are outputting logos in the PDF reports.
    Curiously, if I go into the BI Publisher interface and ask for the report to be outputted as HTML, the image shows. Running the HTML version of the report from Apex also shows the logo -- but the logo isn't showing in the PDF reports.
    As I continue trouble shooting, any assistance would be greatly appreciated.
    Edit: We are on BIP 10.1.3.2

    If anyone could give us any insight on this, it would be appriciated.
    I'm unsure if its a permissions problem with the PDF seeing the image, or something related to server setup. We currently have a redirect in place to production that doesn't include the :7777 in the URL, and for some reason, if the G_URL for the image is changed to this portless URL, the image is embedded. However, this redirect was in place for another application, and will soon be locked down, so is not available for a long term solution to this problem

  • Report Logo - Displays on HTML, not on PDF report  (Apex report_)

    Hi Gurus.
    I thought I'd report this here, as we are having a BI Publisher error, and I'm not getting any help on the Apex subforum.
    +We have a system environment setup where we have BI Publisher Enterprise and Apex 3.1.2 talking together to create PDF reports on a Oracle 10g database (R2 I think, I'm uncertain). As part of a business requirement, depending on what project you are looking at within our apex application, when printing a report you see a logo specific to the project. We have already developed this using a RTF template with a dummy image embedded, and url:{concat(.//URL,.//PROJECT_ID)} in the Alternative Text field of the Web tab of the Format Picture dialogue.+
    This worked fine when using the RTF templates as Report Layouts within Apex and as templates within a BI Publisher report.
    However, now logos aren't appearing.
    We are on  BIP 10.1.3.2 according to the Help File, and we are running Apex 3.1.2.00.02 on Dev and Apex 3.1.1.00.09 on test and prod, however none of these environments are outputting logos in the PDF reports.
    Curiously, if I go into the BI Publisher interface and ask for the report to be outputted as HTML, the image shows. Running the HTML version of the report from Apex also shows the logo -- but the logo isn't showing in the PDF reports.
    As I continue trouble shooting, any assistance would be greatly appreciated.

    If anyone could give us any insight on this, it would be appriciated.
    I'm unsure if its a permissions problem with the PDF seeing the image, or something related to server setup. We currently have a redirect in place to production that doesn't include the :7777 in the URL, and for some reason, if the G_URL for the image is changed to this portless URL, the image is embedded. However, this redirect was in place for another application, and will soon be locked down, so is not available for a long term solution to this problem

Maybe you are looking for