Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > General Discussion
  New Posts New Posts RSS Feed - differentiated two equal functions
  FAQ FAQ  Forum Search   Register Register  Login Login

differentiated two equal functions

 Post Reply Post Reply
Author
Message
Devil View Drop Down
Team Player
Team Player
Avatar

Joined: 15 Dec 05
Location: Germany
Status: Offline
Points: 25
Post Options Post Options   Thanks (0) Thanks(0)   Quote Devil Quote  Post ReplyReply Direct Link To This Post Topic: differentiated two equal functions
    Posted: 25 Oct 06 at 10:54PM

Hi @all,

How do the following functions differ?  

Function SaveToFile(filename) 

Function SaveToVariant()  

Ok, the one stores a file on harddisk, the other one in an array. Why stores “SaveToVariant” not the same as “SaveToFile”, specially the graphic images of the Checkboxes.

Back to Top
bogey View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 Nov 05
Location: United States
Status: Offline
Points: 50
Post Options Post Options   Thanks (0) Thanks(0)   Quote bogey Quote  Post ReplyReply Direct Link To This Post Posted: 26 Oct 06 at 7:48AM

SaveToFile is just that - writes to disk

SaveToVariant creates a byte array stream. It can be used to stream a pdf file to the browser like this:

Response.ContentType = "application/pdf"
Response.AddHeader "Content-disposition",  "inline; filename=whatever.pdf"
Response.BinaryWrite QP.SaveToVariant()



Edited by bogey
Back to Top
Devil View Drop Down
Team Player
Team Player
Avatar

Joined: 15 Dec 05
Location: Germany
Status: Offline
Points: 25
Post Options Post Options   Thanks (0) Thanks(0)   Quote Devil Quote  Post ReplyReply Direct Link To This Post Posted: 26 Oct 06 at 9:12AM
Originally posted by bogey bogey wrote:

SaveToFile is just that - writes to disk


SaveToVariant creates a byte array stream. It can be used to stream a pdf file to the browser like this:


Response.ContentType = "application/pdf"
Response.AddHeader "Content-disposition", "inline; filename=whatever.pdf"
Response.BinaryWrite QP.SaveToVariant()





it's nice to repeat my answer, but did not answer my question !!!
Back to Top
bogey View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 Nov 05
Location: United States
Status: Offline
Points: 50
Post Options Post Options   Thanks (0) Thanks(0)   Quote bogey Quote  Post ReplyReply Direct Link To This Post Posted: 26 Oct 06 at 10:15AM

If you want the data in the same format as the SaveToFile() method, try using the SaveToString() method.

The two methods do different things. They are not used for the same thing.

I guess I just don't understand your question...

Back to Top
Devil View Drop Down
Team Player
Team Player
Avatar

Joined: 15 Dec 05
Location: Germany
Status: Offline
Points: 25
Post Options Post Options   Thanks (0) Thanks(0)   Quote Devil Quote  Post ReplyReply Direct Link To This Post Posted: 26 Oct 06 at 10:53AM

Hi bogey,

both funktions doing the same but gives a different result. 

What the differentiate behind both funktions ? 

Why does SaveToFile handle the checkboxes right and SaveToVariant not ?

Regards  Devil

Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3524
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post Posted: 26 Oct 06 at 6:06PM
Hi Thomas!

Bogey isn't the author of this function!
I hope you know what i mean ...

Best regards,
Ingo

BTW: You can look into the function sources with a source license - why not join us? Please look at
http://www.quickpdf.org/forum/forum_posts.asp?TID=539&PN=1
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store