Help to creat document in View?

Set doc = view.GetLastDocument Do Until doc Is Nothing

		doc.Sent=count

		doc.NBPath=szFileName

		Call doc.Save(True,True)

		Set doc = view.GetNextDocument( doc )

	Loop

with these codes I just update new status of the document in view. But I want to creat a new document listed in view while the last document still the same. Tks!!!

Subject: Help to creat document in View???

Dont get confused by View and Document.

Document is something that is composed by using a form.

View is just the representation of that document.

So create a New Document with the Form you would like to. Also make sure that view selection formula allows that document to be displayed in the view.

Hope this Helps.

Subject: RE: Help to creat document in View???

Yeh I know that but I want to creat a new document with the Form by script not by command