Avatar of HLRosenberger
HLRosenberger
Flag for United States of America asked on

create a temp file with system created name

Is there a way to create a temp file with system created name, that the system will delete?
Windows 7Windows XP

Avatar of undefined
Last Comment
David Johnson, CD

8/22/2022 - Mon
David Johnson, CD

define system created name? and how are you going to create it? batch file, script, visual studio?
Qlemo

And at which time (or other criteria) it should get disposed?
HLRosenberger

ASKER
Here's what I want to do: create a PDF and allow the browser to display it.  But I'm trying to avoid worrying about deleting the PDF.  if the user does not print it, I want to delete it.   Or better yet display an in-memory PDF in a browser window.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
David Johnson, CD

and you are creating a pdf of WHAT that has to be a temporary file?
David Johnson, CD

When you say display in a browser do you mean using iis to display a webpage? do you want to use adoboe distiller to make the pdf? you need to be a lot more forthcoming in describing exactly what you want to do and where you are having a problem
BillDL

"display an in-memory PDF in a browser window"
A file open in a browser is not "in memory", it is downloaded from its source location to the current user's temporary browser cache.  Depending on the browser's settings, it may or may not be deleted when the browser closes.

There are too many missing elements to guess what you are trying to achieve.  It sounds like you are trying to show a "Print Invoice" function like you get when you buy something on eBay through PayPal, except create a PDF file instead.
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
HLRosenberger

ASKER
I using a product called Aspose to create a PDF - a file.   I can point to a URL to where the file was created and display that file in a browser window.  I can then print the PDF.    This works fine.  I'm trying to eliminate the creation of the PDF file.  This is for internal company use only, so I have control over where the file gets created and then the corresponding URL.  

Do this make sense?  
David Johnson, CD

you can't display what does not exist.. why can't you just use a regular webform?
HLRosenberger

ASKER
How do I display a PDF using a WEB form?
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
David Johnson, CD

You're not understanding what I meant.. you have data that you are creating a pdf with my question was why don't you just display the data in a webform (webpage)
David Johnson, CD

or does this pdf already exist as a static document on your website that you want to display to the user? and you want to know how to display it?
<iframe src="http://docs.google.com/gview?url=http://example.com/mypdf.pdf&embedded=true" style="width:718px; height:700px;" frameborder="0"></iframe>
ASKER CERTIFIED SOLUTION
HLRosenberger

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
HLRosenberger

ASKER
Only was a partial solution for me.
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
David Johnson, CD

a link would be nice..