Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

script in the event #740

Open
murilo29 opened this issue Feb 12, 2025 · 9 comments
Open

script in the event #740

murilo29 opened this issue Feb 12, 2025 · 9 comments

Comments

@murilo29
Copy link

Good morning.
I'm trying to use the "BeforePrint" event of the PictureObject object In order to load images dynamically.

Image

When calling the "Prepare()" method of the "Report()" object, an error is occurring.

Image

Informing not to use "Combine and Exist" methods. Does this happen due to limitations of the OpenSource version?

@BogdanStegachev
Copy link

Hello!

Thank you for your contact!

You will be able to transfer the image using the report script as shown in the example below or as shown in our article: https://www.fast-report.com/blogs/picture-from-user-code.

Report: TestEm (3).zip

Best regards,
Bogdan

@murilo29
Copy link
Author

Olá!

Obrigado pelo seu contato!

Você poderá transferir a imagem usando o script de relatório, conforme mostrado no exemplo abaixo ou conforme mostrado em nosso artigo: https://www.fast-report.com/blogs/picture-from-user-code .

Relatório: TestEm (3).zip

Atenciosamente, Bogdan

No problem and loading the image. Code inside the IF statement is working. I would like to understand the reason for the error. Just a simple instruction to concatenate string and know if the file exists.

@BogdanStegachev
Copy link

Does this behaviour only occur when loading a report via code?

Best regards,
Bogdan

@murilo29
Copy link
Author

Esse comportamento ocorre apenas ao carregar um relatório via código?

Atenciosamente, Bogdan

asp.net code
Image

@BogdanStegachev
Copy link

Hello!

Could you please send your test report with StoreData = true property enabled as shown below for testing purposes

Best regards,
Bogdan

Image

@murilo29
Copy link
Author

murilo29 commented Feb 12, 2025

Olá!

Você poderia enviar seu relatório de teste com a propriedade StoreData = true habilitada conforme mostrado abaixo para fins de teste?

Atenciosamente, Bogdan

Image

following report I don't know if it would help as it has PostgreSQl data sources.

Expected path in concatenation would look like this.
"C:\Florido\Imagens\6057.jpg"

ImovelFicha.zip

@BogdanStegachev
Copy link

Hello!

Could you please let me know if this behaviour is reproduced when using FastReport.Core and FastReport.Web packages in your application?

Best regards,
Bogdan

@murilo29
Copy link
Author

Olá!

Você poderia me informar se esse comportamento é reproduzido ao usar os pacotes FastReport.Core e FastReport.Web em seu aplicativo?

Atenciosamente, Bogdan

Hello, I am using following packages

Image

@BogdanStegachev
Copy link

Hello!

This error did not reproduce on our test project and test reports

I send you our project for testing: https://www.dropbox.com/scl/fi/8yjh4dakvcm7xjktcmox3/FastReport.Core-OnlineDesignerTrial-1.7z?rlkey=rcfv12lb5e1pakzid5qeu6yhj&st=izelyoyv&dl=0.

Best regards,
Bogdan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants