Editing a Form in the Designer
Наши примеры проектов и шаблоны отчётов помогут Вам разобраться в основах работы с нашими продуктами.The PDF form designer is hosted through the same controller action, which also persists the edited form on the
Initialize with a form, and save on demand.
How it works. The designer round-trips the form through the controller, so users edit templates in the browser and saves are written to disk.
FormSave action.Initialize with a form, and save on demand.
case "Initialize":
var initData = StiWebForm.Initialize(data, Initialize(data));
return Json(initData.Content);
case "FormSave":
var form = new StiForm();
form.Load(Convert.FromBase64String(data["form"].ToString()));
form.Save(GetFilePath("Forms", data["formName"].ToString()));
return Json("{result: \"ok\"}");StiWebForm.Initialize(data, options)— opens the designer with a form loaded from theFormsfolder.form.Load(base64)+form.Save(path)— the FormSave action deserializes the edited form and writes it back.
How it works. The designer round-trips the form through the controller, so users edit templates in the browser and saves are written to disk.