Update
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
kamonwan taengsuk
2024-09-19 14:22:51 +07:00
parent 106a978269
commit 7a8a09e336
14 changed files with 49 additions and 33 deletions

View File

@@ -75,23 +75,23 @@ namespace rmutr_report.Controllers
ShowProgress = true,
PageBreaks = true
};
report.Export(excelExport, stream);
stream.Seek(0, SeekOrigin.Begin);
// using (var package = new ExcelPackage(stream))
// var textObject3 = report.FindObject("Text3") as FastReport.TextObject;
// var textObject7 = report.FindObject("Text7") as FastReport.TextObject;
// var textObject8 = report.FindObject("Text8") as FastReport.TextObject;
// if (textObject3 != null)
// {
// ExcelWorksheet worksheet = package.Workbook.Worksheets[0];
//
// if (worksheet.Dimension != null)
// {
// //worksheet.Cells[worksheet.Dimension.Address].AutoFitColumns();
// worksheet.Cells[worksheet.Dimension.Address].Style.WrapText = true;
// }
//
// package.Save();
// textObject3.WordWrap = true;
// }
//
// stream.Seek(0, SeekOrigin.Begin);
// if (textObject7 != null)
// {
// textObject7.WordWrap = true;
// }
// if (textObject8 != null)
// {
// textObject8.WordWrap = true;
//}
report.Export(excelExport, stream);
stream.Seek(0, SeekOrigin.Begin);
return File(stream, "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet");
}

View File

@@ -13,7 +13,7 @@ using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("rmutr_report")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+ad0b43ca48bec5b06b9d28038409fb43c50ccec5")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+106a9782697b2736e57b96f6b7e7cf516eec411c")]
[assembly: System.Reflection.AssemblyProductAttribute("rmutr_report")]
[assembly: System.Reflection.AssemblyTitleAttribute("rmutr_report")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]

View File

@@ -1 +1 @@
dc5eabf09b58379b53feb30709b996c5032760611cba7922a37905f04ffadfb5
12f036e5d046ba9b0599463b4a985586778539b6135c07e833f9e63bd06caa19

View File

@@ -13,7 +13,7 @@ using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("rmutr_report")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+ad0b43ca48bec5b06b9d28038409fb43c50ccec5")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+106a9782697b2736e57b96f6b7e7cf516eec411c")]
[assembly: System.Reflection.AssemblyProductAttribute("rmutr_report")]
[assembly: System.Reflection.AssemblyTitleAttribute("rmutr_report")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]

View File

@@ -1 +1 @@
dc5eabf09b58379b53feb30709b996c5032760611cba7922a37905f04ffadfb5
12f036e5d046ba9b0599463b4a985586778539b6135c07e833f9e63bd06caa19

View File

@@ -1 +1 @@
68de01a6bd7215a94454eb302693f9228d732e4e8151a0ca1a8cd5a493df713b
64159ceab84e820c79b59f2a97adace7158e33caf3827afa4ca495de04705546

View File

@@ -576,6 +576,22 @@
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
<OriginalItemSpec>$([System.IO.Path]::GetFullPath($(MSBuildThisFileDirectory)..\staticwebassets\reports\durable_articles_three_old.frx))</OriginalItemSpec>
</StaticWebAsset>
<StaticWebAsset Include="$([System.IO.Path]::GetFullPath($(MSBuildThisFileDirectory)..\staticwebassets\reports\durable_articles_three_v1.frx))">
<SourceType>Package</SourceType>
<SourceId>rmutr_report</SourceId>
<ContentRoot>$(MSBuildThisFileDirectory)..\staticwebassets\</ContentRoot>
<BasePath>_content/rmutr_report</BasePath>
<RelativePath>reports\durable_articles_three_v1.frx</RelativePath>
<AssetKind></AssetKind>
<AssetMode></AssetMode>
<AssetRole></AssetRole>
<RelatedAsset></RelatedAsset>
<AssetTraitName></AssetTraitName>
<AssetTraitValue></AssetTraitValue>
<CopyToOutputDirectory></CopyToOutputDirectory>
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
<OriginalItemSpec>$([System.IO.Path]::GetFullPath($(MSBuildThisFileDirectory)..\staticwebassets\reports\durable_articles_three_v1.frx))</OriginalItemSpec>
</StaticWebAsset>
<StaticWebAsset Include="$([System.IO.Path]::GetFullPath($(MSBuildThisFileDirectory)..\staticwebassets\reports\estimate_income_expenses.frx))">
<SourceType>Package</SourceType>
<SourceId>rmutr_report</SourceId>

View File

@@ -1 +1 @@
1e00466f0b88109f048610c7645c46c929b7a4dd3b6d32b115f372c65af39b3a
55bc044448429e1c530fe751e53f25556ac50f37a37299c368138242061eff81

View File

@@ -1 +1 @@
17267261645160802
17267305264526060

View File

@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Report ScriptLanguage="CSharp" ReportInfo.Created="03/01/2023 13:13:10" ReportInfo.Modified="09/18/2024 16:53:56" ReportInfo.CreatorVersion="2021.1.0.0">
<Report ScriptLanguage="CSharp" ReportInfo.Created="03/01/2023 13:13:10" ReportInfo.Modified="09/19/2024 14:17:13" ReportInfo.CreatorVersion="2021.1.0.0">
<Dictionary>
<BusinessObjectDataSource Name="durable_articles_three" ReferenceName="durable_articles_three" DataType="null" Enabled="true">
<Column Name="budget_year" DataType="System.String"/>
@@ -159,7 +159,7 @@
</DataBand>
<ReportSummaryBand Name="ReportSummary1" Top="262.9" Width="831.6" Height="680.4">
<TextObject Name="Text65" Top="330.75" Width="831.6" Height="28.35" Text="6. เหตุผลความจำเป็น" Font="TH Sarabun New, 16pt, style=Bold"/>
<TextObject Name="Text66" Top="359.1" Width="831.6" Height="321.3" CanGrow="true" CanShrink="true" CanBreak="false" Text="[durable_articles_three.necessity_reason]" AutoWidth="true" AutoShrink="FontSize" AutoShrinkMinSize="11" Font="TH Sarabun New, 16pt"/>
<TextObject Name="Text66" Top="359.1" Width="831.6" Height="321.3" CanGrow="true" CanShrink="true" CanBreak="false" Text="[durable_articles_three.necessity_reason]" AutoShrink="FontSize" AutoShrinkMinSize="11" Font="TH Sarabun New, 16pt" Clip="false" Wysiwyg="true"/>
<TextObject Name="Text64" Top="302.4" Width="859.95" Height="28.35" Text="[durable_articles_three.strategy]" Font="TH Sarabun New, 16pt"/>
<TextObject Name="Text63" Top="274.05" Width="831.6" Height="28.35" Text="5. ความสอดคล้องกับกลยุทธ์" Font="TH Sarabun New, 16pt, style=Bold"/>
<TextObject Name="Text62" Top="245.7" Width="859.95" Height="28.35" Text="[durable_articles_three.target]" Font="TH Sarabun New, 16pt"/>
@@ -214,9 +214,9 @@
</DataBand>
</DataBand>
</ReportPage>
<ReportPage Name="Page4" PaperWidth="260" PaperHeight="600" LeftMargin="25" TopMargin="20" RightMargin="15" Watermark.Font="Arial, 60pt" UnlimitedHeight="true" UnlimitedWidth="true">
<DataBand Name="Data3" Width="831.6" Height="28.35" DataSource="durable_articles_three">
<TextObject Name="Text2" Width="945" Height="28.35" Text="10. คุณลักษณะเฉพาะ (Specification)" Font="TH Sarabun New, 16pt, style=Bold">
<ReportPage Name="Page4" PaperWidth="350" PaperHeight="600" LeftMargin="25" TopMargin="20" RightMargin="15" Watermark.Font="Arial, 60pt">
<DataBand Name="Data3" Width="1171.8" Height="28.35" CanBreak="true">
<TextObject Name="Text2" Width="1171.8" Height="28.35" Text="10. คุณลักษณะเฉพาะ (Specification)" Font="TH Sarabun New, 16pt, style=Bold">
<Formats>
<NumberFormat/>
<GeneralFormat/>
@@ -224,8 +224,8 @@
<GeneralFormat/>
</Formats>
</TextObject>
<DataBand Name="Data8" Top="32.65" Width="831.6" Height="28.35" CanGrow="true" CanShrink="true" DataSource="specification_data">
<TextObject Name="Text3" Width="945" Height="28.35" CanGrow="true" CanShrink="true" CanBreak="false" BreakTo="Text7" Text="[durable_articles_three.specification_data.list]" AutoWidth="true" Font="TH Sarabun New, 14pt, style=Bold" Clip="false" Wysiwyg="true">
<DataBand Name="Data8" Top="32.65" Width="1171.8" Height="28.35" CanGrow="true" CanShrink="true" DataSource="specification_data">
<TextObject Name="Text3" Width="1171.8" Height="28.35" CanGrow="true" CanShrink="true" ShiftMode="Never" CanBreak="false" BreakTo="Text7" Text="[durable_articles_three.specification_data.list]" Font="TH Sarabun New, 14pt, style=Bold" Clip="false" Wysiwyg="true">
<Formats>
<NumberFormat/>
<GeneralFormat/>
@@ -233,10 +233,10 @@
<GeneralFormat/>
</Formats>
</TextObject>
<DataBand Name="Data21" Top="65.3" Width="831.6" Height="28.35" CanGrow="true" CanShrink="true" DataSource="data_detail">
<TextObject Name="Text7" Width="945" Height="28.35" CanGrow="true" CanShrink="true" CanBreak="false" Text="[durable_articles_three.specification_data.data_detail.list]" AutoWidth="true" AutoShrink="FontSize" AutoShrinkMinSize="16" Font="TH Sarabun New, 14pt" Wysiwyg="true"/>
<DataBand Name="Data10" Top="97.95" Width="831.6" Height="28.35" DataSource="data_detail2">
<TextObject Name="Text8" Width="945" Height="28.35" CanGrow="true" CanShrink="true" CanBreak="false" Text="[durable_articles_three.specification_data.data_detail.data_detail2.attribute]" AutoWidth="true" Font="TH Sarabun New, 14pt" Wysiwyg="true"/>
<DataBand Name="Data21" Top="65.3" Width="1171.8" Height="28.35" CanGrow="true" CanShrink="true" DataSource="data_detail">
<TextObject Name="Text7" Width="1171.8" Height="28.35" CanGrow="true" CanShrink="true" ShiftMode="Never" CanBreak="false" Text="[durable_articles_three.specification_data.data_detail.list]" Font="TH Sarabun New, 14pt" Wysiwyg="true"/>
<DataBand Name="Data10" Top="97.95" Width="1171.8" Height="28.35" CanGrow="true" CanShrink="true" DataSource="data_detail2">
<TextObject Name="Text8" Width="1171.8" Height="28.35" CanGrow="true" CanShrink="true" ShiftMode="Never" CanBreak="false" Text="[durable_articles_three.specification_data.data_detail.data_detail2.attribute]" Font="TH Sarabun New, 14pt" Wysiwyg="true"/>
</DataBand>
</DataBand>
</DataBand>