PB 12.5.1 Web Forms save as PDF

I'm having trouble creating PDF files in a Web Forms app deployed to a new server. I've done this successfully a few times using apparently identical configurations, so I'm not sure what's going on. Facts about the situation:
1. PB Classic 12.5.1 Web Forms target
2. IIS 7.5 on a remote Windows Server 2008 R2 server
3. Ghostscript 8.71
4. To determine whether Ghostscript was the problem, I installed a Win32 version of the PB app on the IIS server computer and tested. SaveAs() works as expected in the Win32 target.
5. To determine whether file system permissions were a problem, I used the Web Forms app to SaveAs() a text document and performed the DownloadFile(). The file downloads as expected.
6. It is the SaveAs() function call that is failing. The line
dw_report.SaveAs(<filename>, PDF!, FALSE)
returns -1
Thanks in advance for any suggestions...

Ronnie,
Here is some code that I use in a webform application to create a PDF file and send it as an attachment. Remember that you have to do MapVirtualPath so you can find the file after you do dw_1.saveas...
Also, when I had trouble it was because I named my printer 'Sybase Datawindow' instead of 'Sybase Datawindow PS'.
Chris Pollach recently posted some great step by step installation procedures for 32 and 64 bit machines.
Best,
Paul
//Email Datawindow Saved As PDF Button
long random_number
string random_number_string
randomize( cpu() )
random_number = rand(9999)
random_number_string = string(random_number)
string  user_id
user_id = trim(email)
string bodytext
bodytext = 'Dear XXX, ' + '~r~n' + '~r~n' + 'Please find attached the XXX report in PDF format.' + '~r~n' + '~r~n' + 'Thank you,' + '~r~n' + '~r~n' + 'XXX' + '~r~n' + '1-888-888-8888'
string filename
string filepathname
//create the path to use LATER for the attachment
#if defined PBWEBFORM then
filepathname = MapVirtualPath("c:\XXX-Detailed-" + trim(report_name) + "-" + random_number_string + ".pdf")
//create the path and filename to use NOW and save the file in the virtual directory
filename = "c:\XXX-Detailed-" + trim(report_name) + "-" + random_number_string + ".pdf"
long returncode
returncode = dw_1.SaveAs(filename,PDF!,false)
if returncode = 1 then
string subject
subject = "XXX Report-"+report_name
string fromaddresstext
fromaddresstext = "[email protected]"
System.Net.mail.MailMessage message
message = create System.Net.mail.MailMessage
message.subject = subject
message.body = bodytext
System.Net.Mail.MailAddress fromaddress
fromaddress = create System.Net.Mail.MailAddress("[email protected]", "XXX Operations")
message.From = fromAddress
System.Net.Mail.MailAddress toaddress
message.To.Add(user_id);
System.Net.Mail.Attachment attach
attach = create System.Net.Mail.Attachment(filepathname,"application/pdf");
//Helper.Mail.AddAttachment(message, attach)
message.Attachments.Add(attach);
System.Net.Mail.SmtpClient smtpclient
smtpclient = create System.Net.Mail.SmtpClient
smtpclient.host = "xxx.xxx.com"
smtpclient.port = 25
//smtpclient.send(message)
TRY
smtpclient.send(message)
CATCH (System.Net.Mail.SmtpException ex )
MessageBox( "SMTP Error", "Sorry. There is a problem sending the XXX email. " + ex.Message )
END TRY
mle_1.text = "XXX Report has been emailed to : " + user_id
else
mle_1.text = "Sorry, there was a problem generating the file."
destroy message
destroy smtpclient
end if
#end if

Similar Messages

  • Web form to fillable pdf

    Hello
    I need your help on this trouble : filling a pdf online
    What i want to do :
    - prepare fillable pdf files on acrobat pro (already done)
    - fill the fields on a web form
    - get the filled pdf online
    Is there a way to make that with adobe suite or maybe with another external software ?
    Thanks

    Sofia,
    What you're describing is a server-side programming, where web form data populates PDF template - essentially, generating PDF based on user input.  We've done similar work using PHP and I'm not aware of any canned solution that can do it without custom coding.

  • Convert HTML Web form to a PDF

    I have an HTML web form which will be filled out by a user online. Is it possible for me to convert this form and the data which has been filled in by the user to a pdf and save it to a file after the user selects submit?
    Thanks,
    Patti.

    Hi,
    Check out JasperReports / iReport. ( SourceForge )
    Nick

  • Web sites 'Save As' PDF

    Mac Mini OS:10.6.8  Safari 5.1.7 in 64bit mode  Adobe Reader 10.1.3
    For years I've been able to save a web page(Save As) as a PDF document. If there was a problem I would go to Print then 'Save As' PDF.
    Now, for 7 or 8 weeks this rarely works. When I try to save a PDF document already appearing in the browser window, I get the message: "The document could not be exported". Then going to Print>PDF>Save As a PDF > Document appears on my desktop but opens to a single blank page!
    Any ideas as to what's going wrong?

    Thanks for reply but surely after having no problems for years using Adobe Reader & PDF, with no change to my OS since last year, everything points to something happening after the recent update, Reader v10.1.3?
    I have posted on a Mac forum but with no solutions.

  • WARNING Smart Web Printing Save as PDF

    Using SWP V4.5.1, I have discovered that if I wish to save a pdf from the edit screen and happen to have a file highlighted, then overtype the filename with a different one. It saves under the new file name but DELETES the one that was highlighted. This is NOT the normal windows file save as action.
    BE VERY CAREFUL.

    nevermind! I figured out the problem--I needed to click on "view" and check "hide comments", which were being included in the PDF, making it smalled on the left side of the page
    thanks anyway AppleFolks

  • Editing forms save in PDF?

    I created a form in adobe pro and saved it as pdf file. I want to send the form to other people who have regular adobe can they enter their answers in the open fields?

    Don't know what you mean by Adobe, there is no such program. I assume you mean Reader. With AR XI, the users can now save forms without any action on your part. For prior versions of Reader it was necessary for you to activate Reader Rights for the PDF. They should still be able to print. Why do you want them to be able to save the file (i.e., what is the work flow that you are looking for? That may help in giving you a more useful answer.).

  • Safari unexpectedly quits when print Save as pdf

    My Safari 3.0.4 application crashes when I try to print a web page "Save as pdf". I was doing fine before last week, when Adobe Reader automatically updated to 8.1.2. I have Leopard 10.5.2 OS. Could any one help in fixing this problem?

    Try restarting or posting the error log which you get with it when you press report to apple.
    Message was edited by: Adam 552

  • Is it possible to see who has saved progress on a web form, but not submitted?

    We are using FormsCentral for our application process, and we are allowing applicants to save forms. Is it possible to see who has started a web form, and saved it, but hasn't submitted yet? Maybe by cc'ing the email notificiation they get to an admin?
    We'd like to see who is working on the applications, and also to send them a reminder that they need to complete and submit the form by the deadline.

    Hi;
    No, there isn't a way for you to see anything about who has saved progress.
    Thanks,
    Josh

  • NetRetryCount and netRetryInterval error in Hyperion Planning web form

    User is getting this error when trying to save data on a web form. The error happens intermittenly and on different forms. It is difficult to pinpont the problem, as it does not happen consistently on the same form and as the administrator, I have never been able to replcate if on my computer and under the admin role. It actually causes the Hyperion Planning service to crash and we have to restart the service. The most recent time this occurred there was a rule that was running on save. We have removed the run on save for now. Does anyone know what setting need to be adjusted to eliminate this error?

    Hi
    You can probably try changing the value for netRetryCount and netRetryInterval in Essbase.cfg. Consider changing NetDelay too.
    Essbase.cfg file is loacted in:
    $HYPERION_HOME/products/Essbase/EssbaseServer/bin/Essbase.cfg
    Thank You
    Sandeep Kumar Upadhyay
    Edited by: 901142 on Dec 8, 2011 11:49 AM

  • CSS does't work for new Web Form wpc_mini_article

    Hello,
    I created a new web form following [this guide|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/2041eb17-6001-2b10-b08d-b95ce55fa9b7], which works pretty good. The problem is that I personalized the sdn_general.css file but none of the definitions made in that css file works in the content using the new web form, called wpc_mini_article.
    I guess there must be something else to configure, but where?
    Thanks!
    Demis

    Hi,
    You can modify the Content.css. Be sure to modify the right anchor, such as h2 for exemple....
    Exemple : modifying the style of every H2 included in a <a> :
    h2 a
    Content.css is located on : Content Administration > KM Content, then the path is : root > etc > wpceditor > css > runtime > content.css
    You have to save it on a local directory, edit it, delete it on KM and then upload the modifyied content.css you just made.
    Fabien.

  • How do I purchase reader extensions to save a PDF form that has been filled out in Acrobat Reader?

    I have just discovered that in order to save a PDF form that has been electronically filled out in Acrobat Reader, that I have to purchase reader extensions to make this possible.  I would like to speak to someone about the price and how to purchase.
    I cannot find a phone number on your site, so I am hoping to get an answer from Adobe this way.
    Thanks,
    Chani

    Thanks everyone for responding.  I should have supplied more information.
    I was hired by my client to create PDF forms that can be downloaded from their website, filled out electronically in Acrobat Reader, and then saved (with all the form fields filled in) and emailed.
    I was supplied with scanned forms as the base for creating the form fields in Acrobat Pro.  These web visitors that will be filling out the forms and emailing them will only have Acrobat Reader, most likely.
    I created the forms in Acrobat Pro, and they worked great when I tested them ( in Acrobat Pro) - I could save the form field data.  However, my client has come back to me with numerous complaints from their web visitors - they cannot save the form once they have filled it out in Acrobat Reader and keep the data they have entered.  Instead, they have to print the form physically, scan it, and email it that way (kind of low tech for the year 2013, and not easy for these people).
    So, my end goal is to update these forms in Acrobat Pro so they can be filled out by folks only using Acrobat Reader and saved with the form field data intact.  Seems like a no-brainer that Acrobat Pro should have this capability without purchasing additional extensions.  However, in my research online, I have found several posts that suggest that purchasing "Reader Extensions" is the only way to enable Acrobat Pro to be able to do this.
    Can someone please clarify if I need to buy something to program these forms in Acrobat Pro to enable other people using Acrobat Reader to fill out these forms and save them with the form fields intact?
    If I do need to buy something, what is it exactly?  How do I find out clear, consise, specific information about buying it/the cost/the licensing?  I am a sole owner/employee of a graphic design firm and these forms are for my client, which is a locally-owned regional hospital.
    If this needs to move to the LiveCycle forum, fine, but I don't really know what that software is and since I'm only using Acrobat Pro (and the users, Acrobat Reader) I felt this was the appropriate place to post.
    Thanks for all of your responses!
    Chani

  • Acrobat Form - SAVE AS ONLY function?

    I'm making forms in Acrobat that multiple users will be accessing. Is there a way to set a SAVE AS feature so that the user can only save a copy of the form, not save over the original?

    This forum is for the Adobe FormsCentral (formscentral.adobe.com) which is a service that allows you to create, collect and analyze data using an online web form. You should ask PDF related form questions in the Acrobat forums: http://forums.adobe.com/community/acrobat/forms
    I'll move your post to that forum so you don't need to retype it. They can help you out...
    Randy

  • How to calculate the size of web forms in hyperion planning?

    Hi Experts,
    I am trying to calculate the size of planning forms in Hyperion smart view., but i am unable to find out the way to calculate.
    Can you pls explain how to calculate the size of web form in Smart view?
    --- Srini.

    Hi Srini,
    First, here is what Oracle says:
    Data Form Size Estimation:
    To get a rough estimate of data form size, open the data form and select File > Save As from the browser. The size of the .HTML file is the portion of the data form that changes based on grid size. The .JS files remain the same size and can be cached, depending on browser settings. Information such as data form definitions, pages, and .gif files are not compressed when data forms are opened and sent to the Web browser.
    I have not been able to find out using their method.
    In any case, you can find out the size of grid by using below
    1. Right click on the form grid and click "View source"
    2. Save the source file as "Example.html"
    3. Right click the saved file and click "Properties"
    4. The Form size whould be same as that of file..
    Let me know if it helps.
    Cheers
    RS

  • How can I fill in a form, save the form such that it cannot be further altered, and email it as it was saved?

    How can I fill in a form, save the form such that it cannot be further altered, and email it as it was saved?  I created a form with 5 fields.  It is a form letter that is intended as a receipt for funds received.  I want to fill in the date, name, amount received, etc., save the form with inserted data fields so they can't be further altered, and be able to email it as a complete unalterable PDF document.  What I'm doing now, is filling in the fields, printing it, scanning it, and emailing it as an unalterable document.  The document was created on a Mac using Adobe Acrobat Pro version 10.1.13.  The document is filled in on a PC that only has Adobe reader on it, printed, scanned and emailed as an attachment. There must be a better way! 

    If you have access to a ASP.net Web Server, then the submission could be FLATTENED with FDFToolkit.net and emailed without client-side email software by only using Adobe Reader.
    For more information check out the following websites:
    http://www.pdfemail.net/examples/
    http://www.fdftoolkit.net/examples/

  • On a PDF form, Save acts as if Save-As

    Windows XP SP3
    Adobe Reader 10.1.1.33
    I have started to fill out my U.S. federal tax forms for this year, just the names and address and a few checkboxes.  These are savable PDF files that I downloaded and saved from the IRS Web site.  I am doing this offline, in Adobe Reader not in my Web browser
    When I go to save the result, I get a Save As file-selection window.  I get this either by selecting the Save button on the toolbar or [File > Save] on the menubar.  I am not selecting [File > Save As] on the menubar.
    Selecting Save (not Save As) should save the file back into the same file that was openned.  I should not get a Save As file-selection window.
    Is this intentional, or is this a bug? 
    By the way, how can I submit a bug report on this?  I went to Adobe's Bugbase, but the pull-down list of products did not include Adobe Reader. 

    Download a US IRS tax form from http://apps.irs.gov/app/picklist/list/formsPublications.html.  I suggest searching on that site for Form 1040. 
    Open the PDF file for the tax form in Adobe Reader and fill-in some data.  No, the data does not have to be realistic.  Save the PDF file.  Close Adobe Reader.  Double-click on the PDF file to open it again in Adobe Reader.  Fill-in some more data and change some of the data you previously inserted.  On the Adobe Reader menu bar, select [File > Save], NOT [File > Save As]. 

Maybe you are looking for

  • Linksys WRT150N on all Apple network

    OK...Here's what's happening. I have a WRT150N that I've had for several years connected to an older Linksys cable modem.  On the network is a Power Mac G4, a 20" iMac, a 13" Aluminum Unibody Macbook, a Netgear ReadyNAS Duo, a Linksys print server, t

  • Integrate with SES: connector approach or embedded search approach

    hi Experts: According to the document, we have 2 options to integrate ECM11g with SES11g: * SES connector approach * embedded search approach My customer needs to use a unified search engine to search ECM, internal web and file system, so SES should

  • How do you restore a depleted batte

    I was going through the trouble shooting on the site and it seems like the problem with my player falls in that category as it doesnt want to recharge no matter what?i do. The site says "Restoring the power to depleted battery" but only gives the sym

  • Embedded Video and Interactive Buttons

    Embedded Video and Interactive Custom Button support is needed for Adobe Reader for Android.

  • Adding a GIF to a GIF

    Hi, I have recently edited a picture to have animated snow coming down on it so it is an animated GIF picture. But, I also have a separate GIF picture of a little character i want to add into this background of another GIF. So I want to know how do i