PDF filename

Hi!

Is it possible to give/set pdf file name by our self? Now it is generating file with file name which is too long.
I didn’t find any settings to set it in the pdf application type.

Thanks!

Re: PDF filename

I would like to know how to do this too. Need to set pdf file name to a variable.

Thanks

Re: PDF filename

Lets request this feature to Netmake then :). I have done it already.

Re: PDF filename

Thanks Ishwor.

Re: PDF filename

thats cool ishwor.
i want that features also.
for the meantime i think it is
possible to generate pdf in scriptcase and rename it before save.haha

regards,
ghulma

Re: PDF filename

:smiley: Yes, its possible to rename before saving it as you said. I said the same to my client but he wouldn’t go for it :).

The feature would be good addition.

Let’s wait and see.

Re: PDF filename

The solution we found for this is to use the sc_pdf_output() Macro.

Just definde a filename, which is passed to the report application as parameter, then in Code use

sc_pdf_output([myFilename],"F")

to save the document to the server or

sc_pdf_output([myFilename],"D")

to download a named file.

Re: PDF filename

tnx KdoubleU.

Hi People
i try to use sc_pdf_output([myFilename],“D”)

but it doesn’t work.

the way i found to change the Filename in run-time
is:

$this->nm_path_pdf = ‘name.pdf’;

any suggestion about how to work with sc_pdf_output

i’am using ScripCase 6.00.0039

Hello jjhermosillo,

Please contact our support regarding this issue. Our chat is active on workdays from 8:00am to 6:00pm, and our ticket system is always available.

regards,
Bernhard Bernsmann

Is there someone who managed to get it working?

Tried to set the sc_pdf_output($Name.".pdf",“D”); makro in PDF Report -> Layout PDF -> Code.

  1. It taked a really long time to generate.
  2. The filename is set, but it is set only to a part of $Name and the “.pdf” is lost .
  3. The generated pdf is missing the details section.

What I am looking for is a way to set the name of the file, even it is saved, mailed or only shown in the browser in the normal PDF Report -> Events section.

Also tried the suggested solution: $this->nm_path_pdf = ‘name.pdf’;
Has no effect …

Someone having ideas???

BR

Eric

Coming back to this topic, I can say, I managed to change the name of the file which is saved on the server.
sc_pdf_output([Name].".pdf",“F”); makro in PDF Report -> Layout PDF -> Code is renaming the file

Sounds nice, but now the file which is generated is corrupt and unreadable …

Anyone having the same problem or an idea for a solution?

P.S. do not know what the problem was, I renewed the pdf-layout part, and it is working now …

[QUOTE=kwittig;8692]The solution we found for this is to use the sc_pdf_output() Macro.

Just definde a filename, which is passed to the report application as parameter, then in Code use

sc_pdf_output([myFilename],"F")

to save the document to the server or

sc_pdf_output([myFilename],"D")

to download a named file.[/QUOTE]

Hi! I’m reading this post.
Can you please explain where I must write that macro?
[myFilename] is a variable?
I’m stopped with this issue, and found this thread. Can you please help me?
Thanks in advance.

[QUOTE=hikiboy;24316]Hi! I’m reading this post.
Can you please explain where I must write that macro?
[myFilename] is a variable?
I’m stopped with this issue, and found this thread. Can you please help me?
Thanks in advance.[/QUOTE]

based on context (I didn’t readed the thread), onApplicationInit is where macro should be writed.
Yes [variable] are “globals” variables.

your variable $this, what is it exactly ?