Is posible to do this?

Stimulsoft Reports.NET discussion
Mpanal
Posts: 43
Joined: Thu Sep 07, 2006 11:28 am
Location: Spain

Is posible to do this?

Post by Mpanal »


Hello,

A question about PDF forms.

I need do a personalized pricelist for our customers that we send weekly. This pricelist must be distributed on PDF format.

I want that this pricelist can be used also as order form for the customer filling it and resend to us for proces.

The question is: Can I create a field on each line fillable for the user and exportly to PDF as a fillable field of PDF form?

If is possible, how I must do it?

Thanks
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Is posible to do this?

Post by Edward »

Hi

Yes, that is possible. Please set 'Editable' property of the StiText component in true and appropriate field will be editable in Pdf file.

Also before export to Pdf you need to assign the following static property:

Stimulsoft.Report.StiOptions.Export.Pdf. AllowEditablePdf = true;

Thank you.
Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

Is posible to do this?

Post by Ivan »

Hello,

Also please see the "UserManual.pdf" from our site, section "5.4.1.4 Editable fields".

Thank you.
Mpanal
Posts: 43
Joined: Thu Sep 07, 2006 11:28 am
Location: Spain

Is posible to do this?

Post by Mpanal »


Thanks for the answer.

Edward wrote:Hi

Yes, that is possible. Please set 'Editable' property of the StiText component in true and appropriate field will be editable in Pdf file.

Also before export to Pdf you need to assign the following static property:

Stimulsoft.Report.StiOptions.Export.Pdf. AllowEditablePdf = true;

Thank you.
From the designer, on preview is posible export with this propierty? Or I need set from a program?

Thanks
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Is posible to do this?

Post by Edward »

Hi

Yes, that is possible. You can add this line of code in the BeginRender event of the report in the Designer or from any other event.

This property is static so it could be set from program or during report rendering, so the main idea is that it must be set before exporting process.

Thank you.
Mpanal
Posts: 43
Joined: Thu Sep 07, 2006 11:28 am
Location: Spain

Is posible to do this?

Post by Mpanal »



I can create a pdf with an editable form now, but I can't save to local.

Is a new parameter for permit save?

Thanks
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Is posible to do this?

Post by Edward »

Hi

No there is no such settings, please check user permissions to access certain folders you were going to save in.

Thank you.
Mpanal
Posts: 43
Joined: Thu Sep 07, 2006 11:28 am
Location: Spain

Is posible to do this?

Post by Mpanal »

Edward wrote:Hi

No there is no such settings, please check user permissions to access certain folders you were going to save in.

Thank you.

No. Is not a filesystem permissions problem. Is something relatively to the pdf document.

If I open the pdf with adobe profesional I have no problems. If I open with reader I can't save the pdf with changes filling the form. I have a dialog from adobe reader saying that is not posible to save if I don't use Adobe pro.

Opening with adobe pro, I can activate user rights for save data for adobe reader. Activating it, the pdf can be filled and saved on adobe reader later.

Seems some right on the pdf document created by stimulsoft.
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Is posible to do this?

Post by Edward »

Hi

Yes, it is possible to set up the user access privileges to the exported into Pdf report.

StiPdfExportSettings class contains the following parameter:

UserAccessPrivileges:

public enum StiUserAccessPrivileges
{
AddOrModifyTextAnnotations = 8,
All = 15,
CopyTextAndGraphics = 4,
ModifyContents = 2,
None = 0,
PrintDocument = 1
}

For more details, please read User Manual.pdf , page 245:

http://www.stimulsoft.com/Documentation ... En.Pdf.zip

Thank you.
Mpanal
Posts: 43
Joined: Thu Sep 07, 2006 11:28 am
Location: Spain

Is posible to do this?

Post by Mpanal »


Hello,

Yes, setting UserAccessPrivileges to 15 works well.

Thanks you

My new challenge is inject a button and some javascript code into the result pdf. I am looking on Itext use.

Any suggestion?
Post Reply