Setup lanscape orientation in RS

Hi,

I want to setup my report in landscape format.

How do I do it

I have altered the report margin in report properties.

However if we export the report to PDF – still goes to portrait format.

Even though in pdf itself I have changed the print setup to landscape, but it doesn’t change anything.

Can anyone give suggestion

Thanks,

Susan



Answer this question

Setup lanscape orientation in RS

  • Somoorthi

    Yes I have changed it but it still can appear it as landscape
  • kishan_99

    Thanks I can change it now
  • orekin

    Hi,

    You have to change the Width and Height property of the Report itself.

    HTH


  • e_LA

    Hi,

    I've got a similair problem, I've changed the width and height settings, like you said. And the report appears just fine.

    But when I save as pdf (through code), it still appears as portrait.

    This is my saving code:

    #region Execute the report

    rs.SetExecutionParameters(parameters, "nl-BE");

    try

    {

    executionResult = rs.Render(format, devInfo, out extension, out encoding, out mimeType, out warnings, out streamIDs);

    execInfo = rs.GetExecutionInfo();

    }

    catch (SoapException se)

    {

    throw new Exception(" * " + se.Detail.OuterXml);

    }

    #endregion

    #region Write the contents of the report to a file.

    try

    {

    FileName = m_TempPath + ce.ContractNr + "_" + "." + format;

    pdfFile = new FileInfo(FileName);

    FileStream stream = File.Create(FileName, executionResult.Length);

    stream.Write(executionResult, 0, executionResult.Length);

    stream.Close();

    }

    catch (Exception xe)

    {

    GeneralFunctions.ShowError(xe);

    }

    #endregion

    Is there a way that I can force to save with orientation landscape

    Thanks in advance


  • Jain Johny

    hi,

    by default the width of the report is set to 8.5 inches and the height of the report is set to 11.5 inches.

    just interchange the values..

    In simple words,

    if height > width then the report would would be in portrait style

    if height<width then the report would be in landscape style.



  • Setup lanscape orientation in RS