How to use vs2010 in Vb development of PDF files downloaded a language
Code examples:
Dim lab1 As New Label
lab1.Text = "label"
Dim ctl As New Web.UI.Control
ctl = lab1
HttpContext.Current.Response.Charset = "UTF-8"
HttpContext.Current.Response.ContentEncoding = System.Text.Encoding.GetEncoding("GB2312")
HttpContext.Current.Response.AppendHeader("Content-Disposition", "attachment;filename=list.pdf")
HttpContext.Current.Response.ContentType = "application/PDF"
Dim tw As New IO.StringWriter
Dim hw As New Web.UI.HtmlTextWriter(tw)
EnableViewState = False
ctl.RenderControl(hw)
HttpContext.Current.Response.Write(tw)
HttpContext.Current.Response.End()
In the VS2010 using vb data into PDF
Re: In the VS2010 using vb data into PDF
Support · Oct 25, 2010Hello,
You can use the DynamicPDF Merger product to generate PDF document in Visual Studio 2010 in which your VB.NET application is targeting .NET 4.0 framework. Please make sure that you are using the latest dll file in your application. You can download the latest dll file by logging into our CustomerArea
using your product serial number. Remove the reference for the old dll file and reference the latest dll file in your application.
Can you please let us know are you getting any error while using our DynamicPDF product ? If so kindly send over the full stack trace of the error message to our [^a|mailto:support@cete.com|opennewiwndow|Support Team^] so that they can look into it further.
Thanks,
ceTe Software Support Team.
Re: In the VS2010 using vb data into PDF
Forum member · Oct 25, 2010Well, thanks. I have YingYongBao, have specific code examples?
Re: In the VS2010 using vb data into PDF
Support · Oct 26, 2010Hello,
Kindly download the latest evaluation edtiion of version 6 DynamicPDF Merger for .NET product MSI from the following link
and install the product then it puts all the required dll files in the C:\Program Files\ceTe Software\DynamicPDF v6.0.0 for .NET\bin directory. If you are developing applications using Visual Studio 2010 and targeting .NET framework 4.0 then you will have to reference the ceTe.DynamicPDF.40.dll in your application. This will work for you.
Thanks,
ceTe Software Support Team.