When saving PDF file spaces are replaced by "%20" (without quotation marks)

Asked

Viewed 50 times

0

I am using Interop to create a word document and at the end save it in PDF, everything goes well except the file name, and I used this path to save it.

var NovoDocumento = "C:/Users/Bird/Desktop/PTD´S/" + tbNomeProf.Text + " - " + tbMateria.Text  + ".pdf";

Everything is fine except that spaces are replaced by %20

The file name was supposed to be like this

Leandro Ferro -  Sistema de Tratamento de Água e Resíduos.pdf

but it’s coming out like this

Leandro%20Ferro%20-%20%20Sistema%20de%20Tratamento%20de%20Água%20e%20Resíduos.pdf

1 answer

-1

  • 1

    Backslash, right? There’s also the fact that AP didn’t say anything about downloading, since its source is specific about downloading

  • I think the backslash should work, really

Browser other questions tagged

You are not signed in. Login or sign up in order to post.