Click here to Skip to main content
15,565,403 members
Home / Discussions / C#
   

C#

 
GeneralRe: necessity to use .Any() to check if an IEnumerable<T> result has no items without iterating over it ? Pin
BillWoodruff20-Jan-22 5:26
professionalBillWoodruff20-Jan-22 5:26 
GeneralRe: necessity to use .Any() to check if an IEnumerable<T> result has no items without iterating over it ? Pin
harold aptroot16-Jan-22 23:48
harold aptroot16-Jan-22 23:48 
GeneralRe: necessity to use .Any() to check if an IEnumerable<T> result has no items without iterating over it ? Pin
BillWoodruff18-Jan-22 1:49
professionalBillWoodruff18-Jan-22 1:49 
GeneralRe: necessity to use .Any() to check if an IEnumerable<T> result has no items without iterating over it ? Pin
jschell23-Jan-22 8:40
jschell23-Jan-22 8:40 
GeneralRe: necessity to use .Any() to check if an IEnumerable<T> result has no items without iterating over it ? Pin
BillWoodruff25-Jan-22 4:58
professionalBillWoodruff25-Jan-22 4:58 
GeneralRe: necessity to use .Any() to check if an IEnumerable<T> result has no items without iterating over it ? Pin
jschell30-Jan-22 7:22
jschell30-Jan-22 7:22 
QuestionRemove a page from pdf document in C# Pin
Member 1447460712-Jan-22 21:09
Member 1447460712-Jan-22 21:09 
AnswerRe: Remove a page from pdf document in C# Pin
OriginalGriff12-Jan-22 21:22
mvaOriginalGriff12-Jan-22 21:22 
PrintDocument doesn't do anything with or to PDF files - it has no idea they even exist!
All it is concerned with is letting you format and convert your data to a format that the selected printer understands - no more than that.

If you actually want to remove a page from a PDF file, you will have to access and modify the file itself, which you do by reading the PDF file, and only importing the pages you want - then exporting the data to a (preferably new) file.

You can do that with iTextSharp, I believe, but I've not tried it myself: c# - itextsharp trimming pdf document's pages - Stack Overflow[^]
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!

GeneralRe: Remove a page from pdf document in C# Pin
Member 1447460713-Jan-22 6:19
Member 1447460713-Jan-22 6:19 
GeneralRe: Remove a page from pdf document in C# Pin
OriginalGriff13-Jan-22 6:39
mvaOriginalGriff13-Jan-22 6:39 
QuestionRoots of polynomial , eigenvalue method Pin
Member 1549773912-Jan-22 7:08
Member 1549773912-Jan-22 7:08 
AnswerRe: Roots of polynomial , eigenvalue method Pin
Victor Nijegorodov12-Jan-22 7:22
Victor Nijegorodov12-Jan-22 7:22 
GeneralRe: Roots of polynomial , eigenvalue method Pin
Member 1549773912-Jan-22 9:33
Member 1549773912-Jan-22 9:33 
AnswerRe: Roots of polynomial , eigenvalue method Pin
Richard Andrew x6412-Jan-22 8:10
professionalRichard Andrew x6412-Jan-22 8:10 
GeneralRe: Roots of polynomial , eigenvalue method Pin
Member 1549773912-Jan-22 9:34
Member 1549773912-Jan-22 9:34 
GeneralRe: Roots of polynomial , eigenvalue method Pin
Richard Andrew x6412-Jan-22 9:38
professionalRichard Andrew x6412-Jan-22 9:38 
AnswerRe: Roots of polynomial , eigenvalue method Pin
Kenneth Haugland15-Jan-22 2:53
mvaKenneth Haugland15-Jan-22 2:53 
QuestionSerial communication between LPC2132 microcontroller and serial interface PC through RS 232 and RJ45 Pin
Member 1549617511-Jan-22 3:06
Member 1549617511-Jan-22 3:06 
AnswerRe: Serial communication between LPC2132 microcontroller and serial interface PC through RS 232 and RJ45 Pin
OriginalGriff11-Jan-22 3:21
mvaOriginalGriff11-Jan-22 3:21 
GeneralMessage Closed Pin
11-Jan-22 3:38
Member 1549617511-Jan-22 3:38 
GeneralRe: Serial communication between LPC2132 microcontroller and serial interface PC through RS 232 and RJ45 Pin
OriginalGriff11-Jan-22 3:53
mvaOriginalGriff11-Jan-22 3:53 
GeneralRe: Serial communication between LPC2132 microcontroller and serial interface PC through RS 232 and RJ45 Pin
Member 1549617511-Jan-22 4:18
Member 1549617511-Jan-22 4:18 
GeneralRe: Serial communication between LPC2132 microcontroller and serial interface PC through RS 232 and RJ45 Pin
OriginalGriff11-Jan-22 4:53
mvaOriginalGriff11-Jan-22 4:53 
GeneralRe: Serial communication between LPC2132 microcontroller and serial interface PC through RS 232 and RJ45 Pin
Member 1549617513-Jan-22 3:47
Member 1549617513-Jan-22 3:47 
AnswerRe: Serial communication between LPC2132 microcontroller and serial interface PC through RS 232 and RJ45 Pin
0x01AA11-Jan-22 9:36
professional0x01AA11-Jan-22 9:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.