static void ExportPlayers(Holder holder, string path) { League league = holder.League; var playerTeams = league.BuildPlayerTeamList(); ZoomReports playerReports = new ZoomReports("Players in " + league.Title); playerReports.Colors.BackgroundColor = Color.Empty; playerReports.Colors.OddColor = Color.Empty; foreach (var pt in playerTeams) { playerReports.Add(new ZoomHtmlInclusion("<a name=\"player" + pt.Key.Id + "\">")); playerReports.Add(Reports.OnePlayer(league, pt.Key, pt.Value, ReportPages.GameHyper)); } playerReports.Add(new ZoomHtmlInclusion("<br/><a href=\"index.html\">Index</a>")); if (playerReports.Count > 1) { using (StreamWriter sw = File.CreateText(Path.Combine(path, holder.Key, "players." + holder.ReportTemplates.OutputFormat.ToExtension()))) sw.Write(playerReports.ToOutput(holder.ReportTemplates.OutputFormat)); } }