В нем также есть встроенный CSS.
Моя компания использует пакет DevExpress для обработки документов.
Я написал для этого метод ниже -
Код: Выделить всё
public Stream Testing(string htmlString)
{
RichEditDocumentServer richEditDocumentServer = new();
richEditDocumentServer.HtmlText = htmlString;
MemoryStream ms = new();
richEditDocumentServer.ExportToPdf(ms);
ms.Position = 0;
return ms;
}
Ниже приведен мой HTML-код с CSS, который вы можете проверить в любой онлайн-программе просмотра HTML.
Код: Выделить всё
Result Master View
[img]../../images/govtlogo.svg[/img]
Ministry of Minister
Paybill Report for
Month Of January 2024
Department : Department
Department Department
PAN Number :
BLRK07894F | Token Number : 12345
[img]../../images/govtlogo.svg[/img]
style="margin: 0; font-weight: 500;font-size: 14px;line-height: 24px;color:#383F43; display: inline-block; width: 49%;">
Establishment No./ Name : 1
style="margin: 0; font-weight: 500;font-size: 14px;line-height: 24px;color :#383F43;text-align: right; display: inline-block;width: 49%;">
Final spanaybill To Be Represented To Treasury
DDO
Code :
0200KT0002t
Paybill
Type : Regular Salary
Head Of
Account : 2052-00-099-0-01
Designation
: Superintendent
PayScale
: 37900 - 70850
Days
Paid : 31
With
Hold Days : 0
Next
Increment Date : 01 Aug 2024
S.No
Employee Name
[img]../../images/data-table-arrow-down.svg[/img]
KGID/ Metal No.
[img]../../images/data-table-arrow-down.svg[/img]
Basic Pay
[img]../../images/data-table-arrow-down.svg[/img]
Allowances
[img]../../images/data-table-arrow-down.svg[/img]
Gross Salary
[img]../../images/data-table-arrow-down.svg[/img]
Deductions
[img]../../images/data-table-arrow-down.svg[/img]
Recoveries
[img]../../images/data-table-arrow-down.svg[/img]
Total Deductions
[img]../../images/data-table-arrow-down.svg[/img]
Net Salary
[img]../../images/data-table-arrow-down.svg[/img]
1
Pooran Chandra M
KGID : 998807
1746805
39800
DA : 2587
HRA : 9552
CCA : 500
Medical Allowance : 200
52039
PT : 200
IT : 4500
KGID : 2000
EGIS : 240
GPF : 10000
LIC : 2374
LIC SSYAX : 13
CONDENDC : 100
19427
33212
style="margin: 0; font-weight: 500;font-size: 14px;line-height: 24px;color:#383F43; display: inline-block; width: 49%;">
Establishment No./ Name : 1
style="margin: 0; font-weight: 500;font-size: 14px;line-height: 24px;color :#383F43;text-align: right; display: inline-block;width: 49%;">
Final spanaybill To Be Represented To Treasury
DDO
Code :
0200KT0002t
Paybill
Type : Regular Salary
Head Of
Account : 2052-00-099-0-01
Designation
: Superintendent
PayScale
: 37900 - 70850
Days
Paid : 31
With
Hold Days : 0
Next
Increment Date : 01 Aug 2024
S.No
Employee Name
[img]../../images/data-table-arrow-down.svg[/img]
KGID/ Metal No.
[img]../../images/data-table-arrow-down.svg[/img]
Basic Pay
[img]../../images/data-table-arrow-down.svg[/img]
Allowances
[img]../../images/data-table-arrow-down.svg[/img]
Gross Salary
[img]../../images/data-table-arrow-down.svg[/img]
Deductions
[img]../../images/data-table-arrow-down.svg[/img]
Recoveries
[img]../../images/data-table-arrow-down.svg[/img]
Total Deductions
[img]../../images/data-table-arrow-down.svg[/img]
Net Salary
[img]../../images/data-table-arrow-down.svg[/img]
1
Pooran Chandra M
KGID : 998807
1746805
39800
DA : 2587
HRA : 9552
CCA : 500
Medical Allowance : 200
52039
PT : 200
IT : 4500
KGID : 2000
EGIS : 240
GPF : 10000
LIC : 2374
LIC SSYAX : 13
CONDENDC : 100
19427
33212
Пожалуйста, помогите, так как я не понимаю, как это сделать. с этим пакетом
Подробнее здесь: https://stackoverflow.com/questions/784 ... devexpress
Мобильная версия