/    Sign up×
Community /Pin to ProfileBookmark

save from form to pdf

I hope i can explain my self right

<form action=”/save.asp” method=”post”>
<font class=”font26″><b>text1 :</b></font><br><br>
<input class=”w1″ type=”text” name=”text1″ style=”width:95%; height:10; text-align: center;”><br>
<br><br><br><br><br><font class=”font26″><b>text2 :</b></font><br><br><br>
<input class=”w1″ type=”text” name=”text2″ style=”width:95%; height:10; text-align: center;”><br>
<font class=”font26″><b>text3 :</b></font><br><br>
<input class=”w1″ type=”text” name=”text3″ style=”width:95%; height:10; text-align: center;”><br>
<br><br><br><br><br><font class=”font26″><b>text4 :</b></font><br><br><br>
<input class=”w1″ type=”text” name=”text4″ style=”width:95%; height:10; text-align: center;”><br>
<font class=”font26″><b>text5 :</b></font><br><br>
<input class=”w1″ type=”text” name=”text5″ style=”width:95%; height:10; text-align: center;”><br>
<br><br><br><br><br><font class=”font26″><b>text6 :</b></font><br><br><br>
<input class=”w1″ type=”text” name=”text6″ style=”width:95%; height:10; text-align: center;”><br>
<br>
<input class=”font22″ type=”submit” value=”Save” style=”width:50px;”><br>
</form>

Then i click on save, it save the info in a database

my question its…

and here i will here abourt, how can i make a code on my save.asp where will make a pdf file where save to a folder..
whit out to ask abourt. i will open file or save file.

I have try many selutions and i can not get i to work to save as pdf.. i can only save to my database…
are there a trick to doit…

And i have found many code to save pdf file but no one where will doit whit out to ask what i will .
save or open file

to post a comment

20 Comments(s)

Copy linkTweet thisAlerts:
@SnookiewarauthorApr 10.2019 — I have search many place but i can not find any..

Maybe i write wrong text then i search
Copy linkTweet thisAlerts:
@SempervivumApr 10.2019 — Maybe the reason why you get no answers and no search results is that ASP is not as wide spread as PHP? For PHP there exist some libraries like fpdf. When searching for a ASP version I found this:

https://stackoverflow.com/questions/10706549/how-to-create-pdf-in-asp-net

but likely you have found it either. No suitable solution there?
Copy linkTweet thisAlerts:
@SnookiewarauthorApr 11.2019 — Sempervivum

i have hobe i could make it in a script or html

I can not use asp.net

i only have the option to asp or script or html..

I know php its lots of code. but cannot php and all my stuff its in asp or html.

and all the code i have found its not give med that option to autosave the file.

Its open dialog window there i have to choose . save or open..
Copy linkTweet thisAlerts:
@SempervivumApr 11.2019 — and all the code i have found its not give med that option to autosave the file.

Its open dialog window there i have to choose . save or open..[/quote]
Please give more information. When reading "open dialog window" I suspect that it is Javascript? If so it would be possible to upload the data and save it on the server by Ajax.
Copy linkTweet thisAlerts:
@SnookiewarauthorApr 11.2019 — I have my own server and its windows 2008 R server

and i have MSSQL server 2008 on it.

I am not sure i have AJAX on it.. i dont think i have.

are there way to find out...

Yes i at JavaScript i have try to use.

And its alle code i have found its a java script where are difference way to use it..

Some code use .js files

I have look into the code to hobe i could find the peace of code there open the window to choose what i will .

Save or open..

but no luck.

I dont know what i have think.. i have hobe i could get a code where could rename or just save file from html. to pdf og txt to pdf.

But i can see you just can rename file to pdf. so its not work...

:D
Copy linkTweet thisAlerts:
@SnookiewarauthorApr 11.2019 — 
This is because I saw an app where you could enter different info and then you could press save and it will be as saved as a pdf without being asked what you wanted with the file.

In fact, thought one could do the same on the web site

But can understand that it's not as easy as I thought it would be.
Copy linkTweet thisAlerts:
@SempervivumApr 11.2019 — I found this javascript for creating a PDF document:

https://raw.githack.com/MrRio/jsPDF/master/docs/jsPDF.html#save

and this thread at Stackoverflow where Nico describes how to upload the document to the server:

https://stackoverflow.com/questions/29826687/storing-generated-pdf-files-on-the-server

You would have to write an ASP script instead of PHP to store the uploaded document.
Copy linkTweet thisAlerts:
@SnookiewarauthorApr 11.2019 — Thanks..

Its look like what i am searching for

I try to understand how it use..

I am little confuse abourt how i do it.

Copy linkTweet thisAlerts:
@SnookiewarauthorApr 11.2019 — @Sempervivum#1602724

its stil in PHP and i can use php.

may i not can get in asp or html.

I think what i so do. maybe a word doc. so

or i skip this part. so its only show in website.
Copy linkTweet thisAlerts:
@SempervivumApr 11.2019 — The main script is clientside in Javascript. Only recieving the document and saving it on the server is PHP. I assumed that you can do this in ASP either.
Copy linkTweet thisAlerts:
@SnookiewarauthorApr 11.2019 — sorry.

probably just me, but I can't see head or tail in it

find it difficult to understand what I need or do.

Because there is a little code here and there and hard to see what to put together ..

Maybe I'm just a fool to it today
Copy linkTweet thisAlerts:
@SnookiewarauthorApr 12.2019 — Sempervivum...

Thanks for the link...

But i cannot get it to work

I have try many solutions and no one work..

Maybe i do it wrong or its the code its not work on my server. i dont know

but i know its , its not work her.

May its a solutions there not work a all
Copy linkTweet thisAlerts:
@SempervivumApr 12.2019 — I'm pretty shure that one can get it to work. You might post your current attempt an we could have a look.
Copy linkTweet thisAlerts:
@SnookiewarauthorApr 12.2019 — Sorry i have deletet

i have try so many solutions and no one work on my server as i will

so i delete all files.

i have give up i have spent so many times on it and i more confuse and can se

what i do and how its work more..

Maybe i am naiv , i think its will be easy to do this, but i can see its not easy and its very avance to do..
Copy linkTweet thisAlerts:
@SnookiewarauthorApr 12.2019 — ITs litle funny

If you want to make a doc, txt file

you can just do this

<%

Sub CreateAfile

Set fs = CreateObject("Scripting.FileSystemObject")

Set a = fs.CreateTextFile("C:testfile.doc", True)

a.WriteLine("This is a test.")

a.Close

End Sub

Call CreateAfile

%>
Copy linkTweet thisAlerts:
@NogDogApr 12.2019 — @Snookiewar#1602756

Well...I doubt that writing a line of text to a file that happens to have a ".doc" filename suffix is actually creating a fully formatted Word document -- unless ASP, being a Microsoft creation, has some built-in magic for that. My guess is that the file contents would be exactly the same if you called it "testfile.txt" or "testfile.csv".
Copy linkTweet thisAlerts:
@SnookiewarauthorApr 12.2019 — its rigt..

You can called txt, or csv or doc

its the same...

But its only to show how simpel its is to that.

So i hobe it will be same easy to pdf..

But i can se it its not-...

So its the reason to i give up and dont spend more time on it

because i will not get the solutions i want and not in asp og script..
Copy linkTweet thisAlerts:
@SnookiewarauthorApr 13.2019 — I have found this

Asppdf

http://www.asppdf.com/manual.html

And its work… but i cannot find out how i do

where i have in left corner on top some tekst name, adress

and i right corner i have a logo

and under logo a date

and after this there my text show.

And in the bottom off page i have..

a line : copyright or something like that

and want to the top its the same on all pages and the bottom to..

Some one know how i do it in this Asppdf

i have try to see or find the way i could doit but i cannot seeit or find it...

So i hobe some guys in here could help me.,
Copy linkTweet thisAlerts:
@NicoleManalotoApr 24.2019 — Have a look on ZetPDF, it is a useful tool for .net developers and alike.
Copy linkTweet thisAlerts:
@TehseenApr 24.2019 — @Snookiewar#1602673 https://youtu.be/oa-q-0FCXIs
×

Success!

Help @Snookiewar spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 4.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...