protected void btnSavePDFForm2_Click(object sender, EventArgs e)
 {
     try
     {
         string      tableContent       = "[" + HdnValue.Value + "]";
         string      hiddenValue        = hdnDescriptionValue.Value;
         string      templateFolderPath = TemplateName;
         GeneratePDF gPdf = new GeneratePDF();
         gPdf.GenerateOrderDetailsPDF(tableContent, hiddenValue, templateFolderPath);
     }
     catch (Exception ex)
     {
         ProcessException(ex);
     }
 }
Пример #2
0
    protected void btnSavePDFForm2_Click(object sender, EventArgs e)
    {
        try
        {
            string strTableContent = HttpUtility.HtmlDecode(HdnValue.Value);
            strTableContent = strTableContent.Trim().Replace("[\"", "").Replace("\\\"", "\"").Replace("}\",\"", "},").Replace("\"]", "");
            string strHiddenValue = HttpUtility.HtmlDecode(hdnDescriptionValue.Value);
            strHiddenValue = strHiddenValue.Trim().Replace("[\"", "[").Replace("\\\"", "\"").Replace("}\",\"", "},").Replace("\"]", "]").Replace("\"{", "{").Replace("}\"", "}");

            string      tableContent       = "[" + strTableContent + "]";
            string      hiddenValue        = strHiddenValue;
            string      templateFolderPath = TemplateName;
            GeneratePDF gPdf = new GeneratePDF();
            gPdf.GenerateOrderDetailsPDF(tableContent, hiddenValue, templateFolderPath, GetStoreID, GetPortalID, GetCurrentCultureName);
        }
        catch (Exception ex)
        {
            ProcessException(ex);
        }
    }
 protected void btnSavePDFForm2_Click(object sender, EventArgs e)
 {
     try
     {
         string tableContent = "["+HdnValue.Value+"]";
         string hiddenValue = hdnDescriptionValue.Value;
         string templateFolderPath = TemplateName;
         GeneratePDF gPdf = new GeneratePDF();
         gPdf.GenerateOrderDetailsPDF(tableContent,hiddenValue,templateFolderPath);
     }
     catch (Exception ex)
     {
         ProcessException(ex);
     }
 }