×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Parse PPD using vb or c# or vb.net?

Parse PPD using vb or c# or vb.net?

Parse PPD using vb or c# or vb.net?

(OP)
Hi.

I am attempting to parse PPD files for printer options. I am hoping to find a Microsoft solution, but all suggestions are welcome.

Thanks!

RE: Parse PPD using vb or c# or vb.net?

(OP)
I suppose I should have been clearer that I didn't want to spend time writing the parsing methods my selfe and wanted to be lazy. I was looking for something like a PPD class or some such.

RE: Parse PPD using vb or c# or vb.net?

(OP)
I know that Adobe has some sort of PPD sdk of some sort that has some kind of parser, but I am not feeling 500.00 rich enough to get it. I'll just have to see how I do writing my own parser.

If any one has any other ideas please don't hesitate to post.

RE: Parse PPD using vb or c# or vb.net?

I wrote one a few years ago but it got lost. Wasn't too difficult- I used VB6.

I got the PPD spec from adobe.com. Once you understand the structure of the ppd, it's relatively simple to parse the file to look for the tags. You don't need to know anything about the printer and its specifics beforehand, because it's the structure you examine, and the printer specifics are the content of the ppd that you suck out.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close