I have a pdf that is contained in a byte[] array in memory and I want to
display this in a browser window.
The window will beopenned when a button is clicked on the current web page,
i.e. a second browser window is displayed, preferably with no menu or tool
bars....
Cheers
Jim 3 7370
You could write it to a temp file and then execute it, it will then
automatically be opened with the default application for that file extension
(e.g. acrobat).
Greetz,
-- Rob.
ooo wrote: I have a pdf that is contained in a byte[] array in memory and I want to display this in a browser window. The window will beopenned when a button is clicked on the current web page, i.e. a second browser window is displayed, preferably with no menu or tool bars....
Cheers
Jim
Try this on the page that loads in the new browser.
Response.Conten tType = "applicatio n/pdf"
Response.Binary Write( yourPDFByteArra y )
Response.End
(Make sure that you remove ALL the HTML tags from the ASPX page or they will
get appended to the end of the file, corrupting it.)
David Sandor
<ooo> wrote in message news:e2******** ******@TK2MSFTN GP12.phx.gbl... I have a pdf that is contained in a byte[] array in memory and I want to display this in a browser window. The window will beopenned when a button is clicked on the current web
page, i.e. a second browser window is displayed, preferably with no menu or tool bars....
Cheers
Jim
Didn't notice at first that it was a web app :S.
What DSandor is saying is right.
Moreover, for opening it in a popup, you'll have to use javascript I guess.
The simplest way I think is to open a popup window ( you can give params
here to not display the toolbar etc.), and then reassign the target from the
form that's going to be submitted to the popup window.
Greetz,
-- Rob.
Rob Tillie wrote: You could write it to a temp file and then execute it, it will then automatically be opened with the default application for that file extension (e.g. acrobat).
Greetz, -- Rob.
ooo wrote: I have a pdf that is contained in a byte[] array in memory and I want to display this in a browser window. The window will beopenned when a button is clicked on the current web page, i.e. a second browser window is displayed, preferably with no menu or tool bars....
Cheers
Jim This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: ianstirkcv |
last post by:
Hello,
I wonder if you can please help…
We are running a web application built using .net framework version
1.0, service pack 2, running on Windows 2000 server, service pack 3.
The server has 1 gigabytes of RAM.
We are using Perfmon to monitor memory usage of aspnet_wp.exe, CPU
usage, and % time in the Garbage Collector.
|
by: shyamal |
last post by:
I want to display memory content using C++ on LINUX. For example, the
user may ask to display 256 bytes from 0x1000ff00. The problem is , if
any location is invalid, the program will coredump because of attempt
to access invalid memory.I understand that in Windows OS there is a
function that tells if a memory location is valid or invalid. Is...
|
by: Tomaz Koritnik |
last post by:
Hi
I have many short HTML files stored in a binary stream storage to display
descriptions for various items in application. HTML would be display inside
application using some .NET control or COM control (like Microsoft
WebBrowser). For each description there is one HTML file and along
description text, it contains links to related...
|
by: Bob Dufour |
last post by:
We got a windows form application that we wrote in VB.Net.
Essentially its a manager for a list of persons and their contacts and some
other info about the persons. No rocket science but lots of textboxes and
comboxes to use lookup lists, some tab controls allow viewing of data about
a person in logical groupings.
We find that as we load...
|
by: prats |
last post by:
I want to write a GUI application in PYTHON using QT. This application
is supposed to take in Japanese characters. I am using PyQt as the
wrapper for using QT from python. I am able to take input in japanese.
But I am unable to display them back to GUI. It displays some junk
characters Can anyone suggest me some way how to debug the issue.
...
| |
by: ljuljacka |
last post by:
I'm trying to display resized images. Locations of images are fetched from
database. The problem is that with the following code, I get only the first
image displayed:
<?php
header('Content-type: image/jpeg');
$link = mysql_connect('localhost', 'root', '');
if (!$link) {
|
by: =?Utf-8?B?QXJ1bmVzaCBNb2hhbg==?= |
last post by:
Hello All:
I have an ASPX A.ASPX where I am displaying realtime data using embedded
ASPX page B.ASPX. When I go to next page/previous page from A.ASPX page, I
am able to go to next/previous page but when I try to perform any action on
next/previous page, it gives me an internet explorer error. I have added a
function 'onunload' on...
|
by: tkubaska |
last post by:
This is curious and hoping someone can enlighten me. Inside a C# console app I do
decimal mydecimal;
mydecimal=2.0m;
and then break and look at the memory window. I diplay the address of mydecimal and it does not contain what I expect. But if I edit the value of mydecimal in the debugger, I do see the memory window show what I expect....
|
by: Hypnotik |
last post by:
My program is to simulate cache memory. I read in the info from 2 external files, 1) access 2) data in memory. When I read the information in I display the info...and it is all correct. However when I attempt to display the info in main anywhere the info is incorrect. I thought it might be a problem while I was reading the data in, but it...
|
by: Usenet User |
last post by:
..NET 1.1/2.0
I have a need to display high-resolution scrollable images in a .NET
application (Windows Forms). One well known solution is to create a
Panel with AutoScroll set to "true" and then add a PictureBox or
another Panel to it, that is used to display the image.
The above approach works, however, to my surprise, .NET GDI+-based...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it. ...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...
| |