Not save PrinterName?

Hi, I noticed that in a Calc template of mine my printer name is saved as a parameter in “settings.xml”.

I want to share this template with some other people, so there is no use of my printer name being stored.

Is there any way to prevent my printer name from being stored as a parameter in settings.xml?

Hi,

The only way I know how to do it is a bit complicated.
I made a very quick youtube video showing how to do it: https://youtu.be/ntSOVn_LUBc
(sorry mouse was acting weird during recording)

Basically you have to download this program and install it:
http://archive.editix.com/download.html

Once it’s installed, open it and go to file → open and select ‘all files’ instead of ‘xml files’ then select your libreoffice office document and open it.

On the left you should see a file called ‘settings.xml’, double click on it. Press Ctrl+F and search for ‘PrinterName’ and press enter. Then use the right arrow key on your keyboard and keep pressing it until you see the name of your printer. It should look something like this:

<config:config-item config:name="PrinterName" config:type="string"/>THIS IS YOUR PRINTER

Just delete the name of your printer and press Ctrl +S to save the file.

Now you can exit the program and the file shouldn’t contain your printer name anymore. Don’t open it though because that might add the printername again.

If I didn’t explain it well, or you have questions, feel free to ask :slight_smile:

Thanks for your reply! However my question was not how to delete the PrinterName from the file, I can easily do that with Notepad :-))) I wanted to know if there is a way to prevent my printer name from being stored in the beginning. Why is my printer name stored, and how can I prevent that? If I delete it and I need to change something in the file, the printer name will be stored again I assume. I need a solution where my printer name doesn’t get stored at all. Is that possible?