First of all I should mention that for PDM I am using DBWorks.
I have wrote piece of software which is allowing me to kind of Pack and Go without opening any files in SolidWorks (every thing is done base on the DBWorks Database). To be able for easy exportation of file. (Look at DBWorks Pack).
For addition to thta I am attempting to make batch PDF printing from the same software (maybe other things later on). Basicly from the list that is abowe I am attempting to print all drawings. (Look at DBWorks Print)
And there is the problem starting. I am using Bullzip PDF Printer. Look at the code below (Visual Basic 2010 Express).
PartNumber = DataGridView1.SelectedRows.Item(i).Cells.Item(1).FormattedValue.ToString()
Folder = DataGridView1.SelectedRows.Item(i).Cells.Item(6).FormattedValue.ToString()
revision = DataGridView1.SelectedRows.Item(i).Cells.Item(3).FormattedValue.ToString()
sheetFormat = DataGridView1.SelectedRows.Item(i).Cells.Item(5).FormattedValue.ToString()
FileName = Folder & PartNumber
'Get Part Number without extension
For count = 1 To Len(PartNumber)
If Strings.GetChar(PartNumber, count) = "." Then
number = Strings.Left(PartNumber, count - 1)
Dim output = TextBoxPrintFolder.Text & "\" & number & " " & "-" & " " & "Rev." & revision & ".pdf" 'file name
'Initiate printer and set settings
PrinterSettings.PrinterName = printer
'Wait for file before sending another one to be printer
This is the setup. When I run it with solid works opened it throws an error, also it alwes reads pagesetup from solidWorks file.
Without Solid Works open there is no error and every thing works fine (apart form turning on SLD sesion and turning of for each print which is taking a bit of time).
(Look at Error).
I would like to open for printing in SolidWorks (View mode only) or e-Drawings.
Can anyone help?