Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Button 'SaveAs'

Avatar

Avatar
Level 1
mipmater
Level 1

Likes

0 likes

Total Posts

8 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
mipmater
Level 1

Likes

0 likes

Total Posts

8 posts

Correct Reply

0 solutions
View profile
mipmater
Level 1

09-01-2009

I have been trying to setup a pdf to save to a predefined path with a click on a button.



I tried this code :



var aDocs = app.activeDocs;

var myDoc = aDocs[0];

myDoc.saveAs("C:\\" + Title.rawValue + ".pdf");



But i have this error :



myDoc has no properties

3:XFA:formulaire1[0]:#subform[0]:Bouton1[0]:click



Thanks in advance...

Replies

Avatar

Avatar
Level 1
mipmater
Level 1

Likes

0 likes

Total Posts

8 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
mipmater
Level 1

Likes

0 likes

Total Posts

8 posts

Correct Reply

0 solutions
View profile
mipmater
Level 1

15-01-2009

Ok, i know why i've got this error, I had forgotten a quote in the code.



now, i have this error :



formulaire1 is not defined

12:XFA:formulaire1[0]:#subform[0]:Bouton1[0]:click



thank you for your help and patience

Avatar

Avatar
Level 1
mipmater
Level 1

Likes

0 likes

Total Posts

8 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
mipmater
Level 1

Likes

0 likes

Total Posts

8 posts

Correct Reply

0 solutions
View profile
mipmater
Level 1

15-01-2009

Sorry but i can't resolve this error



formulaire1 is not defined

12:XFA:formulaire1[0]:#subform[0]:Bouton1[0]:click



In my hierarchy, there is :

formulaire1

subform

item1

item2

...



is this code wrong :

var av = formulaire1.subform1.departement_inclusion.rawValue



And a last question,

is it possible to save a PDF form, on a simple PDF (a picture of the form).



Thanks for your help

Avatar

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

611 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

611 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile
pguerett
Level 10

16-01-2009

Its hard to tell what is wrong without seeing the form and getting the code in context. Send it to livecycle8@gmail.com and I will have a look.



You can not save as an image PDF out of Designer. You would create the PDF, then open it in Acrobat then you can export as an image.

Avatar

Avatar
Validate 1
Level 1
Thorlabs_HL
Level 1

Likes

0 likes

Total Posts

11 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
Thorlabs_HL
Level 1

Likes

0 likes

Total Posts

11 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
Thorlabs_HL
Level 1

12-05-2009

Hi,

I found this thread by accident. I have one question about the SaveAs. I want to use app.execMenuItem("SaveAs"). But I also want to create a default name to save this document. I have a text field "serial number" that will be filled out by the user and I want to use this serial number as document name. How can I realise it? - I'm a Script-Newbie.

Dennis

thorlabs_hl

Avatar

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

611 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

611 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile
pguerett
Level 10

12-05-2009

No can do ......you cannot automatically save something without the user entering the file name unless you certify the document which will bring in a new set of issues.

Paul

Avatar

Avatar
Validate 1
Level 1
Thorlabs_HL
Level 1

Likes

0 likes

Total Posts

11 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
Thorlabs_HL
Level 1

Likes

0 likes

Total Posts

11 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
Thorlabs_HL
Level 1

12-05-2009

Hi,

I don't want to autosave. It was mentioned in this thread that this is not possible. I want to suggest the user a suitable file name. The user can edit it if he want. It is like I'm saying: "This would be a good name. You should go with it."

Dennis

thorlabs_hl

Avatar

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

611 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

611 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile
pguerett
Level 10

12-05-2009

I understand but the command does not work that way. The command basically will press the File /SaveAs menu item.

Paul

Avatar

Avatar
Validate 1
Level 1
Thorlabs_HL
Level 1

Likes

0 likes

Total Posts

11 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
Thorlabs_HL
Level 1

Likes

0 likes

Total Posts

11 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
Thorlabs_HL
Level 1

12-05-2009

Ah. OK. I understand. But is there an other way to realize it. A easy way? I'm a newbie. If there is no way I just place a note next to the save button.

Dennis

thorlabs_hl

Avatar

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

611 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

611 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile
pguerett
Level 10

12-05-2009

There is no easy way

Paul

Avatar

Avatar
Validate 1
Level 1
Thorlabs_HL
Level 1

Likes

0 likes

Total Posts

11 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
Thorlabs_HL
Level 1

Likes

0 likes

Total Posts

11 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
Thorlabs_HL
Level 1

12-05-2009

Thanks for the help. Even this "no" is a helpful answer for me. I stay with my note next to the save button.

Dennis

thorlabs_hl