Create a new document with form design

Hello to all!

I want to create a button in a memo (mail) and that this button execute a new document based in a form design…

IT’S POSSIBLE??? Can you help me??

What code is better?? LS or Formula??

Note:

  1. I am begginer in Designer.

  2. I don’t want open the form, I want to create a new document using the form’ design…

Thanks a lot…

Please, sorry for my bad English…

Regards!!

Subject: Create a new document with form design

The button needs to only have one line of code, essentially this (from Designer Help):

@Command([Compose]; server : database ; form ; width : height)

You need to specify the server and database where the document will be created and the form that will be used to create it. The form needs to exist in the database previously specified.

Subject: RE: Create a new document with form design

Cesar, I will try using this formula…

Thanks a lot!!!

Regards…

Juan.

Subject: RE: Create a new document with form design

Cesar, The @F is especial!!! But…

Don’t have the equivalent code to LS?? :D:D

Thanks a lot!!!

Regards…

Subject: We sure do … :slight_smile:

Set notesUIDocument = notesUIWorkspace.ComposeDocument( [ server$ [, file$ [, form$ [, windowWidth# [, windowHeight# [, returnNotesUIDocument]]]]]] )

Subject: RE: We sure do … :slight_smile:

Cesar, Jeje…yes, just I saw this in the Help database…

Equal, thanks a lot for your help…

Regards…

We will see soon jeje…

Juan.