Ir para conteúdo
  • Cadastre-se

Fortes RLReport + RLPDFFilter: constant "Range check error"


Ver Solução Respondido por EDW,
  • Este tópico foi criado há 860 dias atrás.
  • Talvez seja melhor você criar um NOVO TÓPICO do que postar uma resposta aqui.

Recommended Posts

Postado

Good evening,

I use DELPHI 11.3 Community.

My fortes reports work fine, but I can't save them as PDF.
I have tried to generate a PDF file with a RLPDFFilter on a RLReport:
- using RLReport1.PreviewModal or RLReport1.Preview: I see "Use Filter" = "PDF Document" in de the SAVE-dialog. I always get a "Range Error Check" and the writing of the PDF stops after 163bytes (= after the first ">> endobj"). See attachment e10.PDF.
- same error and same 163 bytes using different combinations of prepare/filterpages/savetofile.

A had the error with a "normal" complex report and with an extremely simple report (test app in attachment).

Is there someone who has a solution ?

TEST_PDF.identcache TEST_PDF.dsk TEST_PDF.res TEST_PDF.dpr TEST_PDF.dproj.local TEST_PDF.dproj TEST_PDF_form.pas TEST_PDF_form.dfm e10.pdf

  • Consultores
Postado

 

Consultora ACBr Pro

Juliomar Marchetti

Ajude o Projeto ACBr crescer - Seja Pro

discord: juliomar
telegram: juliomar
e-mail: [email protected]
http://www.juliomarmarchetti.com.br

 

MVP_NewLogo_100x100_Transparent-02.png
Projeto ACBr - A maior comunidade Open Source de Automação Comercial do Brasil


Participe de nosso canal no Discord e fique ainda mais próximo da Comunidade !!

  • Solution
Postado

Hello,

I found the problem:
- the "FILTROS"-demo worked normally (I could save as PDF without problems);
- the only difference between the demo and my apps was the DPROJ-file: my project settings had Overflow checking and Range checking on (in debug mode).
After unchecking both settings I was able to generate a PDF without errors.

So I added {$Q-} and {$R-} in RLPDFFilter.pas.

  • Consultores
Postado
18 minutos atrás, EDW disse:

Hello,

I found the problem:
- the "FILTROS"-demo worked normally (I could save as PDF without problems);
- the only difference between the demo and my apps was the DPROJ-file: my project settings had Overflow checking and Range checking on (in debug mode).
After unchecking both settings I was able to generate a PDF without errors.

So I added {$Q-} and {$R-} in RLPDFFilter.pas.

pull request in github project

 

Consultora ACBr Pro

Juliomar Marchetti

Ajude o Projeto ACBr crescer - Seja Pro

discord: juliomar
telegram: juliomar
e-mail: [email protected]
http://www.juliomarmarchetti.com.br

 

MVP_NewLogo_100x100_Transparent-02.png
Projeto ACBr - A maior comunidade Open Source de Automação Comercial do Brasil


Participe de nosso canal no Discord e fique ainda mais próximo da Comunidade !!

  • Este tópico foi criado há 860 dias atrás.
  • Talvez seja melhor você criar um NOVO TÓPICO do que postar uma resposta aqui.

Crie uma conta ou entre para comentar

Você precisar ser um membro para fazer um comentário

Criar uma conta

Crie uma nova conta em nossa comunidade. É fácil!

Crie uma nova conta

Entrar

Já tem uma conta? Faça o login.

Entrar Agora
×
×
  • Criar Novo...

Informação Importante

Colocamos cookies em seu dispositivo para ajudar a tornar este site melhor. Você pode ajustar suas configurações de cookies, caso contrário, assumiremos que você está bem para continuar.

The popup will be closed in 10 segundos...