Hi Thanks to everyone who has responded with useful suggestions.
Matt - Ian suggested you look at the Merge in another series and I see you have tried it now. This is the easy way and it solves entering the results multiple times.
Automating it much more I personally feel makes it very complicated to the extent that not many would use it. Deleting race 1 is only necessary the first time you import into a completely empty series file, and this is only a two second job If you start with a copy of the file you are using then you don’t even need to do that.
Although your goal of a fully automated multi-series sounds nice in practice there are lots of things that can change for series results compared to the original race.
Even things such as the title and the venue will As will discard profiles and even some of the scoring codes could have different values for the series.
I personally feel setting up all these special rules will take you more time and are more prone to error than just merging it into a series file.
Please remember that although I could write something that might work for you it would most likely not work for someone else.
I do the scoring for the UK windsurfing association and I merge results after each event and it takes only a couple of minutes. But as always in life there tend to be special rules. e.g. in windsurfing techno class if a sailor moves from the 6.8 class to the 7.8 class then there results for the 6.8 class stand but once they have switched from 6.8 to 7.8 they can not go back. This is so they don’t get penalised for moving up a sail size partway through a season. This works fine with separate files but no way could it work with automated series creation.
Matt - Printing to PDF. I’m fully aware of the wkhtmltopdf software and have seriously considered building it into Sailwave in the past. But I don’t believe it is necessary now with so many other options. All the major browsers now have the option to print to pdf and do a go job at it. You might find some more to your liking than others so try some out. They all have the option of changing the scaling which has the effect of changing how many lines will fit to a page. They all have page preview so you can experiment before actually printing to paper.
There is also a very useful Chrome addin (Full page Screen Capture) which allows you to create both images and pdf which include all the results. So from the publish page use the preview button and then click the Full page Screen Capture within Chrome
As Huw mentioned there is a tick box to create a page break for each fleet - Personally I always use this because if you are viewing on the web it is not visible but if you print the results each fleet has its own page. This makes updating results when there are queries or corrected errors very easy as you only have to reprint the results for the fleet that changed. Yes it may be nice to have two fleets on the same piece of paper if they would fit - whether its worth all the hassle to do it is questionable as its not possible for Sailwave to know whether they would fit on a single piece of paper when it creates the html as this will depend upon the printer, the paper size, the margins chosen and the scaling. You are of course free to edit the html with any of the many html editors available to add or remove page breaks where you like.
Don’t forget Sailwave gives you the choice to publish to an external application. This can also be a batch file or some custom script or application. There is nothing stopping you writing a bit of Python to do any formatting that you wish and when you publish in Sailwave simply specify this as the destination. You can even automate the uploading to your website with this.
Hope this helps