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
-
hi! in the studio ui there is an option to control this, look for "chrome pdf" and check the "landscape" box.
-
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.!
my innerpdf content as slightly changed but my overall pdf as still portraits
-
Thanks its working fine , i changed media type as screen also