473,385 Members | 1,630 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Print PDF From XML ASP.NET

Hi Guys,

Just wondering if anyone can help me.

I have created a pdf document and saved it in xml format and also
saved it to my sql server file as a string. i know this works
correctly.

My issue is how to print out the pdf document from the SQL server
table( .i.e. the file with the image datatype) into a page on my
asp.net website or just to get the option of printing to screen or
save to memory .

Can anyone be of assistance or have any code snippets - do i need to
convert my binary string ???

Regards

Colin Graham
Nov 12 '05 #1
1 1159
Hi Colin,

I'm ot 100% sure what you want to do, but I think that if you are reading
your file directly to MemoryStream object and after that just write it
Response object (memoryStream.WriteTo(Response.OutputStream). Of course,
change content type of your page to "application/pdf" (Response.ContentType
= "application/pdf"). You should get your PDF on the page. I hope this
helps.

Best regards,
Dejan Lukovic
"Colin Graham" <cs********@hotmail.com> wrote in message
news:ee**************************@posting.google.c om...
Hi Guys,

Just wondering if anyone can help me.

I have created a pdf document and saved it in xml format and also
saved it to my sql server file as a string. i know this works
correctly.

My issue is how to print out the pdf document from the SQL server
table( .i.e. the file with the image datatype) into a page on my
asp.net website or just to get the option of printing to screen or
save to memory .

Can anyone be of assistance or have any code snippets - do i need to
convert my binary string ???

Regards

Colin Graham

Nov 12 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: Michael Foord | last post by:
Here's a little oddity with 'print' being a reserved word... >>> class thing: pass >>> something = thing() >>> something.print = 3 SyntaxError: invalid syntax >>> print something.__dict__...
14
by: Marcin Ciura | last post by:
Here is a pre-PEP about print that I wrote recently. Please let me know what is the community's opinion on it. Cheers, Marcin PEP: XXX Title: Print Without Intervening Space Version:...
0
by: bearophileHUGS | last post by:
There is/was a long discussion about the replacement for print in Python 3.0 (I don't know if this discussion is finished): http://mail.python.org/pipermail/python-dev/2005-September/055968.html ...
1
by: Steff | last post by:
I am wandering if my code is making sense... I use a lot the print function. Is it weird in this case where I have to display an array ? I thought it would be better to have the entire array in php...
3
by: James J. Besemer | last post by:
I would like to champion a proposed enhancement to Python. I describe the basic idea below, in order to gage community interest. Right now, it's only an idea, and I'm sure there's room for...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.