info347074
2013-01-15, 10:18 AM
I am trying to Automate exporting selected Sheets as DWFs.
Dim
exported As Boolean = True
Dim VS As ViewSet = m_printmgr.ViewSheetSetting.CurrentViewSheetSet.Views
For Each m_Views In VS
'Export Options DWF
Dim dwfExportOptions As New DWFExportOptions
dwfExportOptions.ExportingAreas = True
dwfExportOptions.MergedViews = False
dwfExportOptions.ImageFormat = DWFImageFormat.Lossless
dwfExportOptions.ImageQuality = DWFImageQuality.High
'Export DWF
exported = doc.Export(FolderDWF, "", VS, dwfExportOptions)
Next
Where I have hightlight VS in red - this returns all selected sheets, rather than the current selected sheet - how can I get current selected sheet?
Dim
exported As Boolean = True
Dim VS As ViewSet = m_printmgr.ViewSheetSetting.CurrentViewSheetSet.Views
For Each m_Views In VS
'Export Options DWF
Dim dwfExportOptions As New DWFExportOptions
dwfExportOptions.ExportingAreas = True
dwfExportOptions.MergedViews = False
dwfExportOptions.ImageFormat = DWFImageFormat.Lossless
dwfExportOptions.ImageQuality = DWFImageQuality.High
'Export DWF
exported = doc.Export(FolderDWF, "", VS, dwfExportOptions)
Next
Where I have hightlight VS in red - this returns all selected sheets, rather than the current selected sheet - how can I get current selected sheet?