Hello. I'm trying to print some text using printDocument. I've managed to print out the text I need into a pdf. The text is taken from the database which is initially made when the windows form loads.
The problem is: Once it prints, it shows the pdf, which is fine but when I return back to the program and trigger something that requires the database. It shows an error: "no such table: [tablename]".
I know it's something to do with the current folder location because if I choose the print location to be, for example: Documents and I also place a copy of the database.db3 file in that same location, there are no errors.
I don't think its a good idea to go around copying the db3 file to the location where the print is going to :P
Thanks.