PDA

View Full Version : saving a file in sdcard



vinaysagar
12th August 2014, 08:59
Hello
i'm new to Qt. i want to save a pdf file in sdcard n in results folder, but pdf report is generated outside the folder in sdcard. plz help me to solve this

filename_pdf.clear();
filename_pdf.append(filename);
filename_pdf.append("sdcard/results/reports");
filename_pdf.append("_Report");
filename_pdf.append(".pdf");

Lesiok
12th August 2014, 10:02
Because the resulting file name is "filenamesdcard/results/reports_Report.pdf". I do not think it was what you mean.

vinaysagar
12th August 2014, 10:19
nope
i want the report to be save in sdcard/results/reports.
plz tell me a way to do it.

anda_skoa
12th August 2014, 10:27
In imperative lanuages such as C++, the order of statements matters.
They are basically executed from top to bottom.

Cheers,
_