473,382 Members | 1,252 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Printing to Distiller

I'm busy converting a Visio vba procedure to VB.NET this morning. My latest
problem is printing the document to Distiller (which worked fine in VBA).
It's getting caught up on the following line (and unfortunately I don't get
to see the ex error as I get an error message from the print queue app and
Visio stops responding! Any clues?):

vDoc.PrintOut(VisPrintOutRange.visPrintFromTo, 1, fPgCount, , "Acrobat
Distiller")

Thanks

John

PS - I've not got a reference to Distiller in the .NET app (just incase
that's important.....)

Sub PrintForegroundPages(ByVal vDoc As Document)

Try

Dim fPgCount As Integer = 0 'Foreground page count

Dim vsoPages As Pages

Dim vsoPage As Page

Dim intCounter As Integer

'Get the Pages collection.

vsoPages = vDoc.Pages

'Iterate through the collection.

For intCounter = 1 To vsoPages.Count

'Retrieve the Page object at the current index.

vsoPage = vsoPages(intCounter)

'Check whether the current page is a background page.

If vsoPage.Background = False Then

fPgCount = fPgCount + 1

End If

Next intCounter

'Print out foreground pages

vDoc.PrintOut(VisPrintOutRange.visPrintFromTo, 1, fPgCount, , "Acrobat
Distiller")

Catch ex As Exception

System.Windows.Forms.MessageBox.Show(ex.Message)

End Try

End Sub
Nov 21 '05 #1
0 977

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: BJS | last post by:
Sorry for the cross-posting, but based on the number of people I have seen ask for a solution to this problem, I hope by cross-posting this, that it will help a lot of people out of a common...
4
by: xzzy | last post by:
I have been tasked with changing the filename Adobe Distiller defaults to. My guess is I can't change it. Has anyone been able to use VBA to change that name? Thanks, John Bickmore...
5
by: Filips Benoit | last post by:
Dear All, How to check if Acrobat Distiller is running and how to start it before output? Filip
13
by: Sumant | last post by:
printing text in VB6 can be done just by "Printing.Print". is there any replacement for this in .NET? Drawing.Print won't work coz it converts text into image and then prints. so when we use Adobe...
4
by: Ben Amada | last post by:
Hello, Instead of printing directly to the printer, I'd like to print some text and graphics to a PDF or even a postscript file which can then be distilled into a PDF. Will I need a third party...
3
by: eddyger | last post by:
Hi, I would like to print to a printer connected to my IIS server. I mean "I DONT WANT TO PRINT ON EVERY PRINTER IN THE WORLD". (many answers are thinking javascript printing to the user side)...
2
by: zensunni | last post by:
I'm looking to interface with distiller using adobe's API. This is the guide I'm using:...
0
by: dotnet2005 | last post by:
Hi Toall , I want to explain you clearly , I am having some panels having some controls CheckBox,ComboBox,Datagridview,Hyperlink,label,Listbox,Picturebox,RadioButt­ on ,Textbox)...
1
by: billelev | last post by:
Here is some code that I have adapted slightly. It allows a report to be printed to a specific location. It works by calling SaveReportAsPDF and specifying the access report name, and the root...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.