Can't Print with Apprentice After Installing Inventor View 2016

Can't Print with Apprentice After Installing Inventor View 2016

Anonymous
Not applicable
1,268 Views
6 Replies
Message 1 of 7

Can't Print with Apprentice After Installing Inventor View 2016

Anonymous
Not applicable

Hey guys, i have a knatch for posting that which cannot be solved but here goes again.

 

Dim oAppren As New ApprenticeServerComponent

Dim oAppDWG As ApprenticeServerDrawingDocument = oAppren.Open("Q:\_Vault\SA_Designs\Projects\J0000 - PERDIX TEMPLATES\2) CAD\ERM-B1\0000_ERM-B1_101.idw")

Dim oAppPrinter As ApprenticeDrawingPrintManager = oAppDWG.PrintManager

oAppPrinter.Printer = Me.cbPrinters.SelectedItem

oAppPrinter.ScaleMode = PrintScaleModeEnum.kPrintBestFitScale

oAppPrinter.PaperSize = PaperSizeEnum.kPaperSize11x17

oAppPrinter.Orientation = PrintOrientationEnum.kLandscapeOrientation

oAppPrinter.PrintRange = PrintRangeEnum.kPrintSheetRange

oAppPrinter.SetSheetRange(1, oAppDWG.Sheets.Count)

oAppPrinter.AllColorsAsBlack = False

oAppPrinter.ColorMode = PrintColorModeEnum.kPrintColorPalette

oAppPrinter.SubmitPrint()

 

 

And at the oAppPrinter.SubmitPrint() I get a msgbox:

Title - Serious Error

Content - Library C:\Program Files\Autodesk\Inventor View 2016\Bin\bin32\FWSrv.dll does not exist.

 

Except it does exist as I've pasted that into Run and it opens the dll.

 

No idea why this is happening, this exact code ran before I installed Inventor View 2016. The only reason I installed the new inventor view is because i couldn't get this code to print in color.

0 Likes
Accepted solutions (2)
1,269 Views
6 Replies
Replies (6)
Message 2 of 7

Anonymous
Not applicable
Accepted solution

Spent the day trying everything i could find to no avail. Ended up doing a system restore. Now I just have to figure out how to make printing keep the views shaded.

0 Likes
Message 3 of 7

Anonymous
Not applicable

I have just run into the exact same scenario here.  Did you ever get this resolved?

0 Likes
Message 4 of 7

Anonymous
Not applicable

Never did resolve it, rolled back to using Inventor to print unfortunately.



 

Edited by request
Discussion_Admin

0 Likes
Message 5 of 7

Anonymous
Not applicable
Accepted solution

Just to follow up on this, our reseller helped us get this resolved.  Unfortunately I am not 100 percent sure on one specific thing that fixed it.  I had been referencing the Autodesk.Inventor.Interop.dll library.  We changed that to the .COM Autodesk Inventor's Apprentice Object Library.  We also switched the target framework from .Net 4.5 down to 4.0 and then back up to 4.5 again.  After that we 'cleaned the solution'.  I believe one or all of these items is what helped us get back on track.  Hopefully this can help somebody else too!

Message 6 of 7

Anonymous
Not applicable

thanks for responding back with that, ill test it here too

0 Likes
Message 7 of 7

gavbath
Collaborator
Collaborator

I am getting the exact same issue. I have tried Inventor View 2016 - SP1, but it made no difference.

 

I followed the steps mentioned in the reply marked as solution, and it seemed to work the first time we tested it, but then the problem came back the next time we tried a print through the API.

 

This is a major showstopper for our customisation for this particular client.... They need to be able to print using our tool that uses apprentice.

 

Gavin Bath
MFG / CAM Technical Specialist
Design and Motion Blog
Facebook | Twitter | LinkedIn | YouTube


   

0 Likes