question on crystal report in Asp.net

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • punitshrivastava
    New Member
    • Jul 2007
    • 22

    question on crystal report in Asp.net

    Hi to All,
    I am punit Shrivastava . I am working on Asp.Net using C#.
    i created crystal report .but i want to use land scape in this report .and also give the feature for print .which is instal in my local system .please suggest me what code i have to done for using land scap and print that report using printer which is install in my local system.

    Please suggest me .As i am new in Asp.net with C#.


    Thanks
    Punit Shrivastava
  • dip_developer
    Recognized Expert Contributor
    • Aug 2006
    • 648

    #2
    Originally posted by punitshrivastav a
    Hi to All,
    I am punit Shrivastava . I am working on Asp.Net using C#.
    i created crystal report .but i want to use land scape in this report .and also give the feature for print .which is instal in my local system .please suggest me what code i have to done for using land scap and print that report using printer which is install in my local system.

    Please suggest me .As i am new in Asp.net with C#.


    Thanks
    Punit Shrivastava
    Right click on the Report...go to Designer------> Printer Setup...------> In the printer setup window make the Orientation to Landscape

    for printing follow this code....you can also set the orientation in code ............... ..

    [CODE=css]
    CrystalReport1 MyReport = new CrystalReport1( );
    MyReport.PrintO ptions.PaperOri entation = CrystalDecision s.Shared.PaperO rientation.Land scape;
    MyReport.PrintO ptions.PrinterN ame = HP;
    LaserJet6L;
    MyReport.PrintT oPrinter(1, false, 0, 0);
    [/CODE]

    Comment

    Working...