Itextsharp的等效代码 [英] Equivalent code for Itextsharp
本文介绍了Itextsharp的等效代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要使用等效代码来使用itextsharp创建PDF文件。
私有 Sub PrintPage( ByVal 发件人作为 对象, ByVal e As System.Drawing.Printing.PrintPageEventArgs)
Dim fReportFont As System.Drawing.Font
Dim gStringFormat As New StringFormat
egraphics = e.Graphics
gStringFormat。 Alignment = StringAlignment.Center
fReportFont = 新 System.Drawing.Font(Trim( Arial), 35 ,FontStyle.Regular)
egraphics.DrawString( Murugesh,fReportFont,新 SolidBrush(Color.Black ), 100 , 200 )
' 我需要在itextsharp中使用上述行的等效代码
结束 Sub
解决方案
此论坛是为了快速解答,所以适当的快速答案是让您使用iTextSharp的文档。这不是一个只是将代码交给你的论坛。
如果您遇到特定的代码行,请告诉我们,我们很乐意为您提供帮助。
Hi,
I need equivalent code to Create PDF file using itextsharp.
Private Sub PrintPage(ByVal sender As Object, ByVal e As System.Drawing.Printing.PrintPageEventArgs)
Dim fReportFont As System.Drawing.Font
Dim gStringFormat As New StringFormat
egraphics = e.Graphics
gStringFormat.Alignment = StringAlignment.Center
fReportFont = New System.Drawing.Font(Trim("Arial"), 35, FontStyle.Regular)
egraphics.DrawString("Murugesh", fReportFont, New SolidBrush(Color.Black), 100, 200)
'I need equivalent code for the above line in itextsharp
End Sub
解决方案
This forum is for quick answers so the appropriate quick answer is to have you use iTextSharp's documentation. This is not a forum for just handing over code to you.
If you get stuck on a specific line of code let us know and we'll gladly help.
这篇关于Itextsharp的等效代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文