Hi bjrmatos,
Thank you a lot. I checked and it worked wonders.
Thank you once again.
All the best,
Matkoe
Hi bjrmatos,
Thank you a lot. I checked and it worked wonders.
Thank you once again.
All the best,
Matkoe
For reference, here's an image.
I want to be able to pass the values of startDate and endDate to my template folder. The values are set from my backend software.
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,
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
Hi,
I've been using JSReport for a little while now, and have stumbled upon an issue that I've not yet found an answer to.
So, I'm using a logic file to fetch the necessary data, including parameters (in this case startDate and endDate). The parameters each has their own variable that is set from the software I use when executing the report.
What I want is to be able to in the template file, using HTML/CSS/JS, be able to in a h1-tag showcase the start- and endDate.
Is there a way to do this? As mentioned in the start, JSReport is kinda new to me and not really familiar with handlebars, etc.
Thank you, all the best.
Matkoe
I am currently experiencing an issue I can't seem to resolve.
When fetching from the API, I am unsure what response body I am getting. Since the code is executed from elsewhere and params are only initialized then, I am not able to debug in the JSReport since values are set when executing.
Using Handlebars, I would like upon execution to display the entire body in the PDF-output. Is there a way?
Have tried with the #each result /each but get [object, Object]. Have also tried stringify but to no avail.
If anyone has a clue, please let me know.
Thanks in advance!
I'm fairly new to jsreport, and javascript in general (mostly done programming & testing in python) and I have stumbled upon an issue that I can't resolve on my own.
I am trying to fetch data from a database using parameters, but can't seem to figure out the data the parameters hold and how to call them. Basically, when executing the script in JSReport I get a:
"TypeError: Cannot read property 'parameter-name' of undefined", but when executing the script from the database side, the values are shown.
Does anyone have a solution or an idea?
(For security reasons, I don't think I am able to display the code here sadly.)