Print Page | Close Window

differentiated two equal functions

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: General Discussion
Forum Description: Discussion board for Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=546
Printed Date: 23 Nov 24 at 4:05AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: differentiated two equal functions
Posted By: Devil
Subject: differentiated two equal functions
Date 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.




Replies:
Posted By: bogey
Date 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()



Posted By: Devil
Date 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 !!!


Posted By: bogey
Date 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...



Posted By: Devil
Date 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



Posted By: Ingo
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk