protected void Page_Load(object sender, EventArgs e) { //cheatSheet.InnerHtml = CheatSheet.BuildCheatSheet ( false ); string s = CheatSheet.BuildCheatSheet(true, false); System.IO.File.WriteAllText(Server.MapPath("CheatSheet/CheatSheet.html"), s); s = "<html><head><style>br {mso-data-placement:same-cell;}</style></head><body>" + s + "</body></html>"; s = s.Replace("<li>", ""); s = s.Replace("</li>", "<br/>"); s = s.Replace("<b>పద్య లక్షణములు:</b>", ""); s = s.Replace("<ol>", ""); s = s.Replace("</ol>", ""); s = s.Replace("<span class=\"gName\">", ""); s = s.Replace("</span>", ""); s = s.Replace("<div>", ""); s = s.Replace("</div>", ""); System.IO.File.WriteAllText(Server.MapPath("CheatSheet/CheatSheet.xls"), s); }
public static void BuildCheatSheet() { string dir = @"D:\Working\Chandam\Web\menu\"; string title = "ఛందోరాజం"; string caption = "ఛందం © తో పద్య సాహిత్యం మరింత రసమయం..!! [http://chandam.apphb.com] "; string s = CheatSheet.BuildCheatSheet(false, true); string s2 = BuildHTML(title, s); string s3 = BuildHTML(title, s, false); File.WriteAllText(dir + @"ChaMdOraajaM.html", s2, Encoding.UTF8); File.WriteAllText(@"ChaMdOraajaM.html", s3, Encoding.UTF8); PDFOptions Options = PDFOptions.Report; Options.Caption = caption; Options.Title = title; Options.PageSize = PageSize.A1; new PDFUtil(Options).HTML2PDF(@"ChaMdOraajaM.html", @"ChaMdOraajaM.pdf"); }
public static string BuildCheatSheet() { return(CheatSheet.BuildCheatSheet(false, false)); }