Announcement

Migration of this forum

Dear users of this forum,

we are pleased to inform you that we will be updating the software behind this forum in the near future.

Existing posts, users and categories will remain untouched.

Important:

  • Each user will need to reset their password.
  • Please select "I forgot my password".
  • Enter the email address you used to register in this forum.
  • You will receive an email with a link to set a new password.
  • Please choose a new (secure) password and confirm the process.

We will keep you informed in the pinned thread.

Kind regards,
Your ReportServer Team


Migration des Forums

Liebe Nutzer dieses Forums,

wir freuen uns, euch mitteilen zu können, dass wir in naher Zukunft die Software hinter diesem Forum aktualisieren werden.

Existierende Beiträge, Nutzer und Kategorien bleiben weiterhin bestehen!

Wichtig:

  • Jeder Nutzer muss sein Passwort neu vergeben.
  • Wählt dazu einfach "Ich habe mein Passwort vergessen".
  • Gebt die E-Mail-Adresse ein, mit der ihr registriert seid.
  • Ihr erhaltet eine E-Mail mit einem Link zur Passwortvergabe.
  • Bitte wählt ein neues (sicheres) Passwort und bestätigt den Vorgang.

Wir halten euch im angepinnten Beitrag auf dem Laufenden!

Mit vielen Grüßen
Euer ReportServer Team

#1 2022-05-18 15:34:51

bwgoodall
Member
Registered: 2021-01-28

Unwanted .csv filename suffix

Hi All... I'm hoping you can help (I'm fairly new as a user on ReportServer).

I am using the scheduler to export a report to an ftp directory using a datasink. The report is arriving okay and the contents are okay (it is a flat text file). My customer wants the file naming as "myfilename.txt", however reportserver seems to corrupt the name by always adding ".csv" suffix on the end.

I understand that it is being exported as a "CSV" file (Export Type), but that is only because there is no other option for a text file.

Is there a way to stop the extract routine corrupting my file name?

Apologies if this is documented, I have looked, but I can't find any reference.

Thanks!

Offline

#2 2022-05-27 11:50:36

IF_Eduardo
Administrator
Registered: 2016-11-01
Website

Re: Unwanted .csv filename suffix

Hi bwgoodall,

you can add custom report exports as explained here: https://reportserver.net/en/guides/scri … Executors/

"In this chapter we go through the necessary steps to add custom additional report exporters, for example to export dynamic lists into a custom text-based format"

If you use the "CompiledTxtReport" this should work.

You can also try to change the file name in the csv export with a hook, pls take a look here: https://reportserver.net/en/guides/scri … ortServer/

Regards,
Eduardo

Offline

Board footer

Powered by FluxBB