Remove Column Headers in FlexUi Layout

HI,
I am displaying a Km folder using flexui layout....I am using the following components,
Layout Controller:GridListLayoutController
and the modifed versions of ConsumerFileListRenderer and ConsumerResourceRenderer.
The resources are getting displayed as list items, but I want to remove the column headers.
Please help me!
Regards,
Sandip

Hi Sandip,
You should try to use 'noTitle' modifier for displayed properties of your resources on the list. Column header will be not shown for properties with this modifier. Here is na example:
description(noTitle),
Column with description property will be shown without header.
Regards,
Michal

Similar Messages

  • Remove Column Headers from a JTable in a JScrollPane

    Hi,
    I'm just wondering how to remove the column headers from a JTable in a JScrollPane.

    Here are two ways to do it, with different visual outcomes...
    import javax.swing.*;
    public class Test {
        public static void main(String[] args) {
            Object[][] rowData = {{"A", "B"}, {"C", "D"}};
            Object[] columnNames = {"col 1", "col 2"};
            JTable table1 = new JTable(rowData, columnNames);
            table1.getTableHeader().setVisible(false);
            JScrollPane sp1 = new JScrollPane(table1);
            JTable table2 = new JTable(rowData, columnNames);
            final JScrollPane sp2 = new JScrollPane(table2);
            JPanel contentPane = new JPanel();
            contentPane.add(sp1);
            contentPane.add(sp2);
            final JFrame f = new JFrame();
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.setContentPane(contentPane);
            f.pack();
            SwingUtilities.invokeLater(new Runnable(){
                public void run() {
                    sp2.setColumnHeader(null);
                    f.setLocationRelativeTo(null);
                    f.setVisible(true);
    }

  • Can you remove column headers from report downloads?

    I'd like to remove the column header from the report downloads. For example, the report download file currently looks like:
    EMPNO,ENAME
    7839, KING
    7698, BLAKE
    Where as I'd like it to just be:
    7839, KING
    7698, BLAKE
    Does anyone know if this is possible?
    Thank you,
    Martin
    http://www.talkapex.com

    There is a work around that I used before:
    - Create a new page.
    - create a report region and copy your origional report query in it
    - in report attributes >> choose no header
    - in report attributes >> choose "CVS report" as your new report tempate.
    - go back to your origional report, create a button in that page ( call it EXPORT ) that submits as EXPORT
    - create a conditional branch that goes to your new report page , make it conditional ( when EXPORT button is clicked)
    This way, you will have a new EXPORT button on top ( or whereever you want ) of you report, when you click on it , it shows a download prompt for your export , the export won't have headers..
    Sam

  • How do I get the layout guides (A,B,C column headers and 1,2,3 Row Headers) to print with my spreadsheet?

    How do I get the Layout Guides (A,B,C column headers and 1,2,3 Row Headers) to print on my spreadsheet? They are invaluable for discussing the data with my clients over the phone.
    They appear while I am editing, but don't print with the spreadsheet. I know how to do it in Excel, but I am transitioning to Numbers. I can't imagine I have to type them into their own columns and rows. It must be a difference in vernacular that I can't find the solution in the User Guide. Can anyone help?

    Hi ktjobauer,
    Numbers is not Excel and Excel is not Numbers. Numbers is WYSIWYG (at least in File > Print and the actual printout).
    I can't imagine I have to type them into their own columns and rows.
    No, you don't. You can use the charm of Numbers to create cell references for your Excel clients.
    In this Numbers Table, I have added some extra Columns that you can hide later.
    Column B =COLUMN(A2)
    Column C =HLOOKUP(B2,'Table 1-1' :: $1:$2,2,FALSE)      [explanation later]
    Column D =ROW(B2)
    Column E =C2&D2
    Add those formulas to the first Body Row (below the Header Row) and Fill Down.
    Column C refers to another Table which you need only create once, to convert a Column number to a letter:
    and so on from 1-26, A-Z.
    You can move the second Table to another Sheet to hide it. Formulas will automatically adjust to keep the links between Sheets.
    Now in the first Table, select and Hide Columns B,C,D. Formulas will continue to work with hidden cells:
    Regards,
    Ian.

  • Hiding the column headers in boxed view

    I've created a custom list that I'm displaying in boxed view.  Here's a sample of the columns:
    Business Systems Manager
    Project lead
    Project number
    SFA?
    Etc...
    In boxed view, it displays like I have it here - vertical.  The names of the people and info display next to each item. 
    However, the web part is still displaying the column headings across the page like in this example:
    Business Systems Manager - Project Lead - Project Number - SFA? - etc...
    Some of my custom lists carry on for 12 or 13 columns and the main page view has about 6 or 7 of them so needless to say, the extra real estate the column headers (which are completely redundant because the column heading info is IN the boxed view!!!) are taking up is killing the layout of the page.
    Is there anyway to remove the column headers from the boxed view with out of the box Sharepoint?   Or is Designer required?
    Thanks!
    Lorraine

    This worked well for me:
    1) Add a Content Editor Web Part
    2) Click Source Editor
    3) Enter the following code:
    [css] <style> .ms-viewheadertr { display: none;} </style> [/css]
    4) Select Save
    5) Go to Layout and Select 'Hidden' 

  • TableView column headers do not line up with rows

    Right now I have a tableview with column headers that are wider than the cells in the rows of the table.
    Anyone know what property or css style I need to adjust to give the cells a little more padding? I have not had any luck searching the web or these forums.
    Edited by: astep on Feb 26, 2013 6:59 AM

    Sorry it took me a little bit to strip things down and create the project. I used NetBeans to reproduce the effect and I tried to follow the same pattern in case it had a side effect. Sorry there is so much code here for such a simple demo. I'm going to play around with it some to see if removing some of the css eliminates the effect.
    Sample.fxml
    <?xml version="1.0" encoding="UTF-8"?>
    <?import java.lang.*?>
    <?import java.util.*?>
    <?import javafx.scene.*?>
    <?import javafx.scene.control.*?>
    <?import javafx.scene.layout.*?>
    <AnchorPane fx:id="ConstraintsAnchorPane" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="460.0" prefWidth="480.0" style="-fx-background-color:black" xmlns:fx="http://javafx.com/fxml" fx:controller="testtableview.SampleController">
      <children>
        <TitledPane fx:id="ConstraintsTitlePane" alignment="CENTER" animated="false" collapsible="false" contentDisplay="CENTER" opacity="0.75" text="Constraints by Stream Class">
          <content>
            <TableView fx:id="constraintsTableView" prefHeight="445.0" prefWidth="480.0" />
          </content>
        </TitledPane>
      </children>
    </AnchorPane>stylesheet.css
    .root {
    -fx-base: rgb(50, 50, 50);
    -fx-background: rgb(50, 50, 50);
    -fx-control-inner-background:  rgb(50, 50, 50);
    .table-view {
    -fx-table-cell-border-color:derive(-fx-base,+10%);
    -fx-table-header-border-color:derive(-fx-base,+20%);
    .text-field{
         -fx-prompt-text-fill: White;
    .table-cell {
         -fx-border-color: black;
    .table-cell:hover {
         -fx-background: DimGray;
         -fx-background-color: DimGray;
    .table-cell:selected {
         -fx-background: DimGray;
         -fx-background-color: DimGray;
    .table-row-cell {
         -fx-border-color: black;
         -fx-control-inner-background: black;
    .table-row-cell:hover {
         -fx-background: DimGray;
         -fx-background-color: DimGray;
    .table-row-cell:selected {
         -fx-background: DimGray;
         -fx-background-color: DimGray;
    }TestTableView.java
    package testtableview;
    import javafx.application.Application;
    import javafx.fxml.FXMLLoader;
    import javafx.scene.Parent;
    import javafx.scene.Scene;
    import javafx.stage.Stage;
    public class TestTableView extends Application {
        @Override
        public void start(Stage stage) throws Exception {
            Parent root = FXMLLoader.load(getClass().getResource("Sample.fxml"));
            Scene scene = new Scene(root);
            stage.setScene(scene);
            scene.getStylesheets().add(TestTableView.class.getResource("stylesheet.css").toExternalForm());
            stage.show();
        public static void main(String[] args) {
            launch(args);
    }Model.java
    package testtableview;
    import javafx.beans.property.SimpleStringProperty;
    import javafx.collections.FXCollections;
    import javafx.collections.ObservableList;
    public class Model {
         private static Constraint temp = new Constraint();
         private static Model instance = null;
         private Model() {
         public static Model getInstance() {
              if (instance == null) {
                   instance = new Model();
                   constraintsList.add(temp);
              return instance;
         private static ObservableList<Constraint> constraintsList = FXCollections
                   .observableArrayList();
         public ObservableList<Constraint> getConstraintsList() {
              return constraintsList;
         public static class Constraint {
              private SimpleStringProperty ColumnOne = null;
              private SimpleStringProperty ColumnTwo = null;
              private SimpleStringProperty ColumnThree = null;
              private SimpleStringProperty ColumnFour = null;
              private SimpleStringProperty ColumnFive = null;
              private SimpleStringProperty ColumnSix = null;
              private SimpleStringProperty ColumnSeven = null;
              public String getColumnOne() {
                   return ColumnOne.get();
              public void setColumnOne(String input) {
                   ColumnOne.set(input);
              public String getColumnTwo() {
                   return ColumnTwo.get();
              public void setColumnTwo(String input) {
                   ColumnTwo.set(input);
              public String getColumnThree() {
                   return ColumnThree.get();
              public void setColumnThree(String input) {
                   ColumnThree.set(input);
              public String getColumnFour() {
                   return ColumnFour.get();
              public void setColumnFour(String input) {
                   ColumnFour.set(input);
              public String getColumnFive() {
                   return ColumnFive.get();
              public void setColumnFive(String input) {
                   ColumnFive.set(input);
              public String getColumnSix() {
                   return ColumnSix.get();
              public void setColumnSix(String input) {
                   ColumnSix.set(input);
              public String getColumnSeven() {
                   return ColumnSeven.get();
              public void setColumnSeven(String input) {
                   ColumnSeven.set(input);
              public Constraint() {
                   this.ColumnOne = new SimpleStringProperty("");
                   this.ColumnTwo = new SimpleStringProperty("");
                   this.ColumnThree = new SimpleStringProperty("");
                   this.ColumnFour = new SimpleStringProperty("");
                   this.ColumnFive = new SimpleStringProperty("");
                   this.ColumnSix = new SimpleStringProperty("");
                   this.ColumnSeven = new SimpleStringProperty("");
    }ConstraintsTableViewModel.java
    package testtableview;
    import testtableview.Model.Constraint;
    import javafx.collections.FXCollections;
    import javafx.collections.ObservableList;
    import javafx.scene.control.TableColumn;
    import javafx.scene.control.TableView;
    import javafx.scene.control.cell.PropertyValueFactory;
    public class ConstraintsTableViewModel {
         private static TableView<Constraint> table = new TableView<Constraint>();
         private static ObservableList<TableColumn<Constraint, String>> columnList = FXCollections
                   .observableArrayList();
         public static TableView<Constraint> setupView() {
              TableColumn<Constraint, String> ColumnOneCol = new TableColumn<Constraint, String>("Example Exam1");
              ColumnOneCol.setMinWidth(95.0);
              ColumnOneCol.setCellValueFactory(new PropertyValueFactory<Constraint, String>("ColumnOne"));
              columnList.add(ColumnOneCol);
              TableColumn<Constraint, String> ColumnTwoCol = new TableColumn<Constraint, String>("Example 2");
              ColumnTwoCol.setMinWidth(55.0);
              ColumnTwoCol.setCellValueFactory(new PropertyValueFactory<Constraint, String>("ColumnTwo"));
              columnList.add(ColumnTwoCol);
              TableColumn<Constraint, String> ColumnThreeCol = new TableColumn<Constraint, String>("Example3");
              ColumnThreeCol.setCellValueFactory(new PropertyValueFactory<Constraint, String>("ColumnThree"));
              ColumnThreeCol.setMinWidth(70);
              columnList.add(ColumnThreeCol);
              TableColumn<Constraint, String> ColumnFourCol = new TableColumn<Constraint, String>("Example4");
              ColumnFourCol.setMinWidth(60.0);
              ColumnFourCol.setCellValueFactory(new PropertyValueFactory<Constraint, String>("ColumnFour"));
              columnList.add(ColumnFourCol);
              TableColumn<Constraint, String> ColumnFiveCol = new TableColumn<Constraint, String>("Example5");
              ColumnFiveCol.setMinWidth(60.0);
              ColumnFiveCol.setCellValueFactory(new PropertyValueFactory<Constraint, String>("ColumnFive"));
              columnList.add(ColumnFiveCol);
              TableColumn<Constraint, String> ColumnSixCol = new TableColumn<Constraint, String>("Example6");
              ColumnSixCol.setCellValueFactory(new PropertyValueFactory<Constraint, String>("ColumnSix"));
              ColumnSixCol.setMinWidth(55);
              columnList.add(ColumnSixCol);
              TableColumn<Constraint, String> ColumnSevenCol = new TableColumn<Constraint, String>("Exam7");
              ColumnSevenCol.setCellValueFactory(new PropertyValueFactory<Constraint, String>("ColumnSeven"));
              ColumnSevenCol.setMinWidth(55);
              columnList.add(ColumnSevenCol);
              table.getColumns().addAll(columnList);
              return table;
    }SampleController.java
    package testtableview;
    import testtableview.Model.Constraint;
    import java.net.URL;
    import java.util.ResourceBundle;
    import javafx.fxml.FXML;
    import javafx.fxml.Initializable;
    import javafx.scene.control.TableView;
    public class SampleController implements Initializable {
        @FXML
         private TableView<Constraint> constraintsTableView;
         private Model cm = null;
        @Override
        public void initialize(URL url, ResourceBundle rb) {
            cm = Model.getInstance();
         constraintsTableView.setItems(cm.getConstraintsList());
         constraintsTableView.getColumns().addAll(ConstraintsTableViewModel.setupView().getColumns());
    }

  • Repeated column headers in Crosstab report when exported to Excel

    I have created a Cross tab report and wanted to export it in the format "Microsoft Excel(97-2003) (*.xls)", as the formatting of the report is lost in Excel  Data Only format. But when I export the data the column headers are repeated in the Excel. Is there any solution to avoid repeated column headers without losing the formatting of layout?

    I suppose one answer we should have before anything else;
    Does the export work from the CR designer?
    You may also want to see the following:
    How to WYSIWYG SAP Crystal Reports Export to XLS
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • Freeze column headers in WAD

    Hi,
    I developed a web layout in the WAD.
    For my analysis grid, I want to freeze my column headers so when I scroll down, I still can see my column headers.
    We can't work with XHTML-frames because the width of our first column changes...
    Anybody an idea?
    (BW 7.0, GUI 7.10, SP3)
    Ciao
    Joke

    Hi,
    there is a similar thread which may help you..
    Freeze Panes in web reports
    Regards,
    Aparna

  • JTable column headers missing

    I created a JTable using:
    JTable table = new JTable(v,cN);
    where v is my vector that holds the data and cN is a vector to hold the column names as below:
    Vector cN = new Vector();
         cN.add("Registry Keys");
         cN.add("Program Name");
         cN.add("Key Type");
         cN.add("Drive");
         cN.add("Location");
         cN.add("Leave");It displays the table fine with the data and as I add or remove entries in the cN vector it adds and removes columns - but doesn't display column headers? Any help appreciated.

    Are you using a scrollpane? If not, you have to get the Table Header component and place it appropriately.

  • Adding/removing columns in jtable

    Hello everyone,
    i was looking for a way to add/remove columns from a jtable. The way i envision it working is... Initially have a predefined number of columns, of these only show the user say 5 of those on startup. but then provide a drop down (or list box etc) of the other column headings, so that when the user selects one... it adds it to the jtable. also to remove ..... is there a way to have a pop-up when the user right-clicks the table header and put a option to remove that column there? if not what is the best way to trigger a remove of a column? So i need a way to keep track of all the columns in case the user wants to add it again. anyone know how this can be done or any part of it?

    I need a intutive way for the user to remove a column from the gui (like with adding could be a dropdown box with column headers as labels).Create a custom ComboBoxModel. This model would simply contain TableColumns and display the header value in the combo box. The first combo box would display the currently showing columns. When you click on an item in the combo box:
    a) remove the TableColumn from the TableColumnModel
    b) remove the TableColumn from the model
    c) add the TableColumn to the "hidden" combo box model
    The same basic logic (but in reverse) would then apply when you click on the "hidden" combo box.

  • Resize column width for JTable without column headers?

    Hi,
    I find that for me to resize columns of a JTable by using
    mouse dragging, I MUST have column headers and then drag
    column headers to resize them. Is my understanding correct?
    Actually, I need to have a table without header columns.
    How can I use mouse to resize column width by dragging?
    The background for this request is that I am putting a
    complex table as another table's column header and I hope to
    be able to resizing the complex table by mouse dragging.
    Thanks very much,
    David

    Hi,
    I think you have mistake there. Try
    <style type="text/css">
    table.apexir_WORKSHEET_DATA td {
    white-space:nowrap !important;
    td[headers="DESCR"] {
    width:300px !important;
    max-width:300px !important;
    #apexir_DESCR {
    width:10px;
    max-width:300px !important;
    </style>And you can try add
    table.apexir_WORKSHEET_DATA {
    width: 100% !important;
    table-layout: fixed !important;
    }Regards,
    Jari
    My Blog: http://dbswh.webhop.net/htmldb/f?p=BLOG:HOME:0
    Twitter: http://www.twitter.com/jariolai

  • JTable update, column headers

    I am trying to write my own tablemodel which does not change the specified
    column widths when updating. So far everthing works fine, only the column
    headers are not repainted. Does anybody know what is missing?
    import java.awt.*;
    import java.util.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.table.*;
    public class UpdateTable
    { static String headers[]= {"Baum", "Blatt", "Frucht","H�usigkeit"};;
      static String data[][]= {
         {"Eiche", "gez�hnt","Eichel","ein"},
         {"Buche", "glatt", "Buchecker","ein"},
         {"Tanne", "Nadel", "Zapfen","ein"},
         {"Pappel", "wechselst�ndig","Kapsel","zwei"},
      static MyTableModel tblModel;
      static JTable table;
      public UpdateTable()
      { JFrame frame = new JFrame("UpdateTable");
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        Container contentPane = frame.getContentPane();
        tblModel = new MyTableModel(data, headers)
        { // Make read-only
          public boolean isCellEditable(int x, int y)
          { return false;
        table = new JTable(tblModel);
        table.getColumnModel().getColumn(1).setPreferredWidth(200);
        table.getColumnModel().getColumn(3).setPreferredWidth(20);
          // Set selection to first row
        ListSelectionModel selectionModel = table.getSelectionModel();
        selectionModel.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
        selectionModel.addListSelectionListener (new ListSelectionListener()
        { public void valueChanged(javax.swing.event.ListSelectionEvent e)
            if (e.getValueIsAdjusting()) return;
                System.out.println(table.getSelectedRow());
          // Add to screen so scrollable
        JScrollPane scrollPane = new JScrollPane (table);
        contentPane.add(scrollPane, BorderLayout.CENTER);
        frame.setSize(500, 100);
        frame.setVisible(true);
      public static void main(String args[])
      { new UpdateTable();
        try
        { Thread.sleep(3000);
        catch (InterruptedException e)
        { System.out.println ("Fehler: "+ e.toString());
        String headers_neu[] = {"Arbre", "Feuille", "Fruit", "Maisonette"};
        headers = headers_neu;
        data[0][0]= "Eberesche";
        tblModel.setDataVector(data, headers);
    //    table.revalidate(); // is of no use.
        table.repaint();
    // The table model
    class MyTableModel extends AbstractTableModel
      private int cols, rows;
      private String[] columnNames;
      private String[][] data;
      public MyTableModel(int cols, int rows)
      { this.cols = cols;
        this.rows = rows;
      public MyTableModel(String[][] data, String[] columnNames)
      { setDataVector(data, columnNames);
      public String getColumnName(int col)
      { return columnNames[col].toString();
      public int getColumnCount()
      { return cols;
      public int getRowCount()
      { return rows;
      public Object getValueAt(int row, int col)
      { return data[row][col];
      public void setDataVector(String[][] data, String[] columnNames)
      { this.cols = data[0].length;
        this.rows = data.length;
        this.data= data;
        this.columnNames= columnNames;
    //    Firing the event will change column widths as usual.
    //    fireTableChanged(new TableModelEvent(this,TableModelEvent.HEADER_ROW););
    }

    // fireTableChanged(new TableModelEvent(this,TableModelEvent.HEADER_ROW););
    You have to fire a table changed event.
    The table neverasks the model if things have changed. The model always notifys the table of changes.
    No event fired no table repaint.
    Instead of fireTableChanged(...) you have the option of fireTableDataChanged() (if only the data has changed, not the nomber of columns or the type of columns) and fireTableStructureChanged() (if there have been columns changed).
    If fireTableStructureChanged happens (and HEADER_ROW event is the same thing), the table removes the columns and creates new onew. That's why column sizes are lost.
    If you really want the table not to manage columns, you have to do it yourself:
    Implement your own TableColumnModel and pass it to the table constructor. When adding/removing columns you can ask what was the size of the previous columns where and set the new columns to that size.
    Call setAutoCreateColumnsFromModel(false) in your table constructor so that the table will not remove/create new columns itself when a tableStructureChanged event happens.

  • How to create tree table with column headers

    hi,
    when i drag and drop a view object onto my .jspx page as a af: tree table ,
    am not able to get the column header of each column. all the columns in the table are just clubbed together not separated as in af:table.
    can anyone say how the column headers are created for the columns when we drop a view object as a tree table?

    Hi,
    this is not an option with the treeTable as it gets rendered by default when dragging and dropping the collection to the page. I haven't tried it, but I think you will have to check which node is getting rendered and based on this information add your own row layout . Sounds like a bit of coding work
    Frank

  • 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.

  • Unable to turn column headers bold in Word table using VB Script

    I have created a table in Microsoft Word 2010 using VB Script (this is via the script engine that forms part of HP Quality Centre functionality).  The table itself is OK, 2 columns with centred headers.  However, I am unable to make the column
    headers bold.  I have spent hours searching the net and trying various options to no avail can somebody please help me.
    Set objWord = CreateObject("Word.Application")
    Set objDocument = objword.Documents.Open(Src_Dir & template_file
    Const wdAlignParagraphCenter = 1'var to control justification of the table columns
    Const NUMBER_OF_ROWS = 1 'number of rows in intial table
    Const NUMBER_OF_COLUMNS = 2 'number of colums in the intitial table
    'search for the "TAA_TABLE" bookmark embedded in the document template, this is where the table will be created
    Set objRange=objDocument.Bookmarks("TAA_TABLE").Range
    'create the table
    objDocument.Tables.Add objRange, NUMBER_OF_ROWS, NUMBER_OF_COLUMNS
    Set objTable = objDocument.Tables(2)
    'populate column headers
    objTable.Cell(1, 1).Range.Font.Bold = True
    objTable.Cell(1, 1).Range.Text = "Sub Contractor"
    objTable.Cell(1, 2).Range.text = "TAA Number"
    'centre the column headers
    objDocument.Tables(2).Rows(1).Select
    Set objSelection = objWord.Selection
    objSelection.ParagraphFormat.Alignment = wdAlignParagraphCenter
    'format the table with plain grid lines
    objTable.AutoFormat(16)
    'set the column widths
    objTable.Columns(1).Setwidth 230,0
    objTable.Columns(2).Setwidth 230,0
    Any help is graetfully appreciated, as this is driving me wild.
    Cheers,

    Hi Citronax,
    I haved noticed that you used objTable.AutoFormat to format the table. Based on my understanding, this fuction will applie a predefined look to a table.
    After I move the code which bolder the text behind this line of code, it works well for me.
    'format the table with plain grid lines
    objTable.AutoFormat (16)
    objTable.Cell(1, 1).Range.Font.Bold = True
    Regards & Fei
    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.

Maybe you are looking for

  • Why still nokia lumia black update is not yet avai...

    Nokia has announced the GDR3 update for all of its windows 8 phones but still lumia 620 update availability shows waiting for approval. Lumia 620 has better specs than 520 but lumia 520 got the update ahead of 720 and 620. What may be the reason for

  • Do I need to render before exporting?

    I have just put together a small project with three sequences in it. Nothing crazy, renders in about an hour on a PB G4/1Ghz. My question though - do I need to render before exporting to a Quicktime movie? Or will it render automatically before expor

  • Com.sap.portal.runtime.logon.par information in Authschemes.xml

    Hello Portal gurus,     I am trying to customize the Portal logon page by modifying the com.sap.portal.runtime.logon.par file. I modified the par file. But after this change, I wanted to change the authschemes.xml file to reflect the par file changes

  • AirPort Express -- having problems with music and stereo

    Anytime I connect iTunes to my home theater system, the sound is very very quiet, and there is a slight "buzz, or humm" noise in the background, almost as though the Line out cable isn't connected all the way (obviously it is...). This system has wor

  • Cfset variable as a list loop value

    I'm trying to use a list loop to create 30 numbers then set that list with cfset. Instead of typing <cfset Questions = 1,2,3,4...etc.> I'd like to make a list loop generate the 30 numbers. I just can't figure out how to set these 30 numbers as a valu