I currently have a code with iText to create PDF with a fixed address in this case:
PdfWriter writer = PdfWriter.GetInstance(doc, new FileStream("C:/Atreus-Export/presupuesto.pdf", FileMode.Create));
My question is how can I make the PDF name depend on a variable. I've tried with:
PdfWriter writer = PdfWriter.GetInstance(doc, new FileStream("C:/Atreus-Export/" + tb_name + ".pdf", FileMode.Create));
But I miss error when creating it:
System.NotSupportedException: "The provided format of the path is not supported"