Table headings disappearing in pdf?

Why are some table headings disappearing when I pdf a Frame 8 file? There is no pattern in the disappearances and each time I pdf the file, a different cell heading disappears. If I create a text box and paste that box over the heading, it shows up fine in the pdf, but that's a dumb way to work. This all started happening in the last month, after I changed computers. Thanks for the help!!

This is the message I get right now when I save to pdf. If I print to a prn, it doesn't open at all. I used to have a tool that converted the prn automatically at my old job, but there's nothing on the new job's computer and no IT help available. I've been doing a workaround by printing the TOC and the document separately and just adding the TOC to the new pdf, but now when I'm trying to pdf a large document (without TOC) that used to pdf just fine (with TOC), I'm getting the following message. I've just pdf'd chapters 7 & 8 with no problem whatsoever.
%%[ ProductName: Distiller ]%%
%%[Page: 1]%%
%%[Page: 2]%%
%%[Page: 3]%%
%%[Page: 4]%%
%%[Page: 5]%%
%%[Page: 6]%%
%%[Page: 7]%%
%%[Page: 8]%%
%%[Page: 9]%%
%%[Page: 10]%%
%%[Page: 11]%%
%%[Page: 12]%%
%%[Page: 13]%%
%%[Page: 14]%%
%%[Page: 15]%%
%%[Page: 16]%%
%%[Page: 17]%%
%%[Page: 18]%%
%%[Page: 19]%%
%%[Page: 20]%%
%%[Page: 21]%%
%%[Page: 22]%%
%%[Page: 23]%%
%%[Page: 24]%%
%%[Page: 25]%%
%%[Page: 26]%%
%%[Page: 27]%%
%%[ Error: undefined; OffendingCommand: pdfmark; ErrorInfo: Rect  ]%%
Stack:
/ANN
/Link
/Subtype
/M14.9.42153.Section.Title.Chapter.8.Installing.the.batteries
/D
/GoToR
/S
/Action
/Type
-dict-
/Action
[0 0 0]
/Border
[7305 2337 9000 2128]
/Rect
-mark-
%%[ Flushing: rest of job (to end-of-file) will be ignored ]%%
%%[ Warning: PostScript error. No PDF file produced. ] %%

Similar Messages

  • Table content disappearing when PDF'ing in FrameMaker 10

    Recently when I've pdf'd a book in FrameMaker 10, some of the content in the tables is missing. It can be either text or graphics and usually occurrs towards the start of the book, but it won't be throughout the book. This doesn't happen with every book, only the odd one, but is very frustrating.
    If I pdf the individual Frame file, it works perfectly, some of these files have been used in previous books and the books pdf'd OK with no problems. The computer is running Windows 7 with 12 GB of RAM.
    Any ideas?

    Actually, I had similar issue, but it was FM.  Occasionally, when I did a Save as PDF or Save as with HTML, FM went on for a few moment then stoped saving with an error message along the line: Cannot create <some file name>...  It kept doing the same thing for several tries until I deleted the previously generated files, then all would be well for a while, until the next time...  I don't know it had anything to do with the generated files (PDF or HTML) being opened on a web-browser at the moment.  Yet, as I remembered prior to that and verified afterward, in those times that went without such error, those files were being opened as well.  Thanks!
    PS: I'm using FrameMaker 11

  • Trying to create repeating table headings

    I am creating an Excel table with many rows. In Excel, I can "freeze" the headings so user can always see them even when scrolling far down.
    Is there any way to duplicate this behavior in a pdf or to repeat the table headings on every page when the table is viewed in Reader or when it is printed?
    Thanks,
    John

    You can also create the tables programmatically using the CatalogManager APIs - have a look at ftcmd=createtable.  There is a GSF facade over creating tables too which is really easy to work with:
    TableCreator (Sites GST: Site Foundation 11.6.0 API)
    and here's an example of how to use it (check out the install() method):
    https://github.com/dolfdijkstra/gst-foundation/blob/master/gsf-tagging/src/main/java/com/fatwire/gst/foundation/tagging/db/TableTaggingServiceImpl.java

  • How to add the rows formatted as table headings, Tables headings are repeated when a table spans more than one page.

    Hi all,
    i am facing problem while generating Test Result word document after successful execution of TestStand.
    The Problem is :
    i want to add rows Formatted as table headings, table headings are repeated when a table spans more than one page(marked as Red).
    Example:
    Page  No. 1
    |     Test case Number  |  Test Step number      |
    |      100                         |            100                   |
    Page  No. 2
    |     Test case Number  |  Test Step number      |
    |      200                         |            300                   |
    Test Result word document should generate with Table headings(marked as Red) in every pages of the document, but i am not getting as per above example.
    Please through light on this.
    Regards,
    Susa.

    Hi Santiago,
    Thank you very much for your valuable reply.
    i want to generate MS-word report for TestStand after successful testing using MS-word2000.
    Test report contains Actual values, Expected values and Pass/Fail status.
    In my program i have customized all  fields i can able to generate test report which contains Verification engineer name , test mode, test date, start time, end time Actual values, Expected values and Pass/Fail status.etc....
    To put all values of test case number, Test step number, Actual values, Expected values and Pass/Fail status in to table for each time, i will
    insert a row into table every time values arrives, once the table exceedes its page size it moves to the next page, next page should start with table row header  but it start with  values of above said parameters.
    so i'm not able to repeat table row header for each page.
    Please find the attached file for your reference.
    Attched file expected.doc  :   This file contains what i wanted to generate MS-word report. Here table row header "Test Case Number and Test Step Number " is repeated in second page.
    Attached file Actual output from source code.doc   :  This report generated from the source code. Here table row header "Test Case Number and Test Step Number" is not repeated in second page.
    Do you know any property to set "repeat as header row at the top of each page" using MS-word ActiveX in CVI/Labwindows.
    i think this information is sufficient for you,
    Still if you need some information please ask me.
    Thanks
    Susa.
    Attachments:
    Actual output from source code.doc ‏25 KB
    expected.doc ‏26 KB

  • Table borders offset in PDF output

    I am using RoboHelp HTML, version 9 and I need to deliver two outputs for my documentation: WebHelp and PDF.
    My table borders look the way I want them to in WebHelp and Word, single line and thin (1px).
    But when we go to PDF, I get two sets of lines, one all the way around my cells, another with gaps of white space.
    I think its something to do with 3d borders not getting totally eliminated.
    I've added "table-collapse: collapse;" to all my table styles.
    Any ideas?
    Note: If I create a table originally in Word with thin single line borders, it looks fine in PDF.
    Here's how it looks in WebHelp and Word...
    And then in PDF...

    Peter,
    Yes, as I mentioned in an earlier post, I really like the help design on your web site. I researched many looks in preparing for a new stylesheet project. Ended up emulating a lot of your elements rather than reinvent the wheel.
    Hope you are OK with that. Imitation is the sincerest form of flattery (definitely in my case).
    Anyhow, I figured out my problem. The CSS for my original tables was using 5px padding all around. In Word output, this gets converted to table cell margins.
    And that's what the PDF conversion doesn't like. Take out the original CSS padding--or the converted Word cell margins--and the problem goes away, leaving clean unbroken table lines in the PDF.
    Best regards.

  • ORDER BY - Table headings

    Hi Chaps,
    I have a DreamWeaver recordset:
    mysql_select_db($database_conndb2, $conndb2);
    $query_rsProjects = "SELECT tbl_projects.projid, tbl_projects.projtitle, tbl_customers.custname, tbl_projects.projstart, tbl_projects.projdue, tbl_projects.projstatus, tbl_projects.projstatus, DATE_FORMAT(tbl_projects.projstart, '%d/%m/%Y') as projstart_format, DATE_FORMAT(tbl_projects.projdue, '%d/%m/%Y') as projdue_format, tbl_projects.projpriority FROM tbl_projects, tbl_customers WHERE tbl_projects.FK_custid=tbl_customers.custid AND tbl_projects.projstatus!='Complete' ORDER BY projid ASC";
    $rsProjects = mysql_query($query_rsProjects, $conndb2) or die(mysql_error());
    $row_rsProjects = mysql_fetch_assoc($rsProjects);
    $totalRows_rsProjects = mysql_num_rows($rsProjects);
    The data is presented in a table:
    <table border="0" cellpadding="0" cellspacing="0" id="tblrepeat_proj">
          <caption>
            <img src="../Images/project.jpg" border="0" /><a href="project_add.php"><img src="../Images/new.jpg" border="0" /></a><a href="#" onclick="print()"><img src="../Images/print.jpg" border="0"/></a>
          </caption>
          <tr>
            <th scope="col">Order No.</th>
            <th scope="col">Document Name</th>
            <th scope="col">Customer</th>
            <th scope="col">Start Date</th>
            <th scope="col">Due Date</th>
            <th scope="col">Status</th>
            <th scope="col">Edit</th>
            <th scope="col">Remove</th>
          </tr>
          <?php do { ?>
          <td>
          <?php echo $row_rsProjects['projid']; ?></span></td>
              <td><a href="project_details.php?id=<?php echo $row_rsProjects['projid']; ?>"><?php echo $row_rsProjects['projtitle']; ?></a></td>
              <td><?php echo $row_rsProjects['custname']; ?></td>
              <td><?php echo $row_rsProjects['projstart_format']; ?></td>
              <td><?php echo $row_rsProjects['projdue_format']; ?></td>
              <td><?php echo $row_rsProjects['projstatus']; ?></span></td>
              <td><a href="project_edit.php?id=<?php echo $row_rsProjects['projid']; ?>">Edit</a></td>
              <td><a href="project_remove.php?id=<?php echo $row_rsProjects['projid']; ?>" onclick="tmt_confirm('Are%20you%20sure%20you%20want%20to%20delete%20this%20record?');retu rn document.MM_returnValue">Remove</a></td>
            </tr>
            <?php } while ($row_rsProjects = mysql_fetch_assoc($rsProjects)); ?>
        </table>
    Is it possible to use the table headings as the control for the ORDER BY in the SQL query?

    You can, but I find it usually more user friendly to use client side sorting for tables. It's much faster and easy to implement. Just search for client side table sort. Here's one example.
    http://www.glendinning.org/webbuilder/sortTable/

  • How to copy and paste a table and pictures from pdf files to word using MacBook pro 10.5.8

    Hi Guys,
    I want to copy tables out of a PDF document onto a word document. I only get the text and not the table when I copy and paste. I would also like to know how I can do the same with pictures or diagrams in PDF to word.
    Regards,
    Craig

    You can take picture of anyhting from any document using Command + Shift + 4. Hold all three at the same time and your mouse will turn into a little plus sign where you can then drag across anything you'd like to take picture of it. The picture will be placed on your desktop.
    See if that works for you.

  • Table of contents in PDF files

    IBooks gives two options for displaying the Table of Contents for PDF files—thumbnails or a conventional table. The thumbnails view is useless to me, and I would like the conventional table view to appear by default. Unfortunately, the TOC almost always appears in thumbnails view, and I have to manually select the list view.
    Is there any way to set the list view as the default TOC view for PDF files?
    Thanks.

    Hi Michael,
    When you combine files into a single PDF, each file you include will have a bookmark in the Bookmarks panel in Acrobat/Reader. So, I suppose you could treat that as a Table of Contents. (It doesn't, however, create a separate TOC and append it to the file.) The bookmark names reflect the filename of each file you combined.
    I hope that answers your question.
    Best,
    Sara

  • Table Headings in Pivot Table

    Hello Experts,
    is it possible to view Table Headings in Pivot Table Columns? If not is there a work around for this?
    Thank You
    Regards

    Hi ZaidN,
    We do not have any direct option to do this.
    But as a workaround, we can achieve this using the following approach.
    Add a column to the criteria. Use the following in the column formula.
    '<table width="100%" align="center" bordercolor="#C9CBD3"
    frame="void" rules="cols" cellpadding="0" cellspacing="0">
    <tr>
    <td align="center" width = "200">
    <font color = "black">'|| 'This Month' ||'</font>
    </td>
    <td align="center" width = "200">
    <font color = "black">'|| 'Accumulated YTD' ||'</font></td>
    </tr>
    </table>'Where This Month & Accumulated YTD are the table headings.
    Do not forget to change the Data Format to 'HTML'
    Place this column on top of measures labels in Columns Section.
    But, you need to fix the width of all the measure columns and adjust the <td> width accordingly.
    Hope it helps. :)
    Award points if this post helped you..
    Regards,
    Raghu

  • Table headings (tagged in paragraph tags) to be merged as a single entry in the TOC

    Hello, 
    I am working on a previous file done by somebody else. And here, I have the TOC as shown in screen shot below (which looks quiet normal).
    - The body page headings are placed in tables as shown in screen shot below.
    But, the entries when they appear in the TOC, they appear as one (IP31/42 T40) heading.
    How do we tag table headings (in different paragraph tags) and merge them as a single entry in the TOC.
    Also, suprising to note the paragraph tags are different in the TOC and different in the body (for the same headings).
    Below are the different paragraph tags that show up for the headings in the Table of contents:
    Below are the different paragraph tags that show up for the headings in the Table of contents:
    How do we tag table headings (in different paragraph tags) and merge them as a single entry in the TOC.
    Help much needed!!
    Please advice....
    Regards,

    You cannot have two paragraph styles in one paragraph, but you could use different styles in each cell of your table and include them all in the TOC.
    As far as using a different paragraph style for the lisitng in the TOC and the actual text that is picked up, that's very common. It allows you to find many different paragraph styles to include, but have the listings all look the same, and completley different from how the text looks in the body of the book. You'd problay not want 24 pt Bold TOC lisitngs, but that might be appropraite for section headings that you want to pick up.

  • Display Table Headings in 4 Layers..

    Hi All,
    Please help me in displaying the table heading in four layers..
    layer1 | X | Y | Z |
    layer2 | heading 1 | heading 2 | heading 3 | Heading 4 |
    Layer 3 | col name 1 | coln 2 | cl 3 | col 1 | heading 0 | col 1 | heading 0 | heading 1 |
    Layer 4 | | | col 0 | col2 | | col0 |col1 | col 0 | col 1 |
    Let me explain in detail
    in the table heading row 1 we have --> x , y , z
    second row --> x - Heading 1, Heading 2
    in X heading 1 has column name .. heading 2 has two columns which are column names
    Y section has one heading -> Heading has two cols -> second col has two cols
    Z section has one heading -> Heading as three cols -> Col1 direct column name , remaing two heading has two cols each..
    Pelase guide me how to achieve this type of table format..
    Thanks in advance
    Sri

    Hi,
    Try this.
    Table heading:-
    We do not have any direct option to do this.
    But as a workaround, we can achieve this using the following approach.
    Add a column to the criteria. Use the following in the column formula.
    '<table width="100%" align="center" bordercolor="#C9CBD3"
    frame="void" rules="cols" cellpadding="0" cellspacing="0">
    <tr>
    <td align="center" width = "200">
    '|| 'This Month' ||' </td>
    <td align="center" width = "200">
    '|| 'Accumulated YTD' ||'</td>
    </tr>
    </table>'
    Where This Month & Accumulated YTD are the table headings.
    Do not forget to change the Data Format to 'HTML'
    Place this column on top of measures labels in Columns Section.
    But, you need to fix the width of all the measure columns and adjust the <td> width accordingly.
    "Display Column & Table Headings" equivalent for pivot tables?
    Hope this help's
    Thanks,
    Satya

  • Table toolbar disappeared in the screen reader mode in Oracle ADF

    I have a validation message box(pop up) opening from a button action from page fragment(jsff) page and in screen reader mode the message box shows up as default on the same page instead of pop up message box and
    and below the message box there is this message information "Press escape to exit this popup." and when I click ESC key it then shows up the main default page with the table toolbar disappeared. In the screen reader mode the ADF framework is taking total control over the showing message box as default on the same page instead of pop up message box and showing below message " Press escape to exit this popup.". My question is how to edit this page and is there any way to get rid of below message information. I also want to know does ADF provide any API in screen reader mode to control the table toolbar disappearing. I really appreciate any help or advice or any work around to solve this issue.
    Eagerly waiting for the response.
    Thanks in advance

    I'm using JDeveloper 11g (11.1.1.4.0) which has come with accessibility feature(screen reader mode). I have no idea of which version of screen reader that Jdeveloper IDE has.
    I use IE 7 browser and it is mandatory I have to use IE7 browser for this project. All I need help is how to get control of web page( jspff) when we use in accessibility mode. we configure like this
    in trinidad-config.xml file.
    <?xml version="1.0" encoding="windows-1252"?>
    <trinidad-config xmlns="http://myfaces.apache.org/trinidad/config">
    <skin-family>myskin</skin-family>
    <accessibility-mode>#{accessibility.accessibilityMode}</accessibility-mode>
    </trinidad-config>
    for example like in this jspff file :
    <af:panelStretchLayout
    id="panelStretchLayout1" topHeight="#{accessibility.accessibilityMode == 'screenReader' ? '137px' : 'auto'}"
    startWidth="auto">
    <af:panelCollection binding="#{backingBeanScope.backing_pageFragements_.panelCollection2}"
    id="panelCollection2">
    <f:facet name="menus"/>
    <f:facet name="toolbar">
    <af:toolbar binding="#{backingBeanScope.backing_pageFragements_.toolbar1}"
    id="toolbar1"
    shortDesc="Toolbar">
    I'm using like this, let me know I'm doing correct or is there any other way we can do to avoid toolbar to disappear.
    I appreciate your help.

  • How to export an entire model content (tables and charts) to pdf

    Hello,
    I would like to export a complete model, which includes tables and charts, to pdf.
    I am already familiar with [this|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/47fe4fef-0d01-0010-6f87-ed8ecb479123] tutorial but it explains how to do it for a single table and doesn't deal with charts. What I would like to do is take like a screenshot of the entire iView/model content to pdf.

    Hi, rbish-
    Not for the entire stage.  The only thing you could do is to highlight everything and convert it to a symbol, then ensure that you move your triggers and labels to the new symbol.  Then you could export an individual symbol, which will also package all of the dependent symbols.
    Hope that helps,
    -Elaine

  • How to export sql table data to Excel/PDf using Storedprocedure?

    Hi ,
            I have one table in sqlserver2008R2 that named "Customer" so that table hold the 1 Lac rows. Now I want send this table data to Excel/pdf with Columns using Storedprocedure.
       I have tried this using xp_cmdshell so This is not working for me.
    finally i want to get data in Excel and pdf also.
    Please guide me

    You can actually run an Excel Macro to grab the data from the SQL Server DB.  Below are some samples.
    Sub ADOExcelSQLServer()
    ' Carl SQL Server Connection
    ' FOR THIS CODE TO WORK
    ' In VBE you need to go Tools References and check Microsoft Active X Data Objects 2.x library
    Dim Cn As ADODB.Connection
    Dim Server_Name As String
    Dim Database_Name As String
    Dim User_ID As String
    Dim Password As String
    Dim SQLStr As String
    Dim rs As ADODB.Recordset
    Set rs = New ADODB.Recordset
    Server_Name = "Excel-PC\SQLEXPRESS" ' Enter your server name here
    Database_Name = "Northwind" ' Enter your database name here
    User_ID = "" ' enter your user ID here
    Password = "" ' Enter your password here
    SQLStr = "SELECT * FROM dbo.Orders" ' Enter your SQL here
    Set Cn = New ADODB.Connection
    Cn.Open "Driver={SQL Server};Server=" & Server_Name & ";Database=" & Database_Name & _
    ";Uid=" & User_ID & ";Pwd=" & Password & ";"
    rs.Open SQLStr, Cn, adOpenStatic
    ' Dump to spreadsheet
    With Worksheets("sheet1").Range("a1:z500") ' Enter your sheet name and range here
    .ClearContents
    .CopyFromRecordset rs
    End With
    ' Tidy up
    rs.Close
    Set rs = Nothing
    Cn.Close
    Set Cn = Nothing
    End Sub
    Sub ADOExcelSQLServer()
    Dim Cn As ADODB.Connection
    Dim Server_Name As String
    Dim Database_Name As String
    Dim User_ID As String
    Dim Password As String
    Dim SQLStr As String
    Dim rs As ADODB.Recordset
    Set rs = New ADODB.Recordset
    Server_Name = "LAPTOP\SQL_EXPRESS" ' Enter your server name here
    Database_Name = "Northwind" ' Enter your database name here
    User_ID = "" ' enter your user ID here
    Password = "" ' Enter your password here
    SQLStr = "SELECT * FROM Orders" ' Enter your SQL here
    Set Cn = New ADODB.Connection
    Cn.Open "Driver={SQL Server};Server=" & Server_Name & ";Database=" & Database_Name & _
    ";Uid=" & User_ID & ";Pwd=" & Password & ";"
    rs.Open SQLStr, Cn, adOpenStatic
    With Worksheets("Sheet1").Range("A2:Z500")
    .ClearContents
    .CopyFromRecordset rs
    End With
    rs.Close
    Set rs = Nothing
    Cn.Close
    Set Cn = Nothing
    End Sub
    Sub TestMacro()
    ' Create a connection object.
    Dim cnPubs As ADODB.Connection
    Set cnPubs = New ADODB.Connection
    ' Provide the connection string.
    Dim strConn As String
    'Use the SQL Server OLE DB Provider.
    strConn = "PROVIDER=SQLOLEDB;"
    'Connect to the Pubs database on the local server.
    strConn = strConn & "DATA SOURCE=(local);INITIAL CATALOG=NORTHWIND.MDF;"
    'Use an integrated login.
    strConn = strConn & " INTEGRATED SECURITY=sspi;"
    'Now open the connection.
    cnPubs.Open strConn
    ' Create a recordset object.
    Dim rsPubs As ADODB.Recordset
    Set rsPubs = New ADODB.Recordset
    With rsPubs
    ' Assign the Connection object.
    .ActiveConnection = cnPubs
    ' Extract the required records.
    .Open "SELECT * FROM Categories"
    ' Copy the records into cell A1 on Sheet1.
    Sheet1.Range("A1").CopyFromRecordset rsPubs
    ' Tidy up
    .Close
    End With
    cnPubs.Close
    Set rsPubs = Nothing
    Set cnPubs = Nothing
    End Sub
    Finally, you can run a SProc in SQL Server, from Excel, if you want the SProc to do the export.
    Option Explicit
    Sub Working2()
    'USE [Northwind]
    'GO
    'DECLARE @return_value int
    'EXEC @return_value = [dbo].[TestNewProc]
    ' @ShipCountry = NULL
    'SELECT 'Return Value' = @return_value
    'GO
    Dim con As Connection
    Dim rst As Recordset
    Dim strConn As String
    Set con = New Connection
    strConn = "Provider=SQLOLEDB;"
    strConn = strConn & "Data Source=LAPTOP\SQL_EXPRESS;"
    strConn = strConn & "Initial Catalog=Northwind;"
    strConn = strConn & "Integrated Security=SSPI;"
    con.Open strConn
    'Put a country name in Cell E1
    Set rst = con.Execute("Exec dbo.TestNewProc '" & ActiveSheet.Range("E1").Text & "'")
    'The total count of records is returned to Cell A5
    ActiveSheet.Range("A5").CopyFromRecordset rst
    rst.Close
    con.Close
    End Sub
    Sub Working()
    'USE [Northwind]
    'GO
    'DECLARE @return_value int
    'EXEC @return_value = [dbo].[Ten Most Expensive Products]
    'SELECT 'Return Value' = @return_value
    'GO
    Dim con As Connection
    Dim rst As Recordset
    Set con = New Connection
    con.Open "Provider=SQLOLEDB;Data Source=LAPTOP\SQL_EXPRESS;Initial Catalog=Northwind;Integrated Security=SSPI;"
    Set rst = con.Execute("Exec dbo.[Ten Most Expensive Products]")
    'Results of SProc are returned to Cell A1
    ActiveSheet.Range("A1").CopyFromRecordset rst
    rst.Close
    con.Close
    End Sub
    Knowledge is the only thing that I can give you, and still retain, and we are both better off for it.

  • Extract data from database tables and download in pdf and csv

    extract data from database tables and download in pdf and csv
    hi how can i re-write my old form procedure in adf java. the procedure used to extract data from diffirent table and dowload the data in pdf and csv.am not downloading image, i what to extract data from diffirent tables in my database and download that data in pdf and csv. i would like to write this in java adf.i just what direction am not asking anyone to do my work this is my learning curve
    the form code is
    function merge_header3 return varchar2 is
    begin
         return '~FACILITY DESCRIPTION~ACCOUNT NO~BRANCH CODE~BANK REF NO.~P/P/ AMOUNT~Postal Address 1~Postal Address 2~Box Postal Code~Dep. Date~Month~BANK NAME~BRANCH NAME~ACCOUNT TYPE~DESCRIPTION~OBJECTIVE DESCRIPTION';
    end;
    procedure download_file (i_pbat integer) is
      dir varchar2(80);
      file_name1 varchar2(80);
      file_name2 varchar2(80);
      appl_code varchar2(80);
      fil1 client_text_io.file_type;
      fil2 client_text_io.file_type;
      dat varchar2(1000);
      DATA VARCHAR2(1000);
      bvspro varchar2(100);
      ssch   varchar2(100);
      bvspro_total number(20,2);
      ssch_total   number(20,2);
      grand_total  number(20,2);
      cnt    integer;
      cursor pbat is
           select *
           from sms_payment_batches
           where id = i_pbat
      cursor pay  (pb_id integer) is
           select *
           from sms_payment_vw
           where pbat_id = pb_id
           order by subsidy ASC,programme,beneficiary_name
      cursor cgref (low varchar2) is
           select *
           from cg_ref_codes
           where rv_domain ='SMS'
           and rv_low_value = low
      success boolean;     
      begin  
           set_application_property(cursor_style,'busy');
           appl_code := sms_global.ref_code('SMS','APP_CODE','SMS',0);
        dir       := sms_global.ref_code('SMS','PAY_DIR','c:\sms\batch_payments',0);
             success := webutil_file.create_directory(dir);
         if webutil_file.file_is_directory(dir) then
             null;
    --         message ('directory exists');
        else
    --                  message ('create directory ');
             success := webutil_file.create_directory(dir);
    --         if success then        message ('directory exists');    end if;
        end if;     
        for c_pbat in pbat loop
             file_name1 := dir ||'\' || appl_code||c_pbat.batch_number||'-'||to_char(c_pbat.batch_dt,'yyyymmdd')||'pay.txt';
             file_name2 := dir ||'\' || appl_code||c_pbat.batch_number||'-'||to_char(c_pbat.batch_dt,'yyyymmdd')||'merge.txt';
    --message('create files ');
    --         fil1  := client_text_io.fopen (file_name1,'W');
    --         fil2  := client_text_io.fopen (file_name2,'W');
        fil1  := client_text_io.fopen (file_name1,'W','');
        fil2  := client_text_io.fopen (file_name2,'W','');
                   dat :=                       'FROM ACCOUNT NUMBER'
                                                                ||'~'||'FROM ACCOUNT DESCRIPTION'
                                                                ||'~'||'MY STATEMENT DESCRIPTION'
                                                                ||'~'||'BENEFICIARY ACCOUNT NUMBER'
                                                                ||'~'||'BENEFICIARY SUB ACCOUNT NUMBER'        
                                                                ||'~'||'BENEFICIARY BRANCH CODE'
                                                                ||'~'||'BENEFICIARY NAME'
                                                                ||'~'||'BENEFICIARY STATEMENT DESCRIPTION'
                                                                ||'~'||'AMOUNT';
             --     client_text_io.put_line(fil1,dat);
             bvspro:= null;
             ssch  := null;
             cnt := 0;     
             dat := '~'||lpad('~',16,'~');
             for c_pay in pay(c_pbat.id) loop
    --message('cpay loop ' || cnt);              
               if bvspro is null then
                     dat := lpad('~',16,'~');
                     dat := utility.put_field(1,c_pay.programme,dat,'~');     
               client_text_io.put_line(fil2,dat);
               dat := utility.put_field(1,c_pay.subsidy,dat,'~');
               client_text_io.put_line(fil2,dat);
               dat := merge_header3;
                     client_text_io.put_line(fil2,dat);
                     bvspro := c_pay.programme;
                     ssch := c_pay.subsidy;
                     grand_total := 0;
                     bvspro_total := 0;
                     ssch_total := 0;
               end if;
               if bvspro <> c_pay.programme then
                     dat := lpad('~',16,'~');
                     dat := utility.put_field(5,ssch_total,dat,'~');
                     dat := lpad('~',16,'~');
                     dat := utility.put_field(5,bvspro_total,dat,'~');
               dat := utility.put_field(1,'Total:' || bvspro,dat,'~');
                     client_text_io.put_line(fil2,dat);
                     dat := lpad('~',16,'~');
               client_text_io.put_line(fil2,dat);
                     dat := utility.put_field(1,c_pay.programme,dat,'~');     
               client_text_io.put_line(fil2,dat);
                     bvspro := c_pay.programme;
               dat := utility.put_field(1,c_pay.subsidy,dat,'~');
               client_text_io.put_line(fil2,dat);
               dat := merge_header3;
                     client_text_io.put_line(fil2,dat);
                     bvspro := c_pay.programme;
                     ssch := c_pay.subsidy;
                     bvspro_total := 0;
                     ssch_total := 0;
                     cnt :=0;
             end if;                           
               if ssch <> c_pay.subsidy then
                     dat := lpad('~',16,'~');
                     dat := utility.put_field(5,ssch_total,dat,'~');
                     dat := lpad('~',16,'~');
               client_text_io.put_line(fil2,dat);
               dat := utility.put_field(1,c_pay.subsidy,dat,'~');
               client_text_io.put_line(fil2,dat);
               dat := merge_header3;
                     client_text_io.put_line(fil2,dat);
                     ssch := c_pay.subsidy;
                     ssch_total := 0;
                     cnt :=0;
             end if;                           
            bvspro_total := bvspro_total + c_pay.amount;
            ssch_total   := ssch_total   + c_pay.amount;              
                  grand_total  := grand_total  + c_pay.amount;              
            cnt := cnt +1;
    --message('bfore write file 2 ' );              
            client_text_io.put_line(fil2
                                   ,cnt
                            ||'~'|| c_pay.beneficiary_name
                                                                ||'~'||c_pay.BENEFICIARY_ACCOUNT_NUMBER ||''            
                                                                ||'~'||c_pay.BRANCH_CODE             ||''           
                                                                ||'~'|| c_pay.BENEFICIARY_STATEMENT_DESC            
                                                                ||'~'|| c_pay.AMOUNT                                
                            ||'~'|| c_pay.address_line1
                            ||'~'|| c_pay.address_line2
                                                    ||'~'|| c_pay.postal_code
                                                    ||'~'|| TO_CHAR(c_pay.deposit_date,'DD-Mon-YYYY')
                                                    ||'~'|| c_pay.month
                                                    ||'~'|| c_pay.bank
                                                    ||'~'|| c_pay.bank_branch
                                                    ||'~'|| c_pay.account_type
                                                    ||'~'|| c_pay.subsidy
                                                    ||'~'|| c_pay.programme)
                  DATA :=                                  c_pay.FROM_ACCOUNT_NUMBER                   
                                                                ||'~'||c_pay.FROM_ACCOUNT_DESCR                    
                                                                ||'~'||c_pay.MY_STATEMENT_DESCR                    
                                                                ||'~'||c_pay.BENEFICIARY_ACCOUNT_NUMBER
                                                                ||'~'
                                                                ||'~'||c_pay.BRANCH_CODE            
                                                                ||'~'||c_pay.BENEFICIARY_NAME                      
                                                                ||'~'||c_pay.BENEFICIARY_STATEMENT_DESC            
                                                                ||'~'||c_pay.AMOUNT;                                
            DATA := REPLACE(DATA, ',' , ' ' );
            DATA := REPLACE(DATA, '~' , ',' );
    --message (cnt ||' ' || data);       
    --message('bfore write file 1 ' );              
                  client_text_io.put_line(fil1, data);
             end loop;
    --message ('end of write');         
                 dat := lpad('~',16,'~');
                 dat := utility.put_field(6,ssch_total,dat,'~');
                 dat := lpad('~',16,'~');
           dat := utility.put_field(1,'Total:' || bvspro,dat,'~');
                 dat := utility.put_field(5,bvspro_total,dat,'~');
              client_text_io.put_line(fil2,dat);
              dat := lpad('~',16,'~');
           client_text_io.put_line(fil2,dat);
           dat := utility.put_field(1,'Grand Total:' ,dat,'~');
                 dat := utility.put_field(5,grand_total,dat,'~');
              client_text_io.put_line(fil2,dat);
             -- close file
    for i in 1..50 loop  
           if substr(i,-1) = 0 then
                 message ('flush ' || i);
           end if;                 
                  client_text_io.put_line(fil1, lpad(' ',2000));
                  client_text_io.put_line(fil2, lpad(' ',2000));
                  client_text_io.put_line(fil1, lpad(' ',2000));
                  client_text_io.put_line(fil2, lpad(' ',2000));
    end loop;
             client_text_io.fclose(fil1);
             client_text_io.fclose(fil2);
        end loop;
       set_application_property(cursor_style,'default');
        exception
             when others then
                  message(sqlcode ||' ' ||sqlerrm);
       end download_file;    i try this but this code onlydownload image not data from database tables
        public void downloadImage(FacesContext facesContext, OutputStream outputStream)
            BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry();
            // get an ADF attributevalue from the ADF page definitions
            AttributeBinding attr = (AttributeBinding) bindings.getControlBinding("DocumentImage");
            if (attr == null)
                return;
            // the value is a BlobDomain data type
            BlobDomain blob = (BlobDomain) attr.getInputValue();
            try
            {   // copy the data from the BlobDomain to the output stream
                IOUtils.copy(blob.getInputStream(), outputStream);
                // cloase the blob to release the recources
                blob.closeInputStream();
                // flush the output stream
                outputStream.flush();
            catch (IOException e)
                // handle errors
                e.printStackTrace();
                FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_ERROR, e.getMessage(), "");
                FacesContext.getCurrentInstance().addMessage(null, msg);
            }

    You should ask your forum in the ADF-forum.

Maybe you are looking for

  • Clicking noise from left side of body?

    There's an incessant clicking noise coming from the left side of my macbook, about once a second, not from the speaker. I can't tell if it's the top or bottom, but bottom is my guess. What is causing this/should I be worried about it?

  • Deleting "Duplicates" quickly in my itunes library

    I have over one thousand "Duplicates" in my itunes library. They are AIFF and AAC or both. I want to quickly delete all the duplicates, focusing on getting ride of compressed files first. Is there a way?

  • BEx Web Printing - Default Page size

    Hi All, Is it possible to change the Default Page size in Web Printing options. Currently SAP have A4 as the default page size. Thanks Niveda

  • Off Cycle Work Bench Error

    Hello, My client was processing a replacement check, and she recieved the error: " No Payment Selected from Preliminary Data Medium Exchange Program" I manually tried running the DME program, but she is still unable to process the replacement check.

  • Problema flex pantalla

    buenas a todos tengo un lenovo g510 que de hace unas semanas para aqui me esta dando problemas de pantalla, segun como la oriente se ve bien o se ve mal, en un monitor externo se ve bien ya se por cable hdmi o vga. creo que es el cable flex que esta