We present the study of the optical diffraction pattern of one and two-dimensional gratings with defects, designed using desktop pc and printed on OHP sheet using laser printer. Gratings so prepared, using novel low cost technique provides good visual aid in teaching. Diffraction pattern of the monochromatic light (632.8nm) from the grating so designed is similar to that of x-ray diffraction pattern of crystal lattice with point defects in one and two-dimensions. Here both optical and x-ray diffractions are Fraunhofer. The information about the crystalline lattice structure and the defect size can be known.