Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Interop / January 2004

Tip: Looking for answers? Try searching our database.

Print pdf file in C#, need help, thanks!

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ywchan - 16 Jan 2004 05:00 GMT
I have tried to print pdf by using gswin32 and call it through the process
class

but I can't change the paper orientation....no matter I have set dORIENT1 =
true / false...it is printed as portrait....

Does anyone know how to change the paper orientation in my case?
or having some other idea to print a pdf file in C#?

I have also tried to call AcroRd32.exe throught the process class...but it
can't terminate the acrobat reader automatically....

I really need help from this issue(to automate the printing process of a pdf
file in C#)....thanks a lot
Richard K Bethell - 16 Jan 2004 15:05 GMT
> I have tried to print pdf by using gswin32 and call it through the process
> class
[quoted text clipped - 10 lines]
> I really need help from this issue(to automate the printing process of a pdf
> file in C#)....thanks a lot

AcroRd32.exe can be controlled via Dynamic Data Exchange. There is no .NET
library for sending DDE poke though, so you'd have to either do this by
issuing shell commands or invoking win32. Either way the available DDE
commands may not be rich enough to handle page orientation.The full Acrobat
viewer has a COM interface that is fairly rich.

I haven't ever tried automating the GS viewer before. Ideally, I think with
GhostScript you'd want to be controlling the GhostScript engine itself, and
not a viewer. You'd have quite fine grained control that way, even if there
is a bit more work.

R.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.