how to change my pdf reports as landscape mode



  • Hi i am new on report js. i would like to change my pdf reports as landscape.i am using chrome pdf


  • administrators

    hi! in the studio ui there is an option to control this, look for "chrome pdf" and check the "landscape" box.

    0_1629912726597_Captura de pantalla 2021-08-25 a la(s) 12.30.29 p. m..png



  • Hi,

    I'm fairly new as well. But if you're using the JSReport Studio, to the left where you have "chrome pdf" located, click it and there should be a check-box named landscape.

    Otherwise, you can set it using:
    HttpContext.JsReportFeature().Recipe(Recipe.ChromePdf)
    .Configure((r) =>
    {
    r.Template.Chrome = new Chrome {Landscape = true};
    });

    Hope it helped,
    Hazvick



  • Thank you for the response, i checked the landscape but not reflecting



  • Then it should be able to set it through:
    HttpContext.JsReportFeature().Recipe(Recipe.ChromePdf)
    .Configure((r) =>
    {
    r.Template.Chrome = new Chrome {Landscape = true};
    });

    All the best



  • hi may i know where its applied. i provide inside script but not affect.!0_1629952535590_upload-febaa6aa-5346-4082-a0a8-b3dcc842b1e9

    my innerpdf content as slightly changed but my overall pdf as still portraits



  • Thanks its working fine , i changed media type as screen also


Log in to reply
 

Looks like your connection to jsreport forum was lost, please wait while we try to reconnect.