How to preview a document using Dialogbox

Dear all,

Does anyone know how to preview a document using Dialogbox? Means that when user double click the document in a view, the document will open in a dialog box or a small window but not the whole new tab window, because this will increase the no. of tab window on the notes client.

And after user edit the document, it must be able to saved into the original doucment.

Besides, I have another problem.

Can CopyAllItems be used in dialog box when we want to save the data that entered in the dialog box form to a document. I have tried but it does not work.

Subject: How to preview a document using Dialogbox

It’s possible. In the view’s QueryOpenDocument event, set Continue to False. Get handle to the selected document by using NotesUIView.Documents.GetFirstdocument. Using Dialogbox function of NotesUIWorkspace, open the document in dialogbox. When user makes changes to that document and click on ‘ok’, the changes will be passed on to the underlying documnet.

I don’t see any Need for CopyAllItems method.

HTH

Adibabu.K