Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
help displaying PDF
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
ndpace  
View profile  
 More options Nov 10, 3:56 pm
From: ndpace <ndp...@gmail.com>
Date: Tue, 10 Nov 2009 12:56:46 -0800 (PST)
Local: Tues, Nov 10 2009 3:56 pm
Subject: help displaying PDF
I am a newbie and inherited this code.  Please let me know if there is
needed code missing.
I need to have the FALSE side of this conditional show the PDF without
the watermark, preferably using the same procedure (SendPdfToUser).
Thanks in advance for any help,     Jim

        If shouldWatermark.Equals("true") Then
            Dim pdfDoc As PdfDocument = New PdfDocument(filePath)
            Dim newDoc As Byte() = pdfDoc.WatermarkDocument()
            Dim pdfFileName As String = filePath.Substring
(filePath.LastIndexOf("\") + 1)
            SendPdfToUser(pdfFileName, newDoc)
        Else 'no cert
            Response.Redirect("./" & path)
        End If

*******************************************************************
Private Sub SendPdfToUser(ByVal filename As String, ByVal fileBytes As
Byte())
        Context.Response.Clear()
        Context.Response.ContentType = "application/pdf"
        Context.Response.AppendHeader("content-disposition",
"attachment; filename=" + filename)
        Context.Response.BinaryWrite(fileBytes)
        Context.Response.Flush()
        Context.Response.End()
    End Sub


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jamie Fraser  
View profile  
 More options Nov 11, 6:34 am
From: Jamie Fraser <jamie.fra...@gmail.com>
Date: Wed, 11 Nov 2009 11:34:46 +0000
Local: Wed, Nov 11 2009 6:34 am
Subject: Re: [DotNetDevelopment] help displaying PDF

I would imagine you want something like
http://dotnetdevelopment.pastebin.com/m273be5a3


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google