12-02-2007 2:08 PM
Hey guys,
I just try <a href="http://www.alivepdf.org/">Alive PDF</a> a great Action Script 3 library.
With that you can easily build pdf form, on top of a flex application.
I did a test case in BSP and it worked greeat (if anyone is interested i'll try to blog it )
Good bye ADS, Smartforms, SAPscript
Long live Alive PDF
great sunday to everyone
Quentin
12-03-2007 10:45 AM
Thanks for sharing this Quentin , i saw this the other day but was lazy to try it out. Would love to see a working sample (with code). Will be waiting for your blog.
Regards
Raja
12-03-2007 1:48 PM
Hi quentint,
really very very intresting. I'm waiting for your blog. This is SOA powerful !!!!
bye
luca
02-06-2008 5:01 PM
Sorry i haven't gotten so much time to blog. I'm building a library on top of alivePDF in order to make it easier.
But here is the BSP page to use in order to generate the PDF with alive pdf :
EventHanfler onInitialisation :
DATA w_xstring TYPE xstring.
DATA: cached_response TYPE REF TO if_http_response.
DATA: display_url TYPE string .
DATA: guid TYPE guid_32.
w_xstring = request->get_data( ) .
CREATE OBJECT cached_response
TYPE
cl_http_response
EXPORTING
add_c_msg = 1.
cached_response->set_data( w_xstring ).
cached_response->set_header_field( name = if_http_header_fields=>content_type
value = 'application/pdf' ).
cached_response->set_status( code = 200 reason = 'OK' ).
cached_response->server_cache_expire_rel( expires_rel = 180 ).
CALL FUNCTION 'GUID_CREATE'
IMPORTING
ev_guid_32 = guid.
CONCATENATE runtime->application_url '/' name INTO display_url.
cl_http_server=>server_cache_upload( url = display_url response = cached_response ).
navigation->goto_page( display_url ).
I'll post something about it soon
good day
Quentin
02-27-2008 9:21 PM
Dear Quentin,
I also want exactly the same thing.
It will be great help if you can help me.
But when I copy and paste the code in the on
onInitialisation event it is giving error
Field "NAME" is unknown. It is neither in one of the specified tables.
and more over what to do with the
AlivePDF Sources 0[1].1.4.zip file
which I downloaded from the site??
02-28-2008 2:46 PM
Name is a page a Attribute of your BSP.
About AlivePDF Sources 0.1.4.zip you have to include the SWC file
wich is inside this zip file SWC . (Sources\SWC - Sources)
hope i helped you out
Quentin