473,657 Members | 2,624 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

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
Jul 21 '05 #1
2 4525
ywchan,
this question was answered on the dotnet.interop group.

please do not multi-post.
http://www.aspfaq.com/etiquette.asp?id=5003

-Dino

"ywchan" <yw****@hkem.co m> wrote in message
news:us******** ********@TK2MSF TNGP11.phx.gbl. ..
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

Jul 21 '05 #2
sorry...

"Dino Chiesa [Microsoft]" <di****@online. microsoft.com> ¼¶¼g©ó¶l¥ó·s»D
:uo************ **@TK2MSFTNGP11 .phx.gbl...
ywchan,
this question was answered on the dotnet.interop group.

please do not multi-post.
http://www.aspfaq.com/etiquette.asp?id=5003

-Dino

"ywchan" <yw****@hkem.co m> wrote in message
news:us******** ********@TK2MSF TNGP11.phx.gbl. ..
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


Jul 21 '05 #3

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

Similar topics

2
4670
by: Rob McLennan - ZETLAND | last post by:
Hi, I have set up an external stylesheet, named "print.css", to format the style of all pages printed from my company's website. I've been previewing my changes to the stylesheet by doing File\Print Preview in IE6 and noticed that occasionally the leftmost button of the javascript menu (CoolMenus Version 3.02) on our website is printed. (I have wrapped the javascript that generates this menu in a DIV so that it is concealed from...
5
3645
by: Alan | last post by:
While not rs.eof <td><%=rs("InvoiceNo")%></td> <td><%=rs("Name")%></td> <td><a href="InvoicePrint.asp?WInv=<%=rs("InvoiceNo")%>"></a></td> <td>Print this invoice</td> rs.MoveNext Wend Now user needs to click the link to open the invoice, and then select File--Print from the menu to print it out, and then return back to print
7
6867
by: Robert Adkison | last post by:
I need to print a web page. It is my preference that my users just do a File/Print from explorer. That way my users will get the print dialog that will allow them to select the fax printer. The only problem with doing this is that a header (name of the page and Page x of x) and footer (actual page filename the date) are included. I am proficient with using Crystal Reports v10 (developers version) which will create a PDF file for you to...
7
2628
by: Ron | last post by:
Hi All, Is it possible to have Access print a report, identical to one that would print to a printer, only print to a "standard" text file? I can't find it in help and when I try to just print to a file (in the printer selection screen of the print routines) it gives me a file named what I wanted, but is just garbage. Can't read it. TIA ron
24
2826
by: Tony Girgenti | last post by:
Hello. Developing a Windows Form program in VS.NET VB, .NET Framework 1.1.4322 on a windows XP Pro, SP2. Before printing a document, i want to set the font to a font that is only available with the printer that i am printing to(Zebra TLP2844). When i open Word and look at the fonts available for the default printer, it does not show the fonts i want. If i cahnge the printer to the printer that
5
21179
by: Brad Pears | last post by:
I have the following code which I was using to print .pdf's. It worked fine and actually printed the pdf file. Now I want to use the same code to print a .jpg file. When I run the code, it launches the 'Windows Picture and Fax viewer application' and DOES NOT print the actual image. Is there a tweak to this code or is there some other code I can use to print a specified .jpg file directly from within my .net application???
3
2425
by: itdaddy | last post by:
hey perl gurus! i am new to this forum cause i need help. I have done many scripts. but i want to use perl to do this: What I want to do is this. I have a QRP file that I can convert to a txt file field separated by commas or not. I want to pring each line that has an actual date to the right of the word 'DATE:' if it doesnt have a date do not print that line. Then the next thing i want my perl program to do is print each line that has...
12
3529
by: Studiotyphoon | last post by:
Hi, I have report which I need to print 3 times, but would like to have the following headings Customer Copy - Print 1 Accounts Copy - Print 2 File Copy -Print 3 I created a macro to print the report three times, but do not know how
18
4489
by: =?Utf-8?B?SGVyYg==?= | last post by:
I'm using a ReportViewer in ASP.NET. From the development environment it works fine. When published and I try to open the page with the ReportViewer I get the error: An internal error occurred on the report server. See the error log for more details. Do I have something configured wrong? I do not knw where to find the error log to review it.
3
2614
by: Andrew Meador | last post by:
I have a button on my form to "Print". I would like to create an HTML file, of the output, and call the Explorer...Print function when this "Print" button is clicked. How can I do this - the Explorer...Print part? I can create the HTML file, just need help with calling the Explorer...Print function - supplying the path to the file so that only the Print Dialog pops up once they click on "Print" Thanks!
0
8407
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8837
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8739
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8512
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
5638
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4171
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2739
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1969
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1732
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.