StiMvcDesigner cannot save font size and color changes

Stimulsoft Reports.WEB discussion
Post Reply
konnech
Posts: 2
Joined: Tue Jun 11, 2013 6:59 am

StiMvcDesigner cannot save font size and color changes

Post by konnech »

I have bought your software. But I found some problem need your help.
I put StiMvcDesigner in cshtml like your demo project:
<%= Html.Stimulsoft().StiMvcDesigner(new StiMvcDesignerOptions() {
ActionGetReportTemplate = "GetReportTemplate",
ActionSaveReportTemplate = "SaveReportTemplate",
ActionGetReportSnapshot = "GetReportSnapshot",
ActionExportReport = "ExportReport",
ActionGetLocalization = "GetLocalization",
ActionExitDesigner = "ExitDesigner",
ActionDataProcessing = "DataProcessing",
ActionGoogleDocs = "GoogleDocs",
LocalizationDirectory = Server.MapPath("~/Content/Localization/"), // Necessary to get a list of available localization files
Width = Unit.Percentage(100),
Height = Unit.Pixel(800)
})%>
And in controller :
public ActionResult SaveReportTemplate()
{
// Get the report template
StiReport report = StiMvcDesigner.GetReportObject(this.Request);


// Save the report template to the packed string (for example)
report.SavePackedReport("d:\\packedReport.mrt");
// ...
// The save report code here
// ...

// Completion of the report saving without dialog box
return StiMvcDesigner.SaveReportResult(false);

// Completion of the report saving with dialog box
//return StiMvcDesigner.SaveReportResult(true);

// Completion of the report saving with message dialog box
//return StiMvcDesigner.SaveReportResult("Some message after saving");

// Completion of the report saving with error dialog box
//return StiMvcDesigner.SaveReportResult(10);
}
I run the project, change first textBox's color which shows 'Simple List' from yellow to black, and add a new TitleBand, then click save button. I can see SaveReportTemplate action be called, but when i open "packedReport.mrt", I found the first textBox still yellow, but the new Title band has been added.
I use Version=2013.1.1600.0 .
I tried this in StiWebDesigner, it works correctly.
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Re: StiMvcDesigner cannot save font size and color changes

Post by Vladimir »

Hello,

This occurs due to the fact that the text component has a specified style. The style has a higher priority. Please select the None style value for text component, then apply the color.

Thank you.
Post Reply