M
michael.esposito
I am using the code below to create a document through mailmerge and
then print it. It is running through ASP.Net, which automatically uses
the default printer for the server. I want to be able to have the user
select which printer to use before the process begins....is there any
way I can do this?
Please let me know if you have any ideas!! Thanks!!!
Michael
wrdApp = CreateObject("Word.Application")
wrdApp.Visible = False
wrdDoc = wrdApp.Documents.Add(doc_path)
wrdDoc.Select()
wrdSelection = wrdApp.Selection()
wrdMailMerge = wrdDoc.MailMerge()
wrdDoc.MailMerge.OpenDataSource(ds_path)
wrdMailMerge.Destination =
Word.WdMailMergeDestination.wdSendToPrinter
wrdMailMerge.Execute(True)
wrdDoc.SaveAs(doc_path)
wrdDoc.Close()
then print it. It is running through ASP.Net, which automatically uses
the default printer for the server. I want to be able to have the user
select which printer to use before the process begins....is there any
way I can do this?
Please let me know if you have any ideas!! Thanks!!!
Michael
wrdApp = CreateObject("Word.Application")
wrdApp.Visible = False
wrdDoc = wrdApp.Documents.Add(doc_path)
wrdDoc.Select()
wrdSelection = wrdApp.Selection()
wrdMailMerge = wrdDoc.MailMerge()
wrdDoc.MailMerge.OpenDataSource(ds_path)
wrdMailMerge.Destination =
Word.WdMailMergeDestination.wdSendToPrinter
wrdMailMerge.Execute(True)
wrdDoc.SaveAs(doc_path)
wrdDoc.Close()