Windows Form with SAP B1 Problem

Dear all,
I'm building an add-on that use some windows form.
In Menu Event i placed the code for open my windows form:
                    MyForm xxx = new MyForm();
                    xxx.WindowState = System.Windows.Forms.FormWindowState.Normal;
                    xxx.Visible = true;
                    xxx.ShowInTaskbar = true;
                    xxx.TopMost = true;
                    xxx.Text = string.Empty;
                    xxx.ControlBox = false;
                    System.Windows.Forms.Application.Run(xxx);
All works fine, but, when my form is open i can't operate on SAP.
It's like my form is modal, and until I have it open I can't do anything outside the form.
Can someone help me?
Regards
Diego

Hi Diego
There's actually two ways to build an add-on, one that runs inside SAP Business One and one that runs along SB1 side but built on windows forms.  You can see this clearly if you try some of the add-on samples that come along with B1.  Overall, when I did the analysis I ended up with the conclusion that I was going to spend twice the work to achieve windows forms.
First, you would have develop classes and objects that keep in communication with Business One.  Second, you have to keep in mind that you cannot create, update, or delete data directly to the database unless you use the SDK provided objects and methods.  Which brings you back to the SAP data sources.
Furthermore, you can run into a bit of complexity do to the fact that to illustrate data in your form, you might have to "convert" your data.  For instance, say a SAP recordset into a dataset or ADO recordset.  In other words, you can end up with a bit more complex architecture the way I see it.
Using the Screen Painter and SAP Business One tools such as the BIDE you can construct bound form (UDOs) which can even require very little coding from your part (if forms are not to be too complex).  Once you get use to SAP's way handling data objects you see is a lot easier than trying the alternative.

Similar Messages

  • User Windows Forms in SAP

    Hi, is there an easy and quick way to use my Forms I made, which look like SAP forms as an AddOn in SBO?
    Maybe you know Mari-Projekt. The functionality should be the same. I have a stand-alone software but I also want to use it as an AddOn.
    Thanks Philipp

    Hi
    You can Open your windows forms in SAP Business One with a little bit work around.But event handlers for the form will be of .Net(like Button Clicks).But the problem is that you have to use showdialog property of form to show the form,Which will not allow you to access Sap Business One untill you close the windows form.
    If you want to handle your form events form with SDK,i am not sure whether that is feasible or not.
    Hope this helps you
    Regards
    Vishnu

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

  • Integrate Window Application with SAP B1

    Hi
    Can we use EAI Technology to integrate our window application with SAP B1.
    if yes then from where i get the material regarding this
    Thanks
    Rupinder

    Hi Rupinder,
    You can integrate your windows application with B1 at the data level via COM based DI API. Some of the SDK samples are built as Windows Form applications that use DI API to integrate with data in B1.
    HTH
    Aravind

  • Show windows form on SAP

    Hi.
    I am opening a windows form and have this problem.
    When open the form this show on the taskbar. But it doesn't maximize.
    I am need that this form maximizes. How can I do this?
    Regards,
    Jose

    Hi ragno liver.
    1- On the menu bar access projects then properties and on Debug you will find the Command line add the following:
    0030002C0030002C00530041005000420044005F00440061007400650076002C0050004C006F006D0056004900490056
    2- Add References SAPbouiCOM and SAPbobsCOM
    3- Add a module call SubMain to your project
    4- Go to project properties then to the application and then uncheck Enable Application framework. And select SubMain on the starud object.
    5- On the SubMain module add this code:
    using System;
    using System.Windows.Forms;
    class SubMain {
        static void Main() {
            // Creating an object
            MyClase oMyClase = null;
            oMyClase = new MyClase();
            //  Start Message Loop
            System.Windows.Forms.Application.Run();
    Where MyClase are located the code to create your menu and the call to your form.
    Regards,
    Jose

  • Windows Forms with ActiveX PDF viewer steals focus when LoadFile called

    I've been very frustrated with the PDF viewer. I currently have the Acrobat Reader 8.1.2 installed and I've created an extremely simple app that has a main window with two additional child windows that are owned by the main window. I've also set a timer to periodically load the same file over and over (to show the focus issue).
    My problem is that if Child1 is currently in Focus, and the timer on Child2 goes off and calls LoadFile(...), then for some reason Child2 steals the focus and comes to the front of the app.
    My Sample Visual Studio 2008 Windows Form code here:
    //Main Window code that creates Child1 and Child2 that have the ActiveX
    //component on them
    namespace PDFViewerStealingFocusIssue
    public partial class MainWindow: Form
    public MainWindow() {
    InitializeComponent();
    private void MainWindow_Load(object sender, EventArgs e) {
    PDFViewerStealingFocusIssue.PDFViewer viewer = new PDFViewer();
    viewer.Text = "Child1";
    viewer.timer1.Interval = 4000;
    viewer.Show(this);
    viewer = new PDFViewer();
    viewer.Text = "Child2";
    viewer.timer1.Interval = 5500;
    viewer.Show(this);
    //in my child window:
    namespace PDFViewerStealingFocusIssue
    public partial class PDFViewer : Form
    public PDFViewer() {
    InitializeComponent();
    private void Form2_Load(object sender, EventArgs e) {
    private void timer1_Tick(object sender, EventArgs e) {
    axAcroPDF1.LoadFile(@"C:\test.pdf");
    //axAcroPDF1.src = @"C:\test.pdf";
    I'd appreciate if anyone has a workaround for stopping this annoying behavior.
    Jeff Braun ([email protected])

    Hi Jeff,
    I have the same problem. Have you found a solution yet? I've spent the past few hours trying to find one to no avail. Your help will be greatly appreciated. If I find anything, I'll be sure to post the solution.
    Thanks,
    Matt

  • BPEL with SAP integration problem.

    Hi,
    I have a serious problem to integrate with SAP and BPEL.
    I have to create a IDOC document in BPEL process.
    Can I create IDOC in BPEL process through SAP Adapter?
    Does anybody know about this?
    Thanks in advance.
    Regards,
    Jean.

    Looks like Process B is being called successfully, if it wasn't it wouldn't be in the BPEL Console.
    I suggest that you look at the Process B the in the flow in the BPEL Console. It looks like you may be assigning a variable that has not been populated.
    The reason why you cann't see a instance for Process A is because Process B has not returned a value, sucess or failure. Therefore Process A is still stitting there waiting. To confirm this go to your BPEL Console select the BPEL processes tab then the manual recovery. You should see a row for your Process A.
    cheers
    James

  • How to show windows form in SAP B1

    Hi
    I would like to create interface UI form using C# , windows form and add to SAP B1. I would like to know process and send me if you have any sample code please.
    Thanks
    rl

    Hi ragno liver.
    This are the step to create your addon. :
    1- On the menu bar access projects then properties and on Debug you will find the Command line add the following:
    0030002C0030002C00530041005000420044005F00440061007400650076002C0050004C006F006D0056004900490056
    2- Add References SAPbouiCOM and SAPbobsCOM
    3- Add a module call SubMain to your project
    4- Go to project properties then to the application and then uncheck Enable Application framework. And select SubMain on the starud object.
    5- On the SubMain module add this code:
    using System;
    using System.Windows.Forms;
    class SubMain {
    static void Main() {
    // Creating an object
    MyClase oMyClase = null;
    oMyClase = new MyClase();
    // Start Message Loop
    System.Windows.Forms.Application.Run();
    Where MyClase are located the code to create your menu and the call to your form.
    Regards,
    Jose

  • Use of ADOBE form with SAP workflow for R/3 4.6C

    Hi All,
    We are thinking of usage of ADOBE form feature as one of options to design workflow for creation and maintenance of “Info record” like “Material Master” creation. BTW the existing systems are EP 7.0 with the back end SAP ERP system 4.6 C
    We would like to just check the feasibility of usage of ADOBE interactive form for above scenario. Would it be possible to go ahead with the above concept or what would be pre-requisites or risks involved?
    1.     How would system identify the role to direct the Adobe form for approval in case the form is raised by multi department?
    2.     How can the data validations in ADOBE form happen with reference to SAP std. tables?
    An early reply would be appreciated.
    Rgds,

    Hi,
    If you use EP 70 you can used guided procedure for your requirement .
    Regards

  • HTTPS communication for Adobe Offline form with SAP ABAP WAS

    Hi Experts,
    Can we use HTTPS communication method to call a SAP ABAP Web Service from an Adobe offline form?
    Example : I have a SUBMIT button in my Adobe offline form and when clicked, it populates a sales order number in the form.
    Here my SAP ABAP server from where it reads the info is using HTTPS communication method. Now if i use the same service with HTTP it works fine but if i switch the service to use HTTPS it shows me an error "Error attempting to read from file. <https://FQDN/<service name> .
    I am using self-signed SSL server certificate from SAP ABAP server. But here i also see a certificate error in my browser (IE 7.0) saying "Untrusted Certificate". Is this the reason for my above issue?
    I could not find any post in SDN giving me the answer.
    Regards,
    Hobin

    Hi,
         The Certificates are already imported into the Trusted Certificates Section. But the real Issue is regading the Adobe Offline forms. If I open the Adobe Offline forms in the Adobe reader 9.0 and the Web Service call is made based on the Https:// . It saying "Error attempting to Read the file". The Fully qualified domain name is also provided VA. I have tried to import the certificates to Adobe Reader's -  Trust Identities but still it is not working . If I switch the webservice authentication method to Http:// then it would work. ADS is already configured with SSL. And the HTTPS:// based WebService embedded in the Adobe Interactive Form is working ,if the form is Online in the Browser (integrated in the Webdynpro Abap UI element).
    Is there any other way to Add SSL Certificates to Adobe Reader , so that Https:/ based webservice will work if the Form is opened in Adobe Reader 9.0.
    Regards,
    Hobs

  • Forms with reverse-proxy problem

    Hi:
    How can I use a reverse-proxy (apache) to correctly run Oracle Forms and Oracle Reports Standalone (JINIT or Sun JVM).
    Do I need to configure formsweb.cfg? default.env? Can anyone help me ?
    I've setup Apache reverse-proxy... and it runs... but i got frm-92101
    Thanks
    Joao

    Hi:
    I've set this on httpd.conf
    ProxyPass /forms http://10.0.0.1:7778/forms
    ProxyPassReverse /forms http://10.0.0.1:7778/forms
    My Apache port number is the standard 80
    Did you used these Apache directives to setup the reverse proxy? Are you using forms standalone or with sso ? This test case I've setup is used with Forms&Reports Standalone.
    It always happens this problem.
    EDITED:
    I found the problem... the problem is the database... 11G!!! With 10G it works ok!
    Thanks
    Joao

  • Integrating Excel Sheet form with SAP

    Hi, we have a requirement that we created custom excel sheet form for invoice entry and upon click of a button in excel sheet, it should start SAP logon screen and after entering user id and password it should start invoice creation screen with default data that exists in excel sheet. If any of you have implemented a similar kind of scenario earlier, please let me know.
    Regards
    Raveendra

    Hi,
    See the following link for the details.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f07b168a-ceaf-2910-b7b4-e3200b8d37b3
    http://e-mory.blogspot.com/2008/03/copy-or-upload-excel-journal-entry-to.html
    Regards,
    Jagadish

  • Windows 7 with bootcamp assiastant problems

    ok so when ever i have  a clean fresh install onto a partiion with windows 7 when ever i boot up on windows 7 i get a blue screen error saying failed to attempt to recover video card
    additional details: running nvidia geforce 7300 GT video card

    F8 key doesn't work when booting Widows 8. Have to go to windows 8 start screen and put cursor in lower right corner. Click on Settings - Change PC settings - General - Advanced Startup. From there you can do a System Restore, or Startup modes like Win7. but you will lose everything since the last trestore.  If you can't get into Win8 start screen, I dunno? Reinstall Win8?  Apple's official way to install Win8 is to install from the Bootcamp Assistant.app in the latest upgrade of Mountain Lion, Download Bootcamp Assistant to a USB drive formated with FAT32, from the Boot Camp installer. (which will be the latest version of Bootcamp 5 drivers),.install either Windows 7 64bit or Windows 8 64 bit. DO NOT use 32 bit with Boot Camp 5. Boot Camp 5 is designed to work with 64 bit Windows only!  When Win8 is installed,  Run setup.exe from the USB drive.  This is all in the Bootcamp installation guide which can be downloaded from Apple.  If you install Win8 32 bit you have to use Boot Camp Assistant 4, which is part of Lion OS.  If you are running Snow Leopard or Mountain Lion, you have to download Bootcamp assistant 4 from Apple Support and copy it to a FAT32 USB drive, and use the setup from that to install Apple Win 8 drivers.  This is not recommended or supported, and is not supposed to work, but it does because I am typing this from my late 2011 MacBook Pro with Lion OS, running Win 8 32, bit loaded with Bootcamp Assistant 4 Drivers, so I know it works.  I could have run Win 8 64 bit with Bootcamp 5, but I have some old Windows Software that can't run on 64 bit Windows, so I have to run 32 bit.

  • How to add entire new row at the top of table in pdf report from c# windows forms using iTextSharp

    Hi for past 3 days i was thinking and breaking my head on how to add entire new at top table created in pdf report from c# windows forms with iTextSharp.
    First: I was able to create/export sql server data in form of table in pdf report from c# windows forms. Given below is the code in c#.
    using System;
    using System.Collections.Generic;
    using System.Configuration;
    using System.Text;
    using System.Data;
    using System.IO;
    using System.Data.SqlClient;
    using System.Windows.Forms;
    using iTextSharp.text;
    using iTextSharp.text.pdf;
    namespace DRRS_CSharp
    public partial class frmPDFTechnician : Form
    public frmPDFTechnician()
    InitializeComponent();
    private void btnExport_Click(object sender, EventArgs e)
    Document doc = new Document(PageSize.A4.Rotate());
    var writer= PdfWriter.GetInstance(doc, new FileStream("Technician22.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(7);
    table.TotalWidth=585f;
    table.LockedWidth = true;
    PdfPTable inner = new PdfPTable(1);
    inner.WidthPercentage = 115;
    PdfPCell celt=new PdfPCell(new Phrase(new Paragraph("Institute/Hospital:AIIMS,NEW DELHI",FontFactory.GetFont("Arial",14,iTextSharp.text.Font.BOLD,BaseColor.BLACK))));
    inner.AddCell(celt);
    Paragraph para = new Paragraph("DCS Clinical Report-Technician wise", FontFactory.GetFont("Arial", 14, iTextSharp.text.Font.BOLD, BaseColor.BLACK));
    para.Alignment = iTextSharp.text.Element.TITLE;
    iTextSharp.text.Image png = iTextSharp.text.Image.GetInstance("logo5.png");
    png.ScaleToFit(95f, 95f);
    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 t.technician_id,td.Technician_first_name,td.Technician_middle_name,td.Technician_last_name,t.technician_dob,t.technician_sex,td.technician_type from Techniciandetail td,Technician t where td.technician_id=t.technician_id and td.status=1", conn);
    conn.Open();
    SqlDataReader dr;
    dr = cmd.ExecuteReader();
    table.AddCell("ID");
    table.AddCell("First Name");
    table.AddCell("Middle Name");
    table.AddCell("Last Name");
    table.AddCell("DOB" );
    table.AddCell("Gender");
    table.AddCell("Designation");
    while (dr.Read())
    table.AddCell(dr[0].ToString());
    table.AddCell(dr[1].ToString());
    table.AddCell(dr[2].ToString());
    table.AddCell(dr[3].ToString());
    table.AddCell(dr[4].ToString());
    table.AddCell(dr[5].ToString());
    table.AddCell(dr[6].ToString());
    dr.Close();
    table.SpacingBefore = 15f;
    doc.Add(para);
    doc.Add(png);
    doc.Add(inner);
    doc.Add(table);
    doc.Close();
    The code executes well with no problem and get all datas from tables into table in PDF report from c# windows forms.
    But here is my problem how can i align Title(DCS Clinical Report-Technician wise) center of pdf report with image named:logo5.png immediately coming to it's right?.
    As the problem i am facing is my title or Header(DCS Clinical Report-Technician wise) is at top of my image named:logo5.png and not coming to it's center position of my image.
    Second the problem i am facing is how to add new entire row to top of existing table in pdf report from c# windows form using iTextSharp?.
    given in below is the row and it's data . So how do i add the given below row and it's data to my top my table in pdf report from c# windows forms using itextsharp?
    as you can see how i create my columns in table in pdf report and populate it with sql server data. Given the code below:
    Document doc = new Document(PageSize.A4.Rotate());
    var writer= PdfWriter.GetInstance(doc, new FileStream("Technician22.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(7);
    table.TotalWidth=585f;
    table.LockedWidth = true;
    Paragraph para = new Paragraph("DCS Clinical Report-Technician wise", FontFactory.GetFont("Arial", 14, iTextSharp.text.Font.BOLD, BaseColor.BLACK));
    para.Alignment = iTextSharp.text.Element.TITLE;
    iTextSharp.text.Image png = iTextSharp.text.Image.GetInstance("logo5.png");
    png.ScaleToFit(95f, 95f);
    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 t.technician_id,td.Technician_first_name,td.Technician_middle_name,td.Technician_last_name,t.technician_dob,t.technician_sex,td.technician_type from Techniciandetail td,Technician t where td.technician_id=t.technician_id and td.status=1", conn);
    conn.Open();
    SqlDataReader dr;
    dr = cmd.ExecuteReader();
    table.AddCell("ID");
    table.AddCell("First Name");
    table.AddCell("Middle Name");
    table.AddCell("Last Name");
    table.AddCell("DOB" );
    table.AddCell("Gender");
    table.AddCell("Designation");
    while (dr.Read())
    table.AddCell(dr[0].ToString());
    table.AddCell(dr[1].ToString());
    table.AddCell(dr[2].ToString());
    table.AddCell(dr[3].ToString());
    table.AddCell(dr[4].ToString());
    table.AddCell(dr[5].ToString());
    table.AddCell(dr[6].ToString());
    dr.Close();
    table.SpacingBefore = 15f;
    doc.Add(para);
    doc.Add(png);
    doc.Add(table);
    doc.Close();
    So my question is how to make my column headers in bold?
    So these are my questions.
    1. how can i align Title(DCS Clinical Report-Technician wise) center of pdf report with image named:logo5.png immediately coming to it's right?.
    2. how do i add the given below row and it's data to my top my table in pdf report from c# windows forms using itextsharp?
    3.how to make my column headers in bold?
    I know that i have to do some modifications to my code but i dont know how to do it. Can anyone help me please.
    Any help or guidance in solving this problem would be greatly appreciated.
    vishal

    Hi,
    >>1. how can i align Title(DCS Clinical Report-Technician wise) center of pdf report with image named:logo5.png immediately coming to it's right?.
    2. how do i add the given below row and it's data to my top my table in pdf report from c# windows forms using itextsharp?
    3.how to make my column headers in bold?<<
    I’m sorry for the issue that you are hitting now.
    This itextsharp is third party control, for this issue, I recommended to consult the control provider directly, I think they can give more precise troubleshooting.
    http://sourceforge.net/projects/itextsharp/
    Thanks for your understanding.
    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.

  • NTLM is not working with EP 6 SP 9 on Windows 2003 with IIS 6.

    I installed EP 6 SP 9 on windiows 2003 server with IIS version 6.
    Configures IisProxy.xml for redirection for filter irj. When  I make a call to default website, it in turn calls server with irj filter.
    Portal page comes up and requesting me to enter user id password.
    I made the changes mentioned by some of the web logs in this site.
    I configured HeaderVariableLoginModule an and added as explined by Gregory Wolf on the following topic.
    Integrated Windows Authentication with SAP EP 6.0 SP 3 and higher.
    I see following log from Ep 6 SP 9 log file security.log from directory E:\usr\sap\DEV\JC00\j2ee\cluster\server0\log\system.
    security#Plain###No user name provided.#
    #1.5#000C2953326B00430000000100000A780003F358EF2132DE#1111988099323#/System/Security#sap.com/irj#com.sap.engine.services.security#Guest#18####200d0cb09f4b11d9926a000c2953326b#SAPEngine_Application_Thread[impl:3]_37##0#0#Info#1#com.sap.engine.services.security#Plain###Cannot log info about the logon attempt because the user name is null.#
    #1.5#000C2953326B00440000000000000A780003F3591D22E168#1111988846027#/System/Security#sap.com/irj#com.sap.engine.services.security#Guest#18####dd1f09b19f4c11d98e98000c2953326b#SAPEngine_Application_Thread[impl:3]_7##0#0#Info#1#com.sap.engine.services.security#Plain###No user name provided.#
    #1.5#000C2953326B00440000000100000A780003F3591D22E215#1111988846027#/System/Security#sap.com/irj#com.sap.engine.services.security#Guest#18####dd1f09b19f4c11d98e98000c2953326b#SAPEngine_Application_Thread[impl:3]_7##0#0#Info#1#com.sap.engine.services.security#Plain###Cannot log info about the logon attempt because the user name is null.#
    #1.5#000C2953326B00450000000000000A780003F359227DE92E#1111988935662#/System/Security#sap.com/irj#com.sap.engine.services.security#Guest#18####128c40e09f4d11d9acb7000c2953326b#SAPEngine_Application_Thread[impl:3]_28##0#0#Info#1#com.sap.engine.services.security#Plain###No user name provided.#
    #1.5#000C2953326B00450000000100000A780003F359227DEDC7#1111988935662#/System/Security#sap.com/irj#com.sap.engine.services.security#Guest#18####128c40e09f4d11d9acb7000c2953326b#SAPEngine_Application_Thread[impl:3]_28##0#0#Info#1#com.sap.engine.services.security#Plain###Cannot log info about the logon attempt because the user name is null.#
    Lots of weblogs are pointing to remote_user value in IisProxy.log file. I am not able to see that.
    I also tried switching IIS 6 to run as IIS 5 and did not help much at all.
    Please help me on the issue.
    I did not change authschemes.xml file.
    My IisProxy.xml file looks as follows:
    <?xml version="1.0" encoding="utf-8" ?>
    <!DOCTYPE ISAPI-config[
         <!ELEMENT ISAPI-config ( filter, extension, ( mapping | config )* )>
         <!ATTLIST ISAPI-config
              version CDATA #REQUIRED
         >
         <!ELEMENT filter (log-path?)>
         <!ATTLIST filter
              name CDATA #IMPLIED
              log-level CDATA "3"
              log-flags CDATA "0x00000001"
              debug-flags CDATA "0x00008000"
              priority ( high | medium | low ) "high"
              extension-url CDATA "/scripts/IisProxy.dll"
              authentication ( skip | normal | forward ) "normal"
              remote-address ( skip | forward ) "skip"
         >
         <!ELEMENT extension (
              keystore-dir?,
              log-path?,
              data-path?,
              trace-path? )>
         <!ATTLIST extension
              name CDATA #IMPLIED
              log-level CDATA "1"
              log-flags CDATA "0"
              debug-flags CDATA "0"
              access ( filter | direct | both ) "filter"
         >
         <!ELEMENT keystore-dir (#PCDATA)>
         <!ELEMENT log-path (#PCDATA)>
         <!ELEMENT data-path (#PCDATA)>
         <!ELEMENT trace-path (#PCDATA)>
         <!ELEMENT mapping (
              source+,
              target,
              compress-types*,
              protocol-header?,
              certificate-header?,
              cert-chain-header?,
              cipher-header?,
              keysize-header?,
              keystore-path?,
              log-path?,
              data-path? )>
         <!ATTLIST mapping
              name CDATA #IMPLIED
              log-level CDATA "1"
              log-flags CDATA "0"
              debug-flags CDATA "0"
              keep-alive ( true | false ) "true"
              use-continue ( true | false ) "true"
              close-socket ( true | false ) "true"
              close-socket-delay CDATA "1000"
              thread-count CDATA "100"
              max-socket-age CDATA "37"
         >
         <!ELEMENT source (protocol, host?, port?, prefix, new-prefix?)>
         <!ATTLIST source
              access ( filter | direct | both ) "filter"
         >
         <!ELEMENT protocol (#PCDATA)>
         <!ELEMENT host (#PCDATA)>
         <!ELEMENT port (#PCDATA)>
         <!ELEMENT prefix (#PCDATA)>
         <!ELEMENT new-prefix (#PCDATA)>
         <!ELEMENT target (protocol, host, port)>
         <!ELEMENT compress-types (#PCDATA)>
         <!ATTLIST compress-types
              min-size CDATA "1024"
         >
         <!ELEMENT protocol-header (#PCDATA)>
         <!ELEMENT certificate-header (#PCDATA)>
         <!ELEMENT cert-chain-header (#PCDATA)>
         <!ELEMENT cipher-header (#PCDATA)>
         <!ELEMENT keysize-header (#PCDATA)>
         <!ELEMENT keystore-path (#PCDATA)>
         <!ELEMENT config ( source+ )>
    ]>
    <ISAPI-config version="1.6">
         <filter name="IisProxy filter"/>
         <extension name="IisProxy extension" />
         <mapping name="IisProxy samples">
              <source>
                   <protocol>http</protocol>
                   <prefix>/irj</prefix>
              </source>
              <source>
                   <protocol>http</protocol>
                   <prefix>/Hello/</prefix>
              </source>
              <source>
                   <protocol>http</protocol>
                   <prefix>/Hello2/</prefix>
                   <new-prefix>/Hello/</new-prefix>
              </source>
              <target>
                   <protocol>http</protocol>
                   <host>slcsepw04vd.pacificorp.us</host>
                   <port>50000</port>
              </target>
              <compress-types>text/html, text/plain</compress-types>
         </mapping>
         <mapping name="Secure IisProxy samples">
              <source>
                   <protocol>https</protocol>
                   <prefix>/Hello/</prefix>
              </source>
              <target>
                   <protocol>https</protocol>
                   <host>localhost.your.corp</host>
                   <port>8443</port>
              </target>
              <keystore-path>c:\sec\SAPSSLC.pse</keystore-path>
         </mapping>
         <config>
              <source>
                   <protocol>http</protocol>
                   <host>localhost</host>
                   <prefix>/IisProxy</prefix>
              </source>
              <source>
                   <protocol>https</protocol>
                   <host>localhost</host>
                   <prefix>/IisProxy</prefix>
              </source>
         </config>
    </ISAPI-config>
    Please help me. I am not sure what is missing. Please make a note that Portal version is EP 6 SP9 & Server is Windows 2003 with IIS 6.

    I made the change as you requested and it did not help.
    I do not see any remote_user entry in IisProxy.log file.
    Please let me know the procedure to get REMOTE_USER into the IisProxy.log file.
    <?xml version="1.0" encoding="utf-8" ?>
    <!DOCTYPE ISAPI-config[
         <!ELEMENT ISAPI-config ( filter, extension, ( mapping | config )* )>
         <!ATTLIST ISAPI-config
              version CDATA #REQUIRED
         >
         <!ELEMENT filter (log-path?)>
         <!ATTLIST filter
              name CDATA #IMPLIED
              log-level CDATA "3"
              log-flags CDATA "0x00000001"
              debug-flags CDATA "0x00008000"
              priority ( high | medium | low ) "high"
              extension-url CDATA "/scripts/IisProxy.dll"
              authentication ( skip | normal | forward ) "normal"
              remote-address ( skip | forward ) "skip"
         >
         <!ELEMENT extension (
              keystore-dir?,
              log-path?,
              data-path?,
              trace-path? )>
         <!ATTLIST extension
              name CDATA #IMPLIED
              log-level CDATA "1"
              log-flags CDATA "0"
              debug-flags CDATA "0"
              access ( filter | direct | both ) "filter"
         >
         <!ELEMENT keystore-dir (#PCDATA)>
         <!ELEMENT log-path (#PCDATA)>
         <!ELEMENT data-path (#PCDATA)>
         <!ELEMENT trace-path (#PCDATA)>
         <!ELEMENT mapping (
              source+,
              target,
              compress-types*,
              protocol-header?,
              certificate-header?,
              cert-chain-header?,
              cipher-header?,
              keysize-header?,
              keystore-path?,
              log-path?,
              data-path? )>
         <!ATTLIST mapping
              name CDATA #IMPLIED
              log-level CDATA "1"
              log-flags CDATA "0"
              debug-flags CDATA "0"
              keep-alive ( true | false ) "true"
              use-continue ( true | false ) "true"
              close-socket ( true | false ) "true"
              close-socket-delay CDATA "1000"
              thread-count CDATA "100"
              max-socket-age CDATA "37"
         >
         <!ELEMENT source (protocol, host?, port?, prefix, new-prefix?)>
         <!ATTLIST source
              access ( filter | direct | both ) "filter"
         >
         <!ELEMENT protocol (#PCDATA)>
         <!ELEMENT host (#PCDATA)>
         <!ELEMENT port (#PCDATA)>
         <!ELEMENT prefix (#PCDATA)>
         <!ELEMENT new-prefix (#PCDATA)>
         <!ELEMENT target (protocol, host, port)>
         <!ELEMENT compress-types (#PCDATA)>
         <!ATTLIST compress-types
              min-size CDATA "1024"
         >
         <!ELEMENT protocol-header (#PCDATA)>
         <!ELEMENT certificate-header (#PCDATA)>
         <!ELEMENT cert-chain-header (#PCDATA)>
         <!ELEMENT cipher-header (#PCDATA)>
         <!ELEMENT keysize-header (#PCDATA)>
         <!ELEMENT keystore-path (#PCDATA)>
         <!ELEMENT config ( source+ )>
    ]>
    <ISAPI-config version="1.6">
         <filter name="IisProxy filter" authentication="forward"/>
         <extension name="IisProxy extension" />
         <mapping name="IisProxy samples">
              <source>
                   <protocol>http</protocol>
                   <prefix>/irj</prefix>
              </source>
              <source>
                   <protocol>http</protocol>
                   <prefix>/Hello/</prefix>
              </source>
              <source>
                   <protocol>http</protocol>
                   <prefix>/Hello2/</prefix>
                   <new-prefix>/Hello/</new-prefix>
              </source>
              <target>
                   <protocol>http</protocol>
                   <host>slcsepw04vd.pacificorp.us</host>
                   <port>50000</port>
              </target>
              <compress-types>text/html, text/plain</compress-types>
         </mapping>
         <mapping name="Secure IisProxy samples">
              <source>
                   <protocol>https</protocol>
                   <prefix>/Hello/</prefix>
              </source>
              <target>
                   <protocol>https</protocol>
                   <host>localhost.your.corp</host>
                   <port>8443</port>
              </target>
              <keystore-path>c:secSAPSSLC.pse</keystore-path>
         </mapping>
         <config>
              <source>
                   <protocol>http</protocol>
                   <host>localhost</host>
                   <prefix>/IisProxy</prefix>
              </source>
              <source>
                   <protocol>https</protocol>
                   <host>localhost</host>
                   <prefix>/IisProxy</prefix>
              </source>
         </config>
    </ISAPI-config>
    Please let me know what is missing.
    Thanks.

Maybe you are looking for