111 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for සශික

I had button code to print data in data grid view on vb.net program. But when I click on print all times it show print preview lost first of record. this is my code Dim mRow As Integer = 0 Dim newpage As Boolean = True With dgvreciept Dim fmt …

Member Avatar for anoshmilton
0
2K
Member Avatar for akgreen

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 …

Member Avatar for Yogesh_22
7
22K
Member Avatar for Kippstah

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 …

Member Avatar for balaji_8
-1
17K
Member Avatar for inkcoder

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 …

Member Avatar for Gabriel_9
1
48K
Member Avatar for pasta

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 …

Member Avatar for Gribouillis
0
529
Member Avatar for Suzie999

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 …

Member Avatar for Suzie999
0
262
Member Avatar for MarkOrban

Hi, 1. I downloaded a free trial version 3.7 of WinRAR. 2. When i tried to open the compressed files, i could not open it, and got the message" WinRAR: Diagnostic messages" window open, and there are 3 options: Close, Break Operation and Copy to Clipboard. 3. Is it a …

Member Avatar for sam07
1
265
Member Avatar for negru

Write a program that will print all highly prime numbers from the input interval <a,b>. Prime number is highly prime if deletion of every digit from right is a prime. Example: 239 is highly prime because 239,23,2 are primes. Could someone point out what are logic errors in the following …

Member Avatar for negru
0
324
Member Avatar for Sidrah_1

I am writing a python program on Windows using Python 2.7. Basically, it's a program that takes a 5-digit, negative & positive, number from user & spells it out in English using num2word & then speaks it out too. I have used espeak & pyttsx both but i'm getting errors …

Member Avatar for Sidrah_1
0
432
Member Avatar for pyguy25

Hello. I was wondering if anyone could help me with a caesar cipher program I am attempting to create. I was asked to write a caesar cipher encoder program. Ok. No problem. This is what i got: [code] import string def main(): print "This program will encode your messages using …

Member Avatar for FaZeSkwlSh00ter
0
7K
Member Avatar for DDoerschuk

I would like to ask for help on this problem that I've tried to troubleshoot, but have had no success at. The print spooler on a windows XP Home Edition SP3 machine is refusing to start. Previous to this problem, 5 or 6 printers had been configured and working for …

Member Avatar for nullptr
0
878
Member Avatar for wannas

Hi there, well, i have homework of packet sniffing software i'm not suppose to write the code,but i need to make a report of an existing code and explain it in details. I found the following code somewhere(the code should be of a packet sniffer) ,but i couldn't run it.I …

Member Avatar for Mahesh_14
0
5K
Member Avatar for sarahmalkawi

i want to write easy68k Assembly program to read two numbers each number have 20 digit , then multiply them together and finally print out the result ??

Member Avatar for ALI KHAYRI
0
123
Member Avatar for Curious Gorge

I'm working on a simple encryption program (for school). It is not currently "homework" just FYI, I'm just practicing the examples in the book. It uses a Caesar's Cipher method (an alphabetical shift). I have not tested this code very much. If something is wrong with it I probably don't …

Member Avatar for Curious Gorge
0
237
Member Avatar for DumbBlonde89

So my semester is almost over and I was dumb when I signed up for intro to programming distance learning, I thought I would understand it, but now I guess I know I can't. Anyways here is the problem. A speeding ticket fine policy in Podunksville is $50 plus $5 …

Member Avatar for Gribouillis
0
7K
Member Avatar for Iin_1

Hi to all experts, i have a big problem here, i want to print data from my datagridview, when i select 1 row.. there is no problem, but when i try to print multiple row, just first selected row appear here is the code : private void button4_Click(object sender, EventArgs …

Member Avatar for ddanbe
0
2K
Member Avatar for vasudha k

Can anyone help me out ?....... I have written a code for a form. the first five fileds in the form must be filled automatically by capturing the user id from login page. I have been able to capture the data and print it on the screen But, Iam not …

Member Avatar for jwenting
0
4K
Member Avatar for wudie47

Trying to create function called parseExtension that takes a file name as a string parameter and returns the file extension. Going to ask users to input a filename ie. Python.exe then print the file extension. I tried to split the text and a number of issues for me so far. …

Member Avatar for wudie47
0
7K
Member Avatar for Anna123

Dear All, I have two files where I need to map file_1 to file_2 based on the similarity of the 1st column from file_1 to 8th column to file_2 and print the similar rows with annotaions for that. I am able to achieve that with the following perl script. But …

Member Avatar for 2teez
0
429
Member Avatar for nk.shilpa

Hello I am new to Python and I have a question for a simple piece of code as below: temp = '32' if temp > 85: print "Hot" elif temp > 62: print "Comfortable" else: print "Cold" According to my understanding, when the program compiles and goes to line 2, …

Member Avatar for nk.shilpa
0
246
Member Avatar for Hassaan_3

An electricity board charges the following rates to domestic users to discourage large consumption of energy: Unit used (u) Residential rate Commercial rate 0 < units <= 100 6 8 100 < units <= 200 8 13 200 < units <= 400 12 17 500 < units <= 800 17 …

Member Avatar for vegaseat
0
159
Member Avatar for Trabelsi

Hi, first, sorry for my english i am not good at all, I am trying to create a form that contains two drop-down lists , the first is related to the second list , I noticed that the first list of data ( joursemaine ) appears as a question mark …

Member Avatar for Trabelsi
0
252
Member Avatar for drag

I have array like this stdClass Object ( [0] => stdClass Object ( [field_id] => 10 [value] => 46426 [value_integer] => 0 ) [1] => stdClass Object ( [field_id] => 9 [value] => 1987 [value_integer] => 0 ) [2] => stdClass Object ( [field_id] => 8 [value] => 558/65 [value_integer] …

Member Avatar for diafol
0
274
Member Avatar for sunshine1020

Please ,could you explain this sentence The wins should be input in a parameter-less value returning function that returns the wins to the main function returning function just returns value and does not print message , right ? #include<iostream> using namespace std; int wins(int wins) { cout<<"Please input the number …

Member Avatar for sunshine1020
0
708
Member Avatar for jrp370

hey everyone im making a program that takes a number (n) from the user and then decides if it is prime or not and prints that decision to the screen [CODE] from math import * def main(): n=eval(input("please enter the number you wish to check:")) n=abs(n) if n < 2: …

Member Avatar for vegaseat
0
264
Member Avatar for SCass2010

Hi everyone, I seem to be having a bit of a weird problem with sockaddr / sockaddr_in structs... I want to manually assign the value of an IP address to the sockaddr_in struct, and I've been using memcpy memcpy (&(mIp4sa->sin_addr.s_addr), "127.0.0.1", INET_ADDRSTRLEN); But when I go to print out the …

Member Avatar for Sameer_4
0
2K
Member Avatar for Aeonix

I tried to build really basic associative array but it turned out I don't have enough knowledge, so I tried something less, and less, and less, because I kept failing at it. Finally I just tried to set variables and print them in the command-line. But I can't even do …

Member Avatar for Aeonix
0
22K
Member Avatar for nhiap6

I have used function write() in a loop to write 2 names in binary mode to a file. Now, when I try to read those 2 names I use this logic : 1) find size of file in bytes; 2) create buffer with that size; 1) read into buffer until …

Member Avatar for David_50
0
292
Member Avatar for fonzali

hi , I am trying to first ask the user how many numbers he has ( I have not coded this part yet but assumed number 5 ), then enter the first number , hit enter , enter another number in the same entery widget up until the numbers are …

Member Avatar for fonzali
0
4K
Member Avatar for bunkus

Is there anybody having a code snippet for using the Bresenham circle algo and modifiying it in a way so that it actually draws arcs with specified start and end angle instead of complete circles? A Bresenham algo for a complete circle in Python would be like this: [CODE]import PIL.Image, …

Member Avatar for vegaseat
0
8K

The End.