CrystalDecisions.Windows.Forms.CrystalReportViewer How to Resize Zoom Level

Hello,
       When I double_click the crystal report a new tab is automatically created and the reports zoom level is set to 100%, my question is what event do I tap into so that before the new report gets displayed I can adjust the zoom level to a preset value?
       I've tried to manipulate it on the report double_click event but when I set the zoom level to for example 150%, the original report is the one that gets enlarge while the zoom level of the new report on a new tab will remain 100%.
        Is there also an event that will fire up when you transfer from 1 tab to another tab of thesame crystal report?
Thanks.
Edited by: stan_the_man21ph on Apr 1, 2011 10:37 AM

Hello,
       When I double_click the crystal report a new tab is automatically created and the reports zoom level is set to 100%, my question is what event do I tap into so that before the new report gets displayed I can adjust the zoom level to a preset value?
       I've tried to manipulate it on the report double_click event but when I set the zoom level to for example 150%, the original report is the one that gets enlarge while the zoom level of the new report on a new tab will remain 100%.
        Is there also an event that will fire up when you transfer from 1 tab to another tab of thesame crystal report?
Thanks.
Edited by: stan_the_man21ph on Apr 1, 2011 10:37 AM

Similar Messages

  • Could not load assembly or file "crystaldecisions.windows.forms"

    Hi,
    I have a VS2005 C# .net application which works fine when I run on the programming machine.
    Now , I copy all files (dll , pdb , exe) from the Project's "..bin\Debug " directory .
    These files I transfer to another computer which does not have VS 2005 .NET installed (or any separate crystal reports program), but it does have .netframework 1 and 2, so that I can test the application on that "test" computer.
    When I double click the .exe , I log in and then I click a menu item which shows a form which has a crystalreport viewer in it.Here , an unhandled excepion error is shown like this...
    Could not load assembly or file "crystaldecisions.windows.forms" version 10.2.3600.0
    Note please: I have not created an installer(.msi) package for our application yet.
    The application does not refer to any crystal reports dlls in it's directory
    Thanks -

    Hello Dimitar,
    If Crystal Reports is not properly integrated into your VS IDE you'll usually see that kind of message.
    You have to make sure that Crystal Reports is properly integrated into Visual Studios.  Do you have a full version of Crystal Reports installed on your Visual Studios .NET 2005 development machine? If so, what is the version of Crystal Reports?  Open Crystal Reports, go to the Help menu, and then About Crystal Reports.  What is the version number and name (listed near the top)?
    Now open Visual Studios and go to Help > About VS.  In the list of Installed Products what does it say for Crystal (usually near the bottom of the list).  Please DO NOT include your keycode - just what it says for Crystal.
    Sincerely,
    Dan Kelleher

  • Could not load file or assembly 'CrystalDecisions.Windows.Forms Error

    Hello All,
       I have created a Crystal Reports .Net Executable and it runs fine on the PC that it was built on. However, when I copy the exe application to another system and try to run it, I get the following error message:
    System.InvalidOperationException was unhandled
      Message="An error occurred creating the form. See Exception.InnerException for details.  The error is: Could not load file or assembly 'CrystalDecisions.Windows.Forms, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified."
      Source="Sample Report"
      StackTrace:
           at Sample_Report.My.MyProject.MyForms.Create__Instance__[T](T Instance) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 190
           at Sample_Report.My.MyProject.MyForms.get_Form1()
           at Sample_Report.My.MyApplication.OnCreateMainForm() in C:\Users\saikaleya\AppData\Local\Temporary Projects\Sample Report\My Project\Application.Designer.vb:line 35
           at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
           at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
           at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)
           at Sample_Report.My.MyApplication.Main(String[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 78
      InnerException: System.IO.FileNotFoundException
           Message="Could not load file or assembly 'CrystalDecisions.Windows.Forms, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified."
           Source="Sample Report"
           FileName="CrystalDecisions.Windows.Forms, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"
           FusionLog="WRN: Assembly binding logging is turned OFF.\r\nTo enable assembly bind failure logging, set the registry value [HKLM
    Software
    Microsoft
    Fusion!EnableLog] (DWORD) to 1.\r\nNote: There is some performance penalty associated with assembly bind failure logging.\r\nTo turn this feature off, remove the registry value [HKLM
    Software
    Microsoft
    Fusion!EnableLog].\r\n"
           StackTrace:
                at Sample_Report.Form1.InitializeComponent()
                at Sample_Report.Form1..ctor()
           InnerException:
    Any tips/suggestions would be greatly appreciated.
    P.S. I am using Crystal Reports 2008 and Visual Studio 2008.
    Thank you in advance.

    A couple things here:
    Your application is referencing the Windows form dll for the bundled version of Cr that comes with VS.NET 2008 and NOT the Crystal Reports 2008 runtime.  You need to change the references in the project to 12.xxx assuming you have Crystal Reports 2008 SP0 installed (this is needed for it to work with .NET 2008)
    You need to make sure you deploy the runtimes for the appropriate version.  If you get your application upgraded to use all of the CR 2008 runtimes you will then need to deploy the runtimes to the machine you are deploying to.  You can do this by using the merge modules or the server install msi to get them on the machine.
    Jason

  • How to maintain zoom level i choose

    other browsers accept and keep the zoom level i need
    firefox makes me enlarge the print on every new page

    The Firefox Page Zoom feature does a domain by domain level of saving the users preferred zoom level settings, there is no default Page Zoom level setting in Firefox.
    Try the Default FullZoom Level extension: <br />
    https://addons.mozilla.org/en-US/firefox/addon/6965
    Or the NoSquint extension: <br />
    https://addons.mozilla.org/en-US/firefox/addon/2592/

  • Could not load file or assembly: crystaldecisions.windows.forms

    Post Author: glenn22
    CA Forum: Deployment
    I get the above error when I run my visual studio 2005 .Net application and attempt to view the embedded crystal report. I've deployed the application using the crystal reports merge module.... what would cause this issue?

    Post Author: ejthunder
    CA Forum: Deployment
    Hello,
    You didn't say which merge modules you deployed, and you didn't say which version of Crystal you're using.  With VS2005 you could be using the bundled CR.NET 2005 version (v10.2), or you could be using CR XI R2 (v11.5).  Each will have a different deployment process.
    Since you didn't post enough detail it's difficult to know where to direct you.  You can start at Crystal's merge module download page;
    http://support.businessobjects.com/downloads/merge_modules.asp
    For CR.NET2005 (bundled v10.2) you have to build your own setup package using these merge modules:
    http://support.businessobjects.com/downloads/merge_modules.asp#07
    This file name - Crystal Reports for .NET Framework 2.0 x86 Redistributable Package (32 bit)
    For CR XI R2 (v11.5) you can build your own setup package or download a prebuilt MSI from this link:
    http://support.businessobjects.com/downloads/merge_modules.asp#06
    crXIr2sp2_net_server_install.zip - Prebuilt MSI.crXIr2sp2_net_merge_modules.zip - build your own setup package.
    Be sure to read the deployment document linked here as well - crxi_r2_net_deployment.pdf.
    I hope this helps.
    EJ

  • Error message when displaying a report in a windows form

    Hi,
    use Cr 2008.SP3 Fixpack 3.5,
    Visual Studio 2008 prof. editon version 9.0.30729.1 SP,
    :NET Framework 3.5 sp1
    vb.net 2008
    when displaying a report in a Windows form sometimes the following error message appears
    System.NullReferenceException: Object reference not set to an instance of an object
       bei CrystalDecisions.Windows.Forms.PageControl.OnMouseMove(MouseEventArgs e)
       bei System.Windows.Forms.Control.WmMouseMove(Message& m)
       bei System.Windows.Forms.Control.WndProc(Message& m)
       bei System.Windows.Forms.ScrollableControl.WndProc(Message& m)
       bei System.Windows.Forms.ContainerControl.WndProc(Message& m)
       bei System.Windows.Forms.UserControl.WndProc(Message& m)
       bei CrystalDecisions.Windows.Forms.PageControl.WndProc(Message& m)
       bei System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       bei System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    The rest of the error message is in german:
    ************** JIT-Debuggen **************
    Um das JIT-Debuggen (Just-In-Time) zu aktivieren, muss in der
    Konfigurationsdatei der Anwendung oder des Computers
    (machine.config) der jitDebugging-Wert im Abschnitt system.windows.forms festgelegt werden.
    Die Anwendung muss mit aktiviertem Debuggen kompiliert werden.
    Zum Beispiel:
    <configuration>
        <system.windows.forms jitDebugging="true" />
    </configuration>
    Wenn das JIT-Debuggen aktiviert ist, werden alle nicht behandelten
    Ausnahmen an den JIT-Debugger gesendet, der auf dem
    Computer registriert ist, und nicht in diesem Dialogfeld behandelt.
    Thank you
    Otto

    Can you define "sometimes" a bit more?
    Is it after a number of runs of a report?
    Is it on a particular report?
    Is it after you do certain operations on the report (paging, zooming, dill down, print, etc., etc.)?
    Can you duplicate the issue if you isolate the report to a new test app?
    Did you happen to notice if the issue existed prior to FP 3.5?
    Is this on your dev computer or a client computer?
    OS?
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup
    Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

  • File or assembly name crystal decission.windows.forms or one of its depende

    I installed the version XI R2 , But when I compiled my program and installed it on my client machine, I get the following error:
    File or Assembly name CrystalDecisions.Windows.Form, or one of it's
    dependencies was not found.
    This statrted to happen only after installing the new ver.
    How do i find out, what dependencies are missing on the client machine. and how do I install/copy them
    One more thing Initially when this program was built and sent to my client I was on CR 8 then upgraded to 9 and then XI
    I use VB.NET ver 2003 as my front end.
    Tnx
    Michael

    This is a bit confusing
    What we know:
    VS2003
    CR XI R2
    The confusing part is this:
    CR 8 then upgraded to 9 and then XI
    and the error;
    File or Assembly name CrystalDecisions.Windows.Form, or one of it's dependencies was not found.
    CR 8 did not include any .NET SDK - only the Report Designer Component (RDC) was included (+ the win APIs)
    CR 9 did include SDK for .NET, RDC and win API
    CR XI R2 does not include win APIs.
    So the short of it is; what CR SDK are you using?
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup
    Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

  • How to hold back zoom level setting?

    Zoom level changes every time with opening page, & I want to keep already set zoom level ,as it happens in other browsers like Google Crome.How to keep zoom level always set ,at it's selected level? I tried with add on to solve this,but result was not so good.Hopefully you will help me...I enjoy FIREFOX..Thank you.

    The Firefox [https://support.mozilla.com/en-US/kb/Page+Zoom Page Zoom] feature does a domain by domain level of saving the users preferred zoom level settings, there is no default Page Zoom level setting in Firefox, as with some other browsers.
    Try the Default FullZoom Level extension: <br />
    https://addons.mozilla.org/en-US/firefox/addon/6965
    Or the NoSquint extension: <br />
    https://addons.mozilla.org/en-US/firefox/addon/2592/

  • Change zoom level like ie

    how to change zoom level like ie?
    == This happened ==
    Every time Firefox opened
    == n/a

    Default Zoom Level extension:
    https://addons.mozilla.org/en-US/firefox/addon/6965

  • How do i zoom in, in Forms Central?

    The font size is good for the document, but i want to be able to zoom in. How do i do this?

    Hi,
    Sorry, we are not supporting to zoom in in form design view. But for form filling page, you can zoom in directly using the browser. If you like, you may submit a feature request and vote it in http://forums.adobe.com/community/formscentral?view=idea.
    Actually there's a workaround for now if you really need to zoom. You may use the Magnifier of Windows. You can find it from Start->Accessories->Ease of Access->Magnifier. It's just a temporary solution. Please let me know if you have any more questions. Thanks!
    Kind regards,
    Shiyao Bao

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

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

  • I was viewing a page online, and somehow it zoomed out so the page is tiny in the browser window. How do I zoom back in?

    I was viewing a page online, and somehow it zoomed out so that the page is now tiny in the browser window. I've shut down all my windows and rebooted my computer, but every time I return to that page, it is still tiny. I've looked for a button to control the zoom, but cannot find anything. How do I zoom back out so the page is the correct size again?

    See this: <br />
    https://support.mozilla.com/en-US/kb/Page+Zoom

  • How to Clear all the data of open windows form of another exe?

    Hi,
    I want to make utility which will clear all the data from one windows application.
    i know the application name. The application of which data i want to clear is made in C# and contains many windows forms and controls.
    out of that opened windows form and controls inside it need to be cleared.
    Please guide on how to do this in C#?

    Short version: Find the window and send it a message with
    SendMessage.
    Open up Spy++ and find your form's window.  You will see that the window has children and they have classes of the form "WindowsForms10.EDIT.*"  Those are TextBox controls.  You can call things like SetWindowText to set the
    text of the window to clear it.
    To do this programmatically, you'll have to obtain the window hand that corresponds to the control.  You can find windows with
    FindWindowEx or
    EnumWindows.  Locate the window by name or class or whatever else you can determine about it.  Find the child windows and "clear" them however you wish.  I assume you mean to set empty strings to all the TextEdit controls. If you
    intend to do something more sophisticated than that, then you'll have to be more specific about what you mean by "Clear all the data".
    It may or may not be obvious that you'll be poking around with Win32 API calls via PInvoke to accomplish much of this. Example:
    SetWindowText via PInvoke.

  • How to create a setup for window form application including the related sql database?

    i have created a simple window form application project that have only 2 form..
    1st one for login in which it'll check the userid n password from database.if both are correct then it will go to 2nd form.
    now i want this project to run in another computer.
    i created a setup file but its showing some error regarding the database instances connection..
    so if anyone can tell me in details how to create the setup file then it'll b a great help..
    thanx in advance..

    Hi,
    Consider the above scenario,I suggest you to use the SQL Server Compact+ ClickOnce Deployment, A Compact SQL database is a file that can be bundled with your application installation. Below is a link guiding you through the creation process of a SQL Compact
    database.
    http://technet.microsoft.com/en-us/library/ms173009.aspx
    The following link discusses setting up the necessary dependencies and prerequisites for SQL Server Compact. (Note, you will need to scroll to the section entitled Private File–Based Deployment.)
    http://msdn.microsoft.com/en-us/library/aa983326(v=VS.100).aspx
    A ClickOnce Deployment can help you publish your application attach compact SQL database into client machine.
    Regards,
    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