Click here to Skip to main content
15,906,094 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralObtaining the Request Object for a Web Service Pin
Skippums19-Dec-07 13:34
Skippums19-Dec-07 13:34 
AnswerRe: Obtaining the Request Object for a Web Service Pin
Skippums20-Dec-07 8:50
Skippums20-Dec-07 8:50 
GeneralAccessing Control from Master Page Pin
DotNetXenon19-Dec-07 10:04
DotNetXenon19-Dec-07 10:04 
GeneralRe: Accessing Control from Master Page Pin
pmarfleet19-Dec-07 10:55
pmarfleet19-Dec-07 10:55 
GeneralProblem Calling Web Service From Production Environment Pin
AdamNThompson19-Dec-07 10:01
AdamNThompson19-Dec-07 10:01 
GeneralTransparent GIFs Pin
Monin D.19-Dec-07 9:12
Monin D.19-Dec-07 9:12 
GeneralLinq Query to sort in Column-Header in GridView Pin
Terppe19-Dec-07 5:59
Terppe19-Dec-07 5:59 
Questionhow to convert .aspx page to .pdf document in asp.net [modified] Pin
gopal_Pandey19-Dec-07 4:12
gopal_Pandey19-Dec-07 4:12 
hi friends,

1)I have designed .aspx page in which user input the values.

2)when i click the save button, after that the save button should not be visible.

3)Whatever be the design of the .aspx page with values is to be saved as pdf file.

Now My problem starts from here,

I have used itextsharp.dll for creation of pdf files at runtime in asp.net but i don't know how to solve this problem with the help of itextsharp.

i have used many dlls which can be used for .aspx to .pdf conversion on fly but they are not working properly. For Example:PDFizers,ABC pdf,Ntidy,Ghtmldoc.exe etc....

as per my knowledge about itextsharp.dll, it create pdf file but the designing of the page is not possible with this..(if i am wrong then correct me..)

so what i have to do tell me about this....following is my code of creating pdf file by using itext sharp.

if any suggestion please reply,

all reply appreciated.....

thanks in advance.............

Private Sub function1()

Dim mydoc As iTextSharp.text.Document

Dim str As String

Dim a As PdfWriter

Dim ms As FileStream


cmdSave.Visible = False

str = Server.MapPath("bin\1.pdf")

mydoc = New iTextSharp.text.Document

If File.Exists(str) Then File.Delete(str)

ms = New FileStream(str, FileMode.OpenOrCreate)

mydoc.Open()

mydoc.Add(New Paragraph("123"))

mydoc.Add(New Paragraph("123"))

mydoc.Add(New Annotation("123", "123"))

mydoc.Close()

End Sub
modified on Thursday, December 20, 2007 5:41:55 AM

QuestionProblem With RegisterClientScriptResource Pin
scorpion_man198219-Dec-07 3:58
scorpion_man198219-Dec-07 3:58 
GeneralRe: Problem With RegisterClientScriptResource Pin
ToddHileHoffer19-Dec-07 4:44
ToddHileHoffer19-Dec-07 4:44 
GeneralRe: Problem With RegisterClientScriptResource Pin
scorpion_man198219-Dec-07 9:46
scorpion_man198219-Dec-07 9:46 
GeneralRe: Problem With RegisterClientScriptResource Pin
ToddHileHoffer20-Dec-07 1:22
ToddHileHoffer20-Dec-07 1:22 
GeneralGC.Collect question Pin
V.19-Dec-07 3:45
professionalV.19-Dec-07 3:45 
GeneralRe: GC.Collect question Pin
Paddy Boyd19-Dec-07 3:56
Paddy Boyd19-Dec-07 3:56 
GeneralRe: GC.Collect question Pin
V.19-Dec-07 4:18
professionalV.19-Dec-07 4:18 
GeneralRe: GC.Collect question Pin
ToddHileHoffer19-Dec-07 4:37
ToddHileHoffer19-Dec-07 4:37 
GeneralRe: GC.Collect question Pin
V.19-Dec-07 4:45
professionalV.19-Dec-07 4:45 
GeneralRe: GC.Collect question [modified] Pin
ToddHileHoffer19-Dec-07 4:57
ToddHileHoffer19-Dec-07 4:57 
GeneralRe: GC.Collect question Pin
Paddy Boyd19-Dec-07 5:09
Paddy Boyd19-Dec-07 5:09 
GeneralRe: GC.Collect question Pin
V.19-Dec-07 5:13
professionalV.19-Dec-07 5:13 
GeneralRe: GC.Collect question Pin
Paddy Boyd19-Dec-07 5:17
Paddy Boyd19-Dec-07 5:17 
GeneralRe: GC.Collect question Pin
V.19-Dec-07 5:25
professionalV.19-Dec-07 5:25 
GeneralRe: GC.Collect question Pin
ToddHileHoffer19-Dec-07 7:08
ToddHileHoffer19-Dec-07 7:08 
GeneralRe: GC.Collect question Pin
V.19-Dec-07 20:44
professionalV.19-Dec-07 20:44 
GeneralSys.Application / Javascript / Remove Extenders Pin
Malcolm Smart19-Dec-07 3:21
Malcolm Smart19-Dec-07 3:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.