Amazing thank you! I suppose the resource approach will have to suffice until then.
candy-man
@candy-man
Posts made by candy-man
-
RE: Complex use case access translations
-
Complex use case access translations
Im using the complex use case for accessing translations. As i see it the way to access the text you just need to use something like this:
{{translate "text1"}}
The question is how do i access data when i have to access property of an object?
{
"text1: "value1",
"object": {
"text2": "value2"
}
}
How would i access the "text2" value with translate method? -
RE: Set viewport height and viewport width from api call (dotnet)
This was exactly what was needed! Thank you very much!
-
RE: Set viewport height and viewport width from api call (dotnet)
I tried that first something like this:
var renderRequest = new jsreport.Types.RenderRequest
{
Template = new Template
{Name = "compare", ChromeImage = new ChromeImage { ClipX = 0, ClipY = 0, ClipHeight = 100, ClipWidth = 150, } }, Data = new { DataSeries = this.ChartService.DataSeries, Currency = this.ChartService.Currency, CultureName = this.ChartService.CultureName, SeriesColors = this.seriesColors, FontSize = this.ChartService.CustomSettings["fontsize"] }, };
but the result is that the height and width are set as default then 800 and 600 so when i clip it i get part of the picture
![alt text]( image url)
i need to change these values
![alt text]( image url)
i can't seem to find how to do this
-
Set viewport height and viewport width from api call (dotnet)
Is there a way to achieve this, I'm using handlebars, chrome-image
In dotnet using jsreport.Client im calling something like this but it doesn't work:
var renderRequest = new jsreport.Types.RenderRequest
{Template = new Template { Name = "compare", Chrome = new Chrome { Width = $"{100}px", Height = $"{150}px", }, }, Data = new { DataSeries = this.ChartService.DataSeries, Currency = this.ChartService.Currency, CultureName = this.ChartService.CultureName, SeriesColors = this.seriesColors, FontSize = this.ChartService.CustomSettings["fontsize"] }, };
for chrome image I see I can only set clip sizes but I want to set the viewport width and height as a whole
-
Text not breaking to another page correctly for non english letters
I have this issue. Any suggestions? -
RE: Footnotes - reference dynamic data sent by API request
Thank you! This was exactly what I was looking for.
-
RE: Footnotes - reference dynamic data sent by API request
Something like this:
https://playground.jsreport.net/w/candy-man/6dYYoqte
Check the mock data. Based on that i would like to render footnotes, but since the paragraph can be on any page, since data is dynamic coming from an API call, i need a way of connecting those footnote text to the page where that paragraph is located. You will see that im also using the header-footer template with it, so i would like that text to be moved there. Is there a way of achieving this? -
Footnotes - reference dynamic data sent by API request
Hi, is there a way to reference and add footnote dynamically? Since I'm getting data from an API call I don't know on what page the text with a footnote reference will be so I can't statically add a footnote to reference it. Is there a way of knowing where on what page the reference to the footnote is and then add the footnote there?
-
Element to span all pages
Is there a best way of doing this? If i set the element height to be 100% it will only span to the first page. I found a way of handling this but i first have to render a template, get the number of pages and based on that set the height of the element. So I'm wondering if there is a better way of doing this?