We use Creatio 7.18.

I am trying to setup a FastReport as part of which I am trying to populate a table with Reportees of the current user.

I used below to get current user id, but it returns “Supervisor” user (reference - https://community.creatio.com/questions/terrasoftsysvaluecurrentuservalue-equivalent-c).

Can anyone help with the correct way to get Current user Id in Source Code for Data Provider class to setup FastReport?

 

var appConnection = HttpContext.Current.Application["AppConnection"] as AppConnection;

var currentUser = appConnection.SystemUserConnection.CurrentUser;

var userId = currentUser.Id;

Like 0

Like

2 comments

App connection always returns "Supervisor" since this user is a system operations user. If you need to get the current user who manually triggered report generation and the custom code you need to use the same approach but with using UserConnection instead of appConnection (as Ryan described in his first example):

var currentUser = UserConnection.CurrentUser;
var userId = currentUser.Id;
var userName = currentUser.Name;

Or maybe I didn't understand the required result:)

Oleg Drobina,

My bad! I misunderstood his statement. Since I was trying it out in a source code schema and not a script task, I only tried using the 2nd method. The 1st method correctly returns the required information. Thanks for pointing that out, Oleg!

Show all comments

Hello,

 

as we use non-standard font for our report, it should be embedded into result pdf-file. FastReport has this option during export to PDF. But how can we achieve the same from Creatio?

Like 2

Like

3 comments

Hi Vladimir!



Fonts should be installed on the IIS side and the template also needs to be set up correctly to make them available.



The following instructions can help you to achieve the result you are looking for:

https://www.fast-report.com/en/blog/show/custom-fonts-online-designer/

Pavlo Sokil,

Thank you, Pavlo!



We have installed fonts on our Dev IIS server and it works.

But when customer has done the same, on their Test server it works, but on Production - not.



Can you give any idea what can be checked more?



Thank you!

Vladimir

Hi Vladimir.



There are several possible reasons why a custom font added to IIS for Fast Reports may work for one site but not for another, even with the same settings. Here are a few possible reasons:

  1. Different versions of IIS: If the two sites you are configuring the custom font for are running on different versions of IIS, this can cause compatibility issues. Therefore, depending on which version of IIS your sites are running on, you should use the corresponding version of the custom font.

  2. Different IIS settings: Another possible issue is different IIS settings on different sites. For example, if one site is working with custom fonts over HTTP, and another is over HTTPS, this can affect how the fonts are displayed on the site.

  3. Different font locations: It's possible that the fonts are not located in the same place on two different servers, and this can cause issues with loading the fonts on one of the sites.

  4. Caching: If the font is added to one site, and then you add it to another, the browser may have a cached copy of the old version of the font. This can cause the font to not change when you switch to the other site.

  5. If this is a self-hosted font, it may be necessary to modify the hosting settings of the font to allow access from other domains (perhaps by adding the instance address of Creatio to the Allowed domains list).

To address these issues, make sure you are using the correct version of the font, check if the settings are the same on both servers, make sure the fonts are located in the same place, and clear the browser cache.

Show all comments

Dear team, 

As documentation says that FastReport functionality will be retired in Creatio version 8.0.3, I am wondering if you plan to replace it with other functionality?

 

Looking into documentation, it seems that Word printables does not allow to create a macros to calculate a value straight away, and FastReport does allow to do so.

 

Kind regards, 

Tatiana

Like 1

Like

4 comments

I am also curious if there will be a replacement. 

However, we've been doing some very complicated Word printables using a combination of macros and db views. It's turned out to be pretty powerful. 

You can create custom macros for Word docs. The macros can do queries, calculations, even return conditional text as needed. Here's a very simple example in this article: https://customerfx.com/article/creating-custom-macros-to-format-values-…

That example in the article only takes a value and returns it formatted. However, we typically will pass an Id to the macro, do queries and other complex calculations and return values, text, etc. Note, to do queries in a macro you'll need a UserConnection which you can get from the session:

var userConnection = (UserConnection)System.Web.HttpContext.Current.Session["UserConnection"];

Hope this help, it doesn't answer your original question, but wanted to mention that macros for Word printables is possible and does at least bridge the gap with creating more complex Word reports with FastReports being retired. Also, creating db views and exposing as entities has been very useful for more complex Word reports as well.

Ryan

It would be nice to have normal Report designer/generator, cause not all customers use MS Word in their organizations. 

Vladimir Sokolov,

I do agree. Plus, there are some scenarios where a Word report will just not cut it. I have some customers that are producing government forms which have extremely strict formatting requirements (that are just not possible to recreate as a Word document) or they will be rejected.

I do hope there will be a replacement for FastReports at some point. It's possible to do some complex things with a Word report, but it's still no replacement for a full reporting solution.

Hello Team

 

Any news on FastReport's replacement?

 

I have been using FastReport editions for my opportunities for two years (10 models), my edition models were stable and I had not seen this future deletion pass...



Except that today, I need to create a new model and I can't...

So I'm stuck... But above all, I would like to anticipate the future...

 

Best regards

 

Vincent

Show all comments
Question

Has anyone used the Fast Reports?

 

I'm having really difficulty getting anything, just can't use. 

Can anyone help me please?

 

Like 1

Like

2 comments

Hello Nicola,



Your question is related to the functionality available within the marketplace application.



This add-on was developed by support@crm-bpm.ru



So, please, feel free to ask your questions regarding this functionality. 



Best regards,

Bogdan

 

Bogdan,

many thanks Bogdan

Show all comments

Hello community,

 

I use the [Process file] business process element to generate custom FastReports to print my opportunities.

I succeeded in generating PDF as Attachments, but I would like to download the PDF instead.

 

Do you think this is possible? If so, how to proceed?

 

Thanks

Like 2

Like

2 comments

Hi Vincent, 



Unfortunatelly there are currently no option to automatically download the attachment using the business process. 

As a workaround you can set up an autogenerated page that would show the link to the file, so you'd need to make one more click to download the file rather then going to the section and downloading it from there. 

In order to build the link please refer to this community post: https://community.creatio.com/questions/link-attachment-file



I'll also register an idea for our developers to implement such functionality in future releases of the app. 



Best regards,

Yurii

Yurii Sokil,

 

 

I'd love to see a download trigger in Business Process as well.

Show all comments

Dear Creatio Team,

I am working on Creatio reports using FastReport. It is required to create tables inside rich text of Fast report and upload frx file to generate the output. But the output doesn't show the table in the rich text as it gets shrunk to a single cell every time. I have attached the snapshot of the RTF table in the fast report and its output in creatio.

RTF Table

Creatio output of this table

It can be seen in the output file that all 6 cells of the table are shrinking to a single cell. Is there any problem with the RTF code or in Creatio Fast report integration.I have attached the RTF code used to build this table in the Fast report.Please provide a solution to my query.

File attachments
Like 0

Like

4 comments

Hello Akash!



In order to solve the issue, it's necessary to do the following steps:

 

On the Creatio side:



1. Create the fast report record in the "Reports" section and create the FastReport data provider source code in configurations.

2. Create the DataProvider source code. 



Once the DataProvider is created data was sent to the FastReport template for further processing. From now development starts which is not related to Creatio functionality - FastReport template logic modification.



On FastReport side:

 

3.  There is a "Code" tab in the FastReport template designer. There you need to write logic for String formation (here you can find some examples of how to do it https://docs.microsoft.com/en-us/dotnet/api/system.string.format?view=n…)

 

Here is the link to the article on Creatio Academy for your reference https://academy.creatio.com/docs/developer/elements_and_components/repo…

 

In addition, please check the link of FastReport academy https://www.fastreport.ru/public_download/html/UserManFrNET-en/index.ht… where you can find information on how to operate with data sources, system variables, report parameters and so on.

 

Best Regards,

Tetiana Bakai

Just confirming- Do I need to make a table in RTF by writing logic for String formation in Code tab of Fast Report?

Hello Akash!



Yes, you are right. You need to make a table in RTF in the Code tab of Fast Report.



Best Regards,

Tetiana Bakai

Thank you Tetiana for your solution. It will be easier to work for small tables. But I work mostly with complex tables of 8" size and it will be quite time-consuming to prepare each cells by code. In such a case, is there any other lesser time-consuming solution?

Show all comments

Hello all,

 

I created a report with FastReport, everything is good and functional, and my data is correctly printed.

My report is accessible at the opportunity edition level, it is called "Opportunity Quote", the output therefore generates a file named "OpportunityQuote.pdf".

I would like to customize the name of the generated file with for example the name of the customer and the date of issue, or ideally with a custom field that contains a unique opportunity number.

Is it possible? How to proceed?

 

Thank you in advance.

 

Vincent

Like 0

Like

1 comments

Hello,

 

As for now there is no option to change the file name dynamically or assign some particular name at least Opportunity Quote. We have this task registered in our backlog so this option will be available in future application versions.

 

Regards,

Dean

Show all comments

Hello collegues,

 

I saw the process have an script to generate a MSWord Printable, I need to get one to generate a FastReport printable, somebody can help?

 

The code in this case to MSWord printable is 

var reportService = new Terrasoft.Configuration.ReportService.ReportService();
Terrasoft.Configuration.ReportService.ReportData report = reportService.GenerateMSWordReport(
    (PrintableId.ToString()), ObjectId.ToString(), ConvertToPdf);
var entity = UserConnection.EntitySchemaManager.GetInstanceByName("labQuoteFile");
var fileEntity = entity.CreateEntity(UserConnection);
fileEntity.SetDefColumnValues();
fileEntity.SetColumnValue("labQuoteId", QuoteId);
fileEntity.SetColumnValue("TypeId", AttachmentType);
fileEntity.SetColumnValue("Name", FileName);
fileEntity.SetColumnValue("Data", report.Data);
fileEntity.Save();
return true;

Thanks in advance

Like 0

Like

1 comments

Hello Julio,

 

I've noticed that you've already found the solution to this question in terms of this community post. Please specify if additional help is needed in this thread.

 

Thank you!

 

Best regards,

Oscar

Show all comments