I have spent a lot of time on this question, namely, how to programatically use a PHP script to send a PDF document to the printer without launching the Adobe print dialog that results from using arcord32.exe (the adobe reader). PHP has some useful classes for creating PDF's, i.e., the FPDF library, but printing the created file is a bear. For Windows XP and Windows 7 servers, the one open -source solution which works is to use the PDFBOX java library. Here are the steps. 1) Download the latest java pdfbox binary: http://www.apache.org/dyn/closer.cgi/pdfbox/1.7.1/pdfbox-app-1.7.1.jar and put it in a directory. I …

Member Avatar
Member Avatar
+6 forum 14

Hello guys!! I really need your help, I'm starting to use python and I have to write a program that counts the letters of a sentence entered by the user. This is what I have so far, but I don't know why it is not working.. Please help, thank you def main(): phrase = input("Enter a sentence:") words = phrase.split wordCount = len(words) print("The total word count is:") main()

Member Avatar
Member Avatar
+0 forum 14

Hello, everybody. I was wondering if anybody could help me with something. I don't know if I'm taking things too fast but, I was wondering if somebody could help with this program I am making. I'm currently writing a "fake" bank script. Basically you start with a set amount of money, and you can deposit it, withdraw it, and check your balance. However, when I make the deposit and then check my balance, I shows up as the balance being 0, instead of what I had deposited... Could somebody help me out?? Here's the code: Bank.pyw: [CODE]#THIS PART IS NOT …

Member Avatar
Member Avatar
-1 forum 13

I'm currently using below code for print all things in data grid view in vb.net 2012. By all things I mean all columns. Try Dim mRow As Integer = 0 Dim newpage As Boolean = True With gdvcussearchcustomer Dim fmt As StringFormat = New StringFormat(StringFormatFlags.LineLimit) fmt.LineAlignment = StringAlignment.Center fmt.Trimming = StringTrimming.EllipsisCharacter Dim y As Single = e.MarginBounds.Top Do While mRow < .RowCount Dim row As DataGridViewRow = .Rows(mRow) Dim x As Single = e.MarginBounds.Left Dim h As Single = 0 For Each cell As DataGridViewCell In row.Cells Dim rc As RectangleF = New RectangleF(x, y, cell.Size.Width, cell.Size.Height) e.Graphics.DrawRectangle(Pens.Black, rc.Left, rc.Top, …

Member Avatar
Member Avatar
+0 forum 3

I work in visual studio 2015 windows form application and i need to print qr code by using c# How can i print qr code generation ? I generated using the following code : if (textBox1.Text =="") { MessageBox.Show("Please Enter Value ","Error"); textBox1.Focus(); } else { using (SaveFileDialog sv = new SaveFileDialog() { Filter = "JPEG|.jpg", ValidateNames = true }) { if (sv.ShowDialog() == DialogResult.OK) { MessagingToolkit.QRCode.Codec.QRCodeEncoder encoder = new MessagingToolkit.QRCode.Codec.QRCodeEncoder(); encoder.QRCodeScale = 8; string encoding="UserName : " + textBox1.Text + "\r\n" + "CardNo : " + textBox2.Text + "\r\n" + "Address:" + textBox3.Text + "\r\n"+textBox5.Text; Bitmap bmp = encoder.Encode(encoding); …

Member Avatar
Member Avatar
+0 forum 3

I have a sticky header on my page by setting CSS to relative and z-index. When I go to print, the first page prints fine (header, with page content starting just below header). The following pages has header on top of content. How can I force content below header on every page that is printed, or unstick the header so it only prints on first page? Thank you!

Member Avatar
Member Avatar
+0 forum 3

Hi All Anyway of resolving this issue. I have created a script which works properly only issue is occasionaly when the tar.Z file is emailed to me i get this message this only happens sometimes?? begin 644 /var/tmp/aimtl-20080626.txt.tar.Z M'YV08=*TH=.&#9LP+63 @($#A@T9-ES0P4,'@,6+&#-JW,BQH\>/( $L7&B# M!@V1,&+ H $1)0R%-6"@E!$CQ@T;,6C,D &@)HP9,60HC%'#!DJB,&KPE!FR MJ=.G4*-JK#.'3A@Y*.O@4)B4I]2,;\CDF3.G3)ZO&4>FE%'#Y4BC:./*G4NW M;MTI5*9\H2(G#)DR7Y(022#DS9LU@0</J2-'3ADW8_)\&1*V3 *^?@%3R0/' M\I,[;LK(^3(%BI,$GT./9E($-6C17YY426 E#)LZ8>BD>>-F+V?+4^@X#M,F end Here is my script i have to use tar and compress by the way. [code] #!/bin/ksh #set -o xtrace DTE=`date +%Y%m%d` TPATH="/apps/prod-dom/prod/data/formatter/MO_app/archive" ############################################################################### #Checking Base Directory available, abort if errors ############################################################################### if [[ ! -r $TPATH ]] then print "Error - Base directory does not exist or is unreadable:" …

Member Avatar
Member Avatar
+0 forum 14

I have looked on the web for a solution to print scrollable panel larger than can be fitted on the screen but couldn't find any solution and it looks like that many people has this problem! PrintForm (printform powerpack component) can not do this because it only capture that part of the panel that is fitted on the screen. And if you want to do this with the PrintDocument component and print all the visible parts of the form grids,tablelayoutpanels etc and to formate it correctly then you can become really frustrated! Here is my solution to print scrollable panels …

Member Avatar
Member Avatar
+0 forum 3

How to encoded personal image and generate qr code for personal image ? I work in visual studio 2015 using c# windows form application . I need to encode personal image to qr code . Meaning when i select personal image then click to generate it will generate qr code with personal image and related data as user name and address and card no . until now i generated qr code with text data as address textbox and user name and card no but personal image How to encoded personal image to be as encoded qr with related data ? …

Member Avatar
Member Avatar
+0 forum 1

I'm attempting to print a variable print(<variableName>) but I get an error it's not a; function ? I searched online and all I could find is that; it's not a function so how can I fix this; I don't know another command.

Member Avatar
Member Avatar
+0 forum 5

Well if you were like me and Python is your first language. You are trying to learn programming and many people suggested that learn Python as a first language. You take their advice, your download Python and get all set up. Maybe you take a tutorial or two in order to learn some basic syntax... Now you are sitting in front of your computer and you are wondering what to do next. I suggest you start on some projects and get programming to learn more Python. I have created all the projects myself, and will include the source code in …

Member Avatar
Member Avatar
+2 forum 12

Hello, i recently learned Pig Latin and how it works (some stupid hard shakespeare language in Python lol) and in CodeAcademy it says "print Pig Latin" in pig latin which i do not know how and i need some help, here is the code i entered for the program on the site as i copied it and learned it from Youtube vids, then modified it on pycharm and enjoyed it, Please help XD (my first post) def main(): lst = ['sh', 'gl', 'ch', 'ph', 'tr', 'br', 'fr', 'bl', 'gr', 'st', 'sl', 'cl', 'pl', 'fl'] sentence = input('Type what you would …

Member Avatar
Member Avatar
+0 forum 4

i should to move the biggest value to the last index in the array then to print the array. when i print it i get things like letters, smiles... what is the wrong in the code? .model small .stack 100h .data array db 3,8,5,3 n equ 4 b db dup 6 ('$') .code mov ax,@data mov ds,ax mov cl,0 mov si ,offset array mov di ,offset b mov ax,[si] myloop: cmp cl,n-1 je theend cmp ax,[si+1] jb next cmp ax,[si+1] jae continue next: mov di ,ax add di ,48 jmp my continue: mov di,[si+1] add di,48 jmp my my: inc …

Member Avatar
Member Avatar
+0 forum 1

Hi there, I am having trouble with hp deskjet 3550 printer..the ink is full..but the problem when i print something it starts printing but when it's finish print an empty paper comes out...nothing on the paper...i tried several times but no success yet...so whats the best method to solve this problem any idea...pls help me...thanks in advance...Zulfiker.

Member Avatar
Member Avatar
+1 forum 26

hey there guys. I want to know how to Print the data from a listview into a receipt. I have found a question here which solves the printing but it only prints the listview items and not the other texts from the Receipt Form. Like the Header and total amounts and the like. [Click Here](https://www.daniweb.com/programming/software-development/threads/399212/printing-from-list-view) is there any way to edit this and also print the other texts.

Member Avatar
Member Avatar
+0 forum 4

Hello I am almost finished with my assignment but I just need it to do the math correctly and I need help!!! I can easily do the problem on paper just fine however I can't get Netbeans to create the right answer. Here is the problem I need it to calculate 85,000 + (Sales x .10) = Annual compensation Please help me or point me in the right direction. Thank you all! //*** // Please enter total annual sales // // 85,000 + (Sales x .10) = Annual compensation //*** package annualcompensation; import java.util.Scanner; import java.text.DecimalFormat; public class annualcompensation { …

Member Avatar
Member Avatar
+0 forum 3

Hi Guys, I m writing one HTML page where i wanted the page orientation to be set to LANDSCAPE through Javascript or CSS. So when I click on Print button or anyways on the HTML page, the print window will pop-up so now in that orientation property should be set to LANDSCAPE. So does anyone know how to accomplish this? Thanks in advance.

Member Avatar
Member Avatar
-1 forum 26

<?xml version="1.0"?> <License version="1"> <ActivationInfo> <ActivationDate></ActivationDate> <IssueDate>22-Dec-2015</IssueDate> </ActivationInfo> <MachineInfo> <MachineName></MachineName> <SoftwareIds></SoftwareIds> </MachineInfo> <LicenseKeys> <LicenseKey> <LicenseVersion>1</LicenseVersion> <FeatureName>PLI_FEATURE1</FeatureName> <LicenseType>PERMANENT</LicenseType> <CustomProperties> <CustomProperty> <key>LICENSETYPE</key> <value>EVAL</value> </CustomProperty> <CustomProperty> <key>CAPACITY</key> <value>10</value> </CustomProperty> <CustomProperty> <key>CAPACITY_UNIT</key> <value>TB</value> </CustomProperty> </CustomProperties> </LicenseKey> <LicenseKey> <FeatureName>PLI_FEATURE2</FeatureName> <LicenseType expirationDate="01-Jan-2017">EVALUATION</LicenseType> <CustomProperties> <CustomProperty> <key>LICENSETYPE</key> <value>EVAL</value> </CustomProperty> <CustomProperty> <key>CAPACITY</key> <value>10</value> </CustomProperty> <CustomProperty> <key>CAPACITY_UNIT</key> <value>TB</value> </CustomProperty> </CustomProperties> </LicenseKey> <LicenseKey> <FeatureName>PLI_FEATURE3</FeatureName> <LicenseType>SUBSCRIPTION</LicenseType> <CustomProperties> <CustomProperty> <key>LICENSETYPE</key> <value>EVAL</value> </CustomProperty> <CustomProperty> <key>CAPACITY</key> <value>10</value> </CustomProperty> <CustomProperty> <key>CAPACITY_UNIT</key> <value>TB</value> </CustomProperty> <CustomProperty> <key>START_DATE</key> <value>10-Jun-2015</value> </CustomProperty> <CustomProperty> <key>END_DATE</key> <value>09-Jun-2016</value> </CustomProperty> <CustomProperty> <key>GRACE_PERIOD</key> <value>23-Jun-2016</value> </CustomProperty> </CustomProperties> </LicenseKey> </LicenseKeys> </License> HI, i need to print <LicenseKey> complete nodes till </LicenseKey> for a given particular <FeatureName> ( this …

Member Avatar
Member Avatar
+0 forum 3

Hi, **Python script** from xml.dom import minidom doc = minidom.parse("wind7.xml") Ts = doc.getElementsByTagName("TimeStep") for Ts in TimeStep: Part = TimeStep.getElementsByTagName("Particle")[0] for Part in Particle: Pcid = Particle.getAttribute("Nr") Lat = Particle.getAttribute("x") Long = Particle.getAttribute("y") print("Pcid:%s,Lat:%s,Long:%s" % (Nr,x.firstChild.data,y.firstChild.data)) I have written this python script to extract XY data, but am getting lot of errors **XML file** <?xml version="1.0" encoding="utf-8"?> <dhidata xmlns:DHIParticleTrack='http:://www.dhigroup.com'> <DataAttributes> <TimeStepSeconds>30</TimeStepSeconds> <Engine>FemEnginePT.exe</Engine> <StartTime>2005-02-04 18:30:00</StartTime> <ExpectedEndTime>2005-02-04 18:30:00</ExpectedEndTime> <Projection>PROJCS["OSGB",GEOGCS["Unused",DATUM["UTM Projections",SPHEROID["Airy 1830",6377563.396,299.3249646]],PRIMEM["Greenwich",0],UNIT["Degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["False_Easting",400000],PARAMETER["False_Northing",-100000],PARAMETER["Central_Meridian",-2],PARAMETER["Scale_Factor",0.9996012717],PARAMETER["Latitude_Of_Origin",49],UNIT["Meter",1]]</Projection> <ParticleClassDefinition> <ClassID>1</ClassID> <Name>Dis 1</Name> <NrVariables>4</NrVariables> <var> <code>x</code> <Name>x coordinate</Name> <EUMType>eumIGeographicalCoordinate</EUMType> <EUMUnit>eumUmeter</EUMUnit> </var> <var> <code>y</code> <Name>y coordinate</Name> <EUMType>eumIGeographicalCoordinate</EUMType> <EUMUnit>eumUmeter</EUMUnit> </var> <var> <code>z</code> <Name>z coordinate</Name> <EUMType>eumIWaterDepth</EUMType> <EUMUnit>eumUmeter</EUMUnit> </var> <var> <code>m</code> <Name>Particle Mass</Name> <EUMType>eumICompMass</EUMType> …

Member Avatar
Member Avatar
+0 forum 1

Hello Dani web. This is my first post here so please bear with me if its not 100% correctly setup. Anyways I'm a rookie to php and mysql and I've run into problem with my final project in my first php class. The error given is: "Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\lokaverkefni\signing.php on line 18" All databases in mysql are correct. Anyways to share the php code, heres the following. sign_in.php [CODE] <?php if (isset($_COOKIE['member'])) { include "admin_login.php"; } else { include "signing.php"; } ?>[/CODE] signing.php [CODE]<?php $hostUrl = 'localhost'; $userName = 'root'; $connectID …

Member Avatar
Member Avatar
+0 forum 8

Hi there, I need some help to finish that code, In fact, there is one problem in my code : The last line, when i tried to convert a hexadecimal number in int. The problem is, I got variables containing : ff or 00 or C6 etc... And i want to add "0x" at the begining, for that, I added as string, but when i tried to convert in int, this doesn't work, and it said : ----- File "Stegano Real.py", line 138, in <module> r3.append(int(i)) ValueError: invalid literal for int() with base 10: 'oxff' ---- Here it's my code …

Member Avatar
Member Avatar
+0 forum 4

a) Perform a DRY RUN on the algorithm below using the data provided. Lay out the results of the dry run in TABLE FORMAT with a column for each variable. Input A C = 0 D = A Repeat Input B If B > D D = B endif C = C + 1 Until B = 0 Print D, B, C DATA: 4, 6, 3, 7, 8, 5, 3, 9, 2, 0, 5, 1 The table headers should show each variable and the condition(s) being tested. Show the value of each variable as it changes. b) Describe the purpose …

Member Avatar
Member Avatar
+0 forum 6

[B]hi friends[/B] this small compact code is for printing any number of prime numbers in C Language, you just have to change the last line's 500 to any number you want, here some points necessary to understand the code are as follows- 1.> variable torf stands for true or false,in case if number is prime(true condition), torf's value is 1, else it is zero. 2.> here i have used for loop for simplicity, you can modify this if you lOVE TO HANDLE complications. :cool: for any other help, regarding computing, feel free to contact- [I]<<snip>>[/I] SHUBHAM GORE, B.tech (1st YEAR) …

Member Avatar
Member Avatar
-6 forum 22

Hi all. I am new in C language. I am learning to program by using C for my first step. Now I am reading a chapter about looping (while, for, do.. while, nested loop). In my exercise book, the question is about to: Using nested loop to print out this one, ![678cd8de74d71462869e5d8593263743](/attachments/small/3/678cd8de74d71462869e5d8593263743.JPG "align-left") But, I managed to print like this one, ![d4a699824481fc0c48c1c5809093577a](/attachments/small/3/d4a699824481fc0c48c1c5809093577a.JPG "align-left") by using this code, #include <stdio.h> int main(void) { int x; int y; for(x=1; x<=5; ++x) { for(y=x; y<=5; ++y) { printf("*"); } printf("\n"); } return 0; } How can I print out like a first one?? …

Member Avatar
Member Avatar
+0 forum 6

I have four array of strings. I would like to print out the strings with this formatting: printf(" %d \t %s \t %s \t %s \t %s.\n", quadruples_line_counter, strings_quadruples1_action[0], strings_quadruples2_variable1[0], strings_quadruples3_variable2[0], strings_quadruples4_temp_variable[0]); It gives this output: 17 func sub int 3. 17 param (null) (null) (null). 17 alloc 4 (null) xa. 17 alloc 4 (null) y. 17 alloc 4 (null) z. 17 multiply 55 y t0. 17 divide t0 z t1. 17 plus xa t1 t2. 17 plus t2 x t3. 17 func main void 0. 17 alloc 4 (null) a. 17 alloc 4 (null) b. 17 alloc 4 (null) …

Member Avatar
Member Avatar
+0 forum 1

I have Windows 7, 64bit with 8 gigs of RAM. Illustrator worked perfectly for weeks than just today it decides to quit. As soon as I open it, the splash screen shows and the interface opens and a couple seconds later it shuts down. No error message. If I'm fast enough to drop down a menu, it stays open. Or if I open Illustrator by double-clicking an AI file, if I quickly move an object on the drawing, it stops to ask if I want to save changes before exiting. I can't cancel the exit process. I've done the usual, …

Member Avatar
Member Avatar
+0 forum 70

Hi everyone! Long story short; I got a Secugen Hamster IV finger print device. I want to use it in my hospital application to be used in identification of patients at the hosptl. However, I do not find this device to be useful in that they they dont' have current SDKs and they sell you a license which will limit the number of templates you can store. You will also have to buy the license again if you change the HDD for any reasons. I have spent many many hours on this device but nothing good. Can anyone please advice …

Member Avatar
Member Avatar
+0 forum 7

write a pseudocode algorithm to accept a group of numbers and print there product and average the program must end when user enter 999 PLZ HELP ME

Member Avatar
Member Avatar
-1 forum 1

Hello, guys i am having a problem with the Printing some tickets i need to print each ticket in a different page beacause the printer i'm using can only print the size you customize it to print and my program can have different variations knwint that i import an Excel file and dependinf on its content the tickets are generated. * I already tried to print using an offset that increments but i still have the same problem [Capture 1] . (offsetTicket +=300;) * Knowing that i only have a printer that can only print according to the size we …

Member Avatar
+0 forum 0

Hi all, I'm having trouble finding information for what I need. I think it's because I don't really know the nane of what I'm looking for, so keywords are eluding me in my search. I hope my explanation might give someone a clue who can help or at least tell me what to search. I want my application to use external third party dll files, from which it will gather information without having to modify my code. So as an example, I have in my code (which will be compiled as exe) code such as... namespace NSpace { interface IInterface1 …

Member Avatar
Member Avatar
+0 forum 3

The End.