excel - Converting postscript file to pdf not working -


PDF -

The problem is that the process does not detect any contents in the worksheet - how can I 'activate' the content?

-

I have a VBA macro that converts Excel reports in PDF files - I address myself to repeat several workbooks, but when I work in a workbook I do and others do not.

The code is below - I update the four values ​​in each of the respective cell / value for each workbook and I have checked that only one reference is selected in each workbook.

When I run the code, it changes through the loop index index produces pdf with cell and new data. While one of the workbooks is not being made in PDF, I have stepped through the code and it creates a postcript file but it does not convert to PDF.

  public sub Niryatgraf () Const index = "B55" Const Print = "D55" Const authority Name = "B5" Const filename = "civic culture and community venues performance indicator standings Report 2013 -14 - "Applications. Screenapting = wrong application ShowWindowsInTaskbar = False application.DisplayAlerts = False application .EnableEvents = False Dim set workspace as I like integer as awb = thisWorkbook awb.Worksheets to set Peedifdistiller as dim myPDF myPDF = new Peedifdistiller i = 1 ( " Pin"). Range (total cell) .Value awb.Worksheets ("PIN"). Range (Indexell). Value = idiom strGraphLoc, string strpin = awb.Sheets ("PIN") as string. Category (Authorization Name) Value & amp; "" & Amp; Awb.Worksheets ("PIN") Range ("B6") Value strgraphLoc = awb.path & amp; "/" Dim PSFileName string as a PDFFileName string in the form of PSFileName = strGraphLoc & amp; Filename & amp; Stripin & amp; ".ps" PDFFileName = strGraphLoc & amp; Filename & amp; Stripin & amp; ".pdf" 'PostScript file ABB to Apple range. Print Sheet ("Pin"). Print copies = 1, and = 1, preview = false, Aktivprint in = "Acrobat Distiller" Printtofail: = True, Collette: = True, Protofailnam = PSFileName '.pdf myPDF.FileToPDF PSFileName, PDFFileName, Convert PostScript File "" PSFileName Kill strGraphLoc & amp; Filename & amp; Stripin & amp; ".log" Next I set myPDF = nothing application. Display alter = true app Screen upturning = right app ShowWindowsInTaskbar = True Application.EnableEvents = True End Sub  

would be greatly appreciate any help, I can not work for your life because it works for some people and for others No.

I have problem with the workbook, is created a 0kb PostScript file is a text file that says: / P>

%% [Warning: Empty job a PDF file Not created] %% - Byte PostScript language file contains: %%

There is no graphics, so distiller can not convert it into a meaningful PDF file. So, why is PostScript language file 0 bytes long?

The problem has been unsuccessful with printing from the spreadsheet.

Take the VBA out of the problem Try to print the problem spreadsheet through the Excel "Print" menu item. Print on PostScript and non-PostScript printers I suspect that this will also fail.

Diagnose Printing Failure After working "Print" menu item, I suspect that VBA script will also be there.


Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -