<p>How to create new PCL file similar to existing MS doc. I have MS doc template and replacing it with actual data. I need to achieve same for PCL format (Create PCL file as template and replacing it with actual value from database and send it to fax).</p>

install a new printer
when asked for a port, create a new port of type "Local Port"
as name of the port, enter some file name, e.g.
```
c:\temp\print.pcl
```
select some PCL-compatible printer, e.g. HP LaserJet 4, or whatever your fax is comptaible with
When you print to this printer, Windows will write the output to that file.
Many programs allow you to redirect printing to a file; in this case, you'd be able to select a different file name for each print job.