a SQL Server database directly below the web form.
Currently, I'm getting a PDF stored in the database and using BinaryWrite
to display just the PDF.
I'm using ASP 1.1 and VB.NET.
- CherylYou could use Frames
Jeff
"Cheryl" <cheryl.gilbert@.impaccompanies.com> wrote in message
news:ePSlu7WZGHA.4428@.TK2MSFTNGP03.phx.gbl...
> I'd like to display a web form at the top of an ASP.NET page and a PDF
> from
> a SQL Server database directly below the web form.
> Currently, I'm getting a PDF stored in the database and using BinaryWrite
> to display just the PDF.
> I'm using ASP 1.1 and VB.NET.
> - Cheryl
Frames opens the PDF in another window, not on the same page.
- Cheryl
"Jeff Dillon" <jeffdillon@.hotmail.com> wrote in message
news:eVAQ9RXZGHA.4884@.TK2MSFTNGP02.phx.gbl...
> You could use Frames
> Jeff
> "Cheryl" <cheryl.gilbert@.impaccompanies.com> wrote in message
> news:ePSlu7WZGHA.4428@.TK2MSFTNGP03.phx.gbl...
> > I'd like to display a web form at the top of an ASP.NET page and a PDF
> > from
> > a SQL Server database directly below the web form.
> > Currently, I'm getting a PDF stored in the database and using
BinaryWrite
> > to display just the PDF.
> > I'm using ASP 1.1 and VB.NET.
> > - Cheryl
I think opening the PDF in another window is the way PDF is intended to
function. I think this will be OK for what I need. I'll use an iFrame.
Thank you for responding to my question!!
- Cheryl
"Jeff Dillon" <jeffdillon@.hotmail.com> wrote in message
news:eVAQ9RXZGHA.4884@.TK2MSFTNGP02.phx.gbl...
> You could use Frames
> Jeff
> "Cheryl" <cheryl.gilbert@.impaccompanies.com> wrote in message
> news:ePSlu7WZGHA.4428@.TK2MSFTNGP03.phx.gbl...
> > I'd like to display a web form at the top of an ASP.NET page and a PDF
> > from
> > a SQL Server database directly below the web form.
> > Currently, I'm getting a PDF stored in the database and using
BinaryWrite
> > to display just the PDF.
> > I'm using ASP 1.1 and VB.NET.
> > - Cheryl
Your only choice is to use an iframe to hold the PDF
--
Regards
John Timney
Microsoft MVP
"Cheryl" <cheryl.gilbert@.impaccompanies.com> wrote in message
news:ePSlu7WZGHA.4428@.TK2MSFTNGP03.phx.gbl...
> I'd like to display a web form at the top of an ASP.NET page and a PDF
> from
> a SQL Server database directly below the web form.
> Currently, I'm getting a PDF stored in the database and using BinaryWrite
> to display just the PDF.
> I'm using ASP 1.1 and VB.NET.
> - Cheryl
Thank you!
- Cheryl
"John Timney ( MVP )" <timneyj@.despammed.com> wrote in message
news:%23zIt1gZZGHA.3548@.TK2MSFTNGP05.phx.gbl...
> Your only choice is to use an iframe to hold the PDF
> --
> Regards
> John Timney
> Microsoft MVP
> "Cheryl" <cheryl.gilbert@.impaccompanies.com> wrote in message
> news:ePSlu7WZGHA.4428@.TK2MSFTNGP03.phx.gbl...
> > I'd like to display a web form at the top of an ASP.NET page and a PDF
> > from
> > a SQL Server database directly below the web form.
> > Currently, I'm getting a PDF stored in the database and using
BinaryWrite
> > to display just the PDF.
> > I'm using ASP 1.1 and VB.NET.
> > - Cheryl
Hi John,
Using an iFrame still opens the PDF in another window. What am I missing?
Thank you.
- Cheryl
"John Timney ( MVP )" <timneyj@.despammed.com> wrote in message
news:%23zIt1gZZGHA.3548@.TK2MSFTNGP05.phx.gbl...
> Your only choice is to use an iframe to hold the PDF
> --
> Regards
> John Timney
> Microsoft MVP
> "Cheryl" <cheryl.gilbert@.impaccompanies.com> wrote in message
> news:ePSlu7WZGHA.4428@.TK2MSFTNGP03.phx.gbl...
> > I'd like to display a web form at the top of an ASP.NET page and a PDF
> > from
> > a SQL Server database directly below the web form.
> > Currently, I'm getting a PDF stored in the database and using
BinaryWrite
> > to display just the PDF.
> > I'm using ASP 1.1 and VB.NET.
> > - Cheryl
Technically an iframe is another window, only one that can be embedded into
a web page, hence your form can be at the top of the page with your PDF
displayed below it. Your iframe should be requesting the PDF (asp.net page)
and it should load in the iframe. Probably worth your while pasting a code
sample here.
--
Regards
John Timney
Microsoft MVP
"Cheryl" <cheryl.gilbert@.impaccompanies.com> wrote in message
news:OJQ%23Gi7ZGHA.1560@.TK2MSFTNGP03.phx.gbl...
> Hi John,
> Using an iFrame still opens the PDF in another window. What am I missing?
> Thank you.
> - Cheryl
> "John Timney ( MVP )" <timneyj@.despammed.com> wrote in message
> news:%23zIt1gZZGHA.3548@.TK2MSFTNGP05.phx.gbl...
>> Your only choice is to use an iframe to hold the PDF
>> --
>> Regards
>>
>> John Timney
>> Microsoft MVP
>>
>> "Cheryl" <cheryl.gilbert@.impaccompanies.com> wrote in message
>> news:ePSlu7WZGHA.4428@.TK2MSFTNGP03.phx.gbl...
>> > I'd like to display a web form at the top of an ASP.NET page and a PDF
>> > from
>> > a SQL Server database directly below the web form.
>>> > Currently, I'm getting a PDF stored in the database and using
> BinaryWrite
>> > to display just the PDF.
>>> > I'm using ASP 1.1 and VB.NET.
>>> > - Cheryl
>>>>
>>
Hi John,
Here's the code:
HTML:
<div id="divPDF" style="VISIBILITY: hidden" runat="server">
<!--Note that without a relative src attribute, iframe will cause a
nonsecure item warning!-->
<iframe id="ifPDF" src="http://pics.10026.com/?src=test.htm" width="100%" style="HEIGHT:50em"
runat="server">[Your
browser does <em>not</em> support <code>iframe</code>, or has been
configured
not to display inline frames.] </iframe>
</div>
VB:
Dim inData() As Byte = System.Text.Encoding.ASCII.GetBytes("SMIflood-" &
Loanid)Dim outData() As Byte = New
System.Security.Cryptography.MD5CryptoServiceProvi der().ComputeHash(inData)
Dim sb As New System.Text.StringBuilder(32)
Dim b As Byte
For Each b In outData
sb.Append(b.ToString("X2"))
Next
Dim pdfTempPath As String = Server.MapPath("./TempFiles/" & sb.ToString &
".pdf")
Dim ios As IO.FileStream = IO.File.Create(pdfTempPath)
Dim pdfBytes() As Byte = GetRawImage(LoanID)
ios.Write(pdfBytes, 0, pdfBytes.Length)
ios.Close()
divPDF.Style("VISIBILITY") = "Visible"
ifPDF.Attributes("SRC") = "TempFiles/" & sb.ToString & ".pdf"
"John Timney ( MVP )" <timneyj@.despammed.com> wrote in message
news:%23zWAF07ZGHA.508@.TK2MSFTNGP02.phx.gbl...
> Technically an iframe is another window, only one that can be embedded
into
> a web page, hence your form can be at the top of the page with your PDF
> displayed below it. Your iframe should be requesting the PDF (asp.net
page)
> and it should load in the iframe. Probably worth your while pasting a
code
> sample here.
> --
> Regards
> John Timney
> Microsoft MVP
> "Cheryl" <cheryl.gilbert@.impaccompanies.com> wrote in message
> news:OJQ%23Gi7ZGHA.1560@.TK2MSFTNGP03.phx.gbl...
> > Hi John,
> > Using an iFrame still opens the PDF in another window. What am I
missing?
> > Thank you.
> > - Cheryl
> > "John Timney ( MVP )" <timneyj@.despammed.com> wrote in message
> > news:%23zIt1gZZGHA.3548@.TK2MSFTNGP05.phx.gbl...
> >> Your only choice is to use an iframe to hold the PDF
> >> --
> >> Regards
> >>
> >> John Timney
> >> Microsoft MVP
> >>
> >> "Cheryl" <cheryl.gilbert@.impaccompanies.com> wrote in message
> >> news:ePSlu7WZGHA.4428@.TK2MSFTNGP03.phx.gbl...
> >> > I'd like to display a web form at the top of an ASP.NET page and a
PDF
> >> > from
> >> > a SQL Server database directly below the web form.
> >> >> > Currently, I'm getting a PDF stored in the database and using
> > BinaryWrite
> >> > to display just the PDF.
> >> >> > I'm using ASP 1.1 and VB.NET.
> >> >> > - Cheryl
> >> >> >>
> >>
Hi John
I think I solved the mystery. I took a look at my Adobe Reader preferences,
and I saw that "Display in Browser" wasn't checked. I checked the checkbox,
and now my PDF displays in the iFrame!
Thanks for your help, John.
- Cheryl
"Cheryl" <cheryl.gilbert@.impaccompanies.com> wrote in message
news:un0twb8ZGHA.5108@.TK2MSFTNGP05.phx.gbl...
> Hi John,
> Here's the code:
> HTML:
> <div id="divPDF" style="VISIBILITY: hidden" runat="server">
> <!--Note that without a relative src attribute, iframe will cause a
> nonsecure item warning!-->
> <iframe id="ifPDF" src="http://pics.10026.com/?src=test.htm" width="100%" style="HEIGHT:50em"
> runat="server">[Your
> browser does <em>not</em> support <code>iframe</code>, or has been
> configured
> not to display inline frames.] </iframe>
> </div>
> VB:
> Dim inData() As Byte = System.Text.Encoding.ASCII.GetBytes("SMIflood-" &
> Loanid)Dim outData() As Byte = New
System.Security.Cryptography.MD5CryptoServiceProvi der().ComputeHash(inData)
> Dim sb As New System.Text.StringBuilder(32)
> Dim b As Byte
> For Each b In outData
> sb.Append(b.ToString("X2"))
> Next
> Dim pdfTempPath As String = Server.MapPath("./TempFiles/" & sb.ToString &
> ".pdf")
> Dim ios As IO.FileStream = IO.File.Create(pdfTempPath)
> Dim pdfBytes() As Byte = GetRawImage(LoanID)
> ios.Write(pdfBytes, 0, pdfBytes.Length)
> ios.Close()
> divPDF.Style("VISIBILITY") = "Visible"
> ifPDF.Attributes("SRC") = "TempFiles/" & sb.ToString & ".pdf"
>
> "John Timney ( MVP )" <timneyj@.despammed.com> wrote in message
> news:%23zWAF07ZGHA.508@.TK2MSFTNGP02.phx.gbl...
> > Technically an iframe is another window, only one that can be embedded
> into
> > a web page, hence your form can be at the top of the page with your PDF
> > displayed below it. Your iframe should be requesting the PDF (asp.net
> page)
> > and it should load in the iframe. Probably worth your while pasting a
> code
> > sample here.
> > --
> > Regards
> > John Timney
> > Microsoft MVP
> > "Cheryl" <cheryl.gilbert@.impaccompanies.com> wrote in message
> > news:OJQ%23Gi7ZGHA.1560@.TK2MSFTNGP03.phx.gbl...
> > > Hi John,
> > > > Using an iFrame still opens the PDF in another window. What am I
> missing?
> > > > Thank you.
> > > > - Cheryl
> > > > "John Timney ( MVP )" <timneyj@.despammed.com> wrote in message
> > > news:%23zIt1gZZGHA.3548@.TK2MSFTNGP05.phx.gbl...
> > >> Your only choice is to use an iframe to hold the PDF
> > >> --
> > >> Regards
> > >>
> > >> John Timney
> > >> Microsoft MVP
> > >>
> > >> "Cheryl" <cheryl.gilbert@.impaccompanies.com> wrote in message
> > >> news:ePSlu7WZGHA.4428@.TK2MSFTNGP03.phx.gbl...
> > >> > I'd like to display a web form at the top of an ASP.NET page and a
> PDF
> > >> > from
> > >> > a SQL Server database directly below the web form.
> > >> > >> > Currently, I'm getting a PDF stored in the database and using
> > > BinaryWrite
> > >> > to display just the PDF.
> > >> > >> > I'm using ASP 1.1 and VB.NET.
> > >> > >> > - Cheryl
> > >> > >> > >>
> > >>
> >
glad you have cracked it : )
--
Regards
John Timney
Microsoft MVP
"Cheryl" <cheryl.gilbert@.impaccompanies.com> wrote in message
news:%23nYWgX9ZGHA.4548@.TK2MSFTNGP04.phx.gbl...
> Hi John
> I think I solved the mystery. I took a look at my Adobe Reader
> preferences,
> and I saw that "Display in Browser" wasn't checked. I checked the
> checkbox,
> and now my PDF displays in the iFrame!
> Thanks for your help, John.
> - Cheryl
> "Cheryl" <cheryl.gilbert@.impaccompanies.com> wrote in message
> news:un0twb8ZGHA.5108@.TK2MSFTNGP05.phx.gbl...
>> Hi John,
>>
>> Here's the code:
>>
>> HTML:
>>
>> <div id="divPDF" style="VISIBILITY: hidden" runat="server">
>> <!--Note that without a relative src attribute, iframe will cause a
>> nonsecure item warning!-->
>> <iframe id="ifPDF" src="http://pics.10026.com/?src=test.htm" width="100%" style="HEIGHT:50em"
>> runat="server">[Your
>> browser does <em>not</em> support <code>iframe</code>, or has been
>> configured
>> not to display inline frames.] </iframe>
>> </div>
>> VB:
>>
>> Dim inData() As Byte = System.Text.Encoding.ASCII.GetBytes("SMIflood-" &
>> Loanid)Dim outData() As Byte = New
>>
> System.Security.Cryptography.MD5CryptoServiceProvi der().ComputeHash(inData)
>> Dim sb As New System.Text.StringBuilder(32)
>> Dim b As Byte
>> For Each b In outData
>> sb.Append(b.ToString("X2"))
>> Next
>>
>> Dim pdfTempPath As String = Server.MapPath("./TempFiles/" & sb.ToString &
>> ".pdf")
>> Dim ios As IO.FileStream = IO.File.Create(pdfTempPath)
>> Dim pdfBytes() As Byte = GetRawImage(LoanID)
>> ios.Write(pdfBytes, 0, pdfBytes.Length)
>> ios.Close()
>> divPDF.Style("VISIBILITY") = "Visible"
>> ifPDF.Attributes("SRC") = "TempFiles/" & sb.ToString & ".pdf"
>>
>>
>>
>> "John Timney ( MVP )" <timneyj@.despammed.com> wrote in message
>> news:%23zWAF07ZGHA.508@.TK2MSFTNGP02.phx.gbl...
>> > Technically an iframe is another window, only one that can be embedded
>> into
>> > a web page, hence your form can be at the top of the page with your PDF
>> > displayed below it. Your iframe should be requesting the PDF (asp.net
>> page)
>> > and it should load in the iframe. Probably worth your while pasting a
>> code
>> > sample here.
>>> > --
>> > Regards
>>> > John Timney
>> > Microsoft MVP
>>> > "Cheryl" <cheryl.gilbert@.impaccompanies.com> wrote in message
>> > news:OJQ%23Gi7ZGHA.1560@.TK2MSFTNGP03.phx.gbl...
>> > > Hi John,
>> >> > > Using an iFrame still opens the PDF in another window. What am I
>> missing?
>> >> > > Thank you.
>> >> > > - Cheryl
>> >> > > "John Timney ( MVP )" <timneyj@.despammed.com> wrote in message
>> > > news:%23zIt1gZZGHA.3548@.TK2MSFTNGP05.phx.gbl...
>> > >> Your only choice is to use an iframe to hold the PDF
>> > >> --
>> > >> Regards
>> > >>
>> > >> John Timney
>> > >> Microsoft MVP
>> > >>
>> > >> "Cheryl" <cheryl.gilbert@.impaccompanies.com> wrote in message
>> > >> news:ePSlu7WZGHA.4428@.TK2MSFTNGP03.phx.gbl...
>> > >> > I'd like to display a web form at the top of an ASP.NET page and a
>> PDF
>> > >> > from
>> > >> > a SQL Server database directly below the web form.
>> > >>> > >> > Currently, I'm getting a PDF stored in the database and using
>> > > BinaryWrite
>> > >> > to display just the PDF.
>> > >>> > >> > I'm using ASP 1.1 and VB.NET.
>> > >>> > >> > - Cheryl
>> > >>> > >>> > >>
>> > >>
>> >> >>>>
>>
0 comments:
Post a Comment