`

Microsoft Printer issue

阅读更多
Wade Lin <wadelin@microsoft.com>

Hi all,

After examining the code, please follow the given action plan and provide the information we need for further investigation.

Q1. What is the target platform? From the provided sample application, it seems to be ARMV4I.
Q2. What are the differences of printed results between using PrintDlg() and your application? A picture with description would be nice.
Q3. Have you tried passing NULL to the CreateDC()’s 4th parameter? What is the result?
Q4. Could you simplify the code in the PrintDemoMessage() so that it only select one object into the printer DC and check if it prints correctly? Could you add some predicate to the function’s return value and call GetLastError() for any failure?

Since we don’t have your driver nor your printer hardware, please follow the steps to help us trace the call stack and provide the output to us so that we could continue to analyze the problem:
1. Connect the development machine (on which Visual Studio 2005 is installed) and the target CE device through ActiveSync.
2. Open the application project in Visual Studio.
3. Select “Tools”->”Connect to Device…” from the main menu bar.
4. Choose “Windows CE” in the “Platform” dropdown list.
5. From the “Devices” list box, choose the target CE device and press the “Connect” button.
6. If the connection fails, you could follow the steps to adjust connection settings:
a. Select “Tools”->”Options” from the main menu bar.
b. In the left pane, select “Device Tools”->”Devices”.
c. In the right pane, select “Windows CE” in the “Show devices for platform” dropdown list.
d. In the “Devices” list box, select your Windows CE device and press the “Properties…” button.
e. Press the “Configure…” button.
f. Select “Use specific IP address” radio button and input an IP belonging to the CE device.
g. Click “Ok” button three times to close the dialogs.
7. You could either start debugging the program with “Debug”->”Start Debugging” (or press F5) or attach to the running application with “Debug”->”Attach to Process…”.

If you have the Platform Builder OS design, and the Kernel Debugger (kd.dll) is included in the image (you could check in the project property pages, Build Options->Enable Kernel Debugger (no IMGNODEBUGGER = 1), which by default is checked in debug build, and unchecked in release build), you could use the Platform Builder to debug the application which will provide the kernel call stack as well:
1. Select “Target”->”Connectivity Options…”.
2. Select “Kernel Service Map” in the left pane.
3. In the right pane, select “CE Device” in the “Target Device” dropdown list.
4. Select “KdStub” in the “Debugger” dropdown list.
5. Choose appropriate settings for the “Download’ and “Transport” dropdown list.
6. Click “Apply” and then the “Close” button to close the dialog.
7. Select “Target”->”Attach Device” in the main menu bar.
8. Open the application source code in the Visual Studio and set breakpoint as needed.
9. Select “Target”->”Run Programs…” in the main menu bar.
10. Choose the application from to run and debug.

Please feel free to let me or Jonathan know if there are any questions on the action plan.

Thanks,
Wade Lin | Support Engineer | APGC CSS – Microsoft Taiwan
分享到:
评论

相关推荐

    打印机配置和驱动备份 Microsoft Printer Migrator 3.1

    对windows系统的打印机的配置和驱动进行配置,当在一个局域网中就多台打印机且有多台电脑时,在一台电脑上配置好所有打印机驱动,使用Microsoft Printer Migrator进行所有打印机备份,这样在其他电脑上使用该软件...

    airprinter 1.6.6.1 无限制版

    air printer(无线打印照片软件)V1.6.6.1 无限制特别版 如果你有台iPhone手机, 或者苹果iPad平板电脑,那么你可以很方便得利用苹果iOS系统内置AirPrint功能WiFi无线打印照片,Word,PDF等各种文件到你的Air Printer...

    printershare破解版

    printershare破解版

    SQL Pretty Printer 秘钥

    SQL Pretty Printer 秘钥 SQL Pretty Printer 是一款非常实用的SQL代码美化工具,可以把原本杂乱无章的SQL语句用结构化的方式重新展现,使SQL语句更加易于理解和维护。这个程 序用来帮助数据库管理员,开发人员格式...

    printershare premium 11.12.0破解版

    printershare premium 11.12.0破解版下载,android移动打印解决方案,具体如何调用可以百度,很多这种文章.

    SQL Pretty Printer V3.12 绿色破解版

    SQL Pretty Printer V3.12 绿色破解版 .纯属研究,如要正式使用请购买正版! 经本人测试已完全可用,破解的若不完全请联系我...^_^ SQL Pretty Printer V3.12 绿色破解版 SQL Pretty Printer 绿色破解版 SQL Pretty ...

    Poster Printer中文绿色便携版

    Poster Printer即以前的ProPoster,是一款制作海报风格图片的软件,适合制作、打印大尺寸海报、标识、签名等,它支持多种图像格式,能制作最大228.6x312.97cm的大幅海报. 使用起来也非常简单,直接载入图片,然后...

    virtual pdf printer破解

    virtual pdf printer破解 这个用于WORD向PDF的转化非常好用,排版好以后直接转换就行了! http://blog.csdn.net/zjt289198457/article/details/7046533 这是一个使用方法的链接! 祝你好运!

    Air Printer 1.6.6.1破解补丁

    如果你有台iPhone手机, 或者苹果iPad平板电脑,那么你可以很方便得利用苹果iOS系统内置AirPrint功能WiFi无线打印照片,Word,PDF等各种文件到你的Air Printer打印机,但有个前提是你的打印机必须支持苹果Air Print...

    Android printer指导1

    Android printer指导1

    TOSHIBA Bar Code Printer Printer Driver Operating Manual

    Toshiba Printer Driver Manual

    local-printer-assistant.exe

    local-printer-assistant.exe

    paper less printer 3.0

    paper less printer 无纸打印机,可以打印成word、excel、html 等格式

    Foxit PDF Printer 虚拟打印机

    Foxit PDF Printer 虚拟打印机 任何可打印内容转为PDF文件

    RDP printer

    RDP printer

    SQL Pretty Printer v3.3.3 注册版(SN)解压密码neorobin

    SQL Pretty Printer 是一款非常实用的SQL代码美化工具,可以把原本杂乱无章的SQL语句用结构化的方式重新展现,使SQL语句更加易于理解和维护。这个程序用来帮助数据库管理员,开发人员格式化SQL语句,提高SQL语句的...

    Android代码-Printer

    Printer ESC-POS命令打印辅助库 源码地址:ProjectX 介绍 标准ESC-POS命令打印,固定IP或蓝牙打印,支持黑白图片打印。 其中PrintCommands类列出了基本所有的ESC-POS打印命令。 打印指令参考自Commande ESCPOS.pdf...

    printershare直接破解版--亲测能用

    printershare11.1.0,上一次发的版本有广告、并且需要安装一个破解key,经过努力,终于找到一个直接破解的版本,亲测能用

    printershare直接破解版--11.5(适配android 7.0+)

    printershare11.5.0 直接破解的版本,适用于Android7.0,亲测能用

    SQL Pretty Printer Desktop Version V3.6.0

    SQL Pretty Printer 是一款非常实用的SQL代码美化工具,可以把原本杂乱无章的SQL语句用结构化的方式重新展现,使SQL语句更加易于理解和维护。 官方网址:http://www.dpriver.com/dlaction.php 注意:第一次使用请...

Global site tag (gtag.js) - Google Analytics