This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'ldap' | |
| LDAP_S ={ | |
| :use_ssl => true, | |
| :ldap_host => "domain.com", | |
| :domain => "domain.com", | |
| :start_tls => false, | |
| :ldap_version => 3 | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT model | |
| FROM | |
| (SELECT model, price FROM PC) | |
| UNION | |
| (SELECT model, price FROM Laptop) | |
| UNION | |
| (SELECT model, price FROM PC) model_price | |
| WHERE | |
| price >= ALL (SELECT price FROM model_price); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| This is utilizing iTextSharp for the PdfReader, PdfStamper and AcroFields classes. | |
| */ | |
| DataTable dt = new DataTable();/* fill the DT however you please */ | |
| String pdfTemplate = "PATH_TO_PDF_FORM"; | |
| System.IO.MemoryStream m = new System.IO.MemoryStream(); | |
| PdfReader pdfReader = new PdfReader(pdfTemplate); | |
| PdfStamper pdfStamper = new PdfStamper(pdfReader, m); |
NewerOlder